/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  overflow-x: hidden;
  padding: 0;
}

.hero .carousel {
  width: 100vw;
  height: 100vh;
  padding: 80px 0;
  margin: 0;
  position: relative;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
  transition-duration: 0.4s;
  background-color: #131720;
}

.hero .carousel-item video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero .carousel-item::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  inset: 0;
}

.hero .info {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero .info {
    padding: 0 50px;
  }
}

.main-title h1 {
  color: #fff;
  font-weight: 600;
  font-size: 46px;
}

.main-title h1 span {
  font-weight: 300;
}

.hero .info p {
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 200;
}

@media screen and (max-width: 991px) {
  .main-title h1 {
    font-size: 2.4rem;
  }
}

@media screen and (max-width: 767px) {
  .main-title h1 {
    font-size: 2.1rem;
  }
}

@media screen and (max-width: 575px) {
  .hero .info {
    padding: 0 10px;
  }

  .main-title h1 {
    font-size: 1.5rem;
  }

  .hero .info p {
    padding-top: 10px;
    font-size: 16px;
  }

  .hero .carousel {
    height: 100vh;
  }

  .hero .carousel-item video {
    position: relative;
    height: 100%;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero .info {
    height: 100%;
  }
}

/*--------------------------------------------------------------
# Client Section (Marquee - Home Page)
--------------------------------------------------------------*/
:root {
  --marqueeNoItems: 10;
  /*행 최대 갯수*/
  --marqueeItemsWidth: 250px;
  --marqueeGap: 40px;
  --marqueeSpeed: 40s;
}

#marquee-container {
  width: calc(
    calc(
      var(--marqueeNoItems) * calc(var(--marqueeItemsWidth) + var(--marqueeGap))
    )
  );
  overflow: hidden;
  margin-top: 60px;
}

#marquee-container .grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: var(--marqueeGap);
  width: 200%;
  /* ❗️한 행에 두세트의 아이템이 있는 것처럼❗️*/
}

#marquee-container .grid .row {
  display: flex;
  overflow: hidden;
}

#marquee-container .grid .row .box {
  width: var(--marqueeItemsWidth);
  height: 180px;
  margin-right: var(--marqueeGap);
  border-radius: 30px;
  background-color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;
}

#marquee-container .grid .row .box img {
  max-width: 90%;
  max-height: 50%;
}

#marquee-container .grid .row .box .size {
  max-width: 75%;
}

/* left animation */
#marquee-container .grid .left {
  animation: left-marquee var(--marqueeSpeed) linear infinite;
  margin: 0;
}

/* right animation */
#marquee-container .grid .right {
  animation: right-marquee var(--marqueeSpeed) linear infinite;
  margin: 0;
}

@keyframes left-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes right-marquee {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@media screen and (max-width: 1024px) {
  #marquee-container .grid .row .box {
    width: 220px;
    height: 156px;
    margin-right: 30px;
    border-radius: 26px;
  }

  #marquee-container .grid .left {
    animation: left-marquee 80s linear infinite;
  }

  #marquee-container .grid .right {
    animation: right-marquee 80s linear infinite;
  }
}

@media screen and (max-width: 1024px) {
  #marquee-container .grid .row .box {
    width: 160px;
    height: 114px;
    margin-right: 20px;
    border-radius: 16px;
  }

  #marquee-container .grid {
    grid-row-gap: 20px;
  }
}

@media screen and (max-width: 575px) {
  #marquee-container .grid .row .box {
    width: 160px;
    height: 114px;
    margin-right: 20px;
    border-radius: 14px;
  }

  .client p br {
    display: none;
  }
}
