/* Carousel video box — card layout + one-item-per-viewport carousel */

.carousel-video-box .carousel-video-box__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-video-box .carousel-video-box__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-video-box .carousel-video-box__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.carousel-video-box .video-content {
  transform: rotate(0);
}

.carousel-video-box .video-content1 {
  width: 64%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid #000;
  border-radius: 26px;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 {
    width: 84vw;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 14px;
  }
}

.carousel-video-box .video-content1 .left-wrapper {
  width: 100%;
  height: 100px;
  padding: 15px 20px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: transparent;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 .left-wrapper {
    width: 100%;
    height: auto;
    padding-bottom: 5vw;
    padding-top: 5vw;
    padding-left: 5vw;
    border-radius: 12px 12px 0 0;
  }
}

.carousel-video-box .video-content1 .left-wrapper .copy-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 .left-wrapper .copy-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
}

.carousel-video-box .video-content1 .left-wrapper .copy-wrapper .icon {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 .left-wrapper .copy-wrapper .icon {
    width: 12.8vw;
    height: 12.8vw;
  }
}

.carousel-video-box .video-content1 .left-wrapper .copy-wrapper .txt1 {
  padding-left: 90px;
  margin-top: 12px;
  margin-bottom: 0;
  color: #000;
}

.carousel-video-box .copy-wrapper--no-icon .txt1 {
  padding-left: 0;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 .left-wrapper .copy-wrapper .txt1 {
    margin-top: 0;
    width: max-content;
    margin-left: 4.2666666667vw;
    padding-left: 0;
  }

  .carousel-video-box .copy-wrapper--no-icon .txt1 {
    margin-left: 0;
  }
}

.carousel-video-box .video-content1 .right-wrapper {
  width: 100%;
  height: 30vw;
  position: relative;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
  transform: rotate(0);
  mask-image: linear-gradient(to right, #000, #fff);
  background: #000;
}

.carousel-video-box .video-content--no-header .right-wrapper {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-content1 .right-wrapper {
    width: 100%;
    height: 47.2vw;
    border-radius: 0 0 12px 12px;
  }

  .carousel-video-box .video-content--no-header .right-wrapper {
    border-radius: 12px;
  }
}

.carousel-video-box .object-fit {
  height: 100%;
  object-fit: cover;
}

.carousel-video-box button {
  border: none;
  margin: 0;
  padding: 0;
  color: #000;
  font-weight: normal;
  box-sizing: border-box;
  background-color: transparent;
  cursor: pointer;
}

.carousel-video-box button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-video-box img,
.carousel-video-box video,
.carousel-video-box canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.carousel-video-box .video-btn-wrapper {
  width: 2.1875vw;
  height: 2.1875vw;
  position: absolute;
  right: 0.625vw;
  bottom: 0.625vw;
  z-index: 10;
  transition: all 0.5s ease;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-btn-wrapper {
    width: 9.6vw;
    height: 9.6vw;
    right: auto;
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.carousel-video-box .video-btn-wrapper .icon-play {
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1;
  position: relative;
  visibility: hidden;
}

.carousel-video-box .video-btn-wrapper .icon-play.is-active {
  opacity: 1;
  z-index: 2;
  visibility: visible;
}

.carousel-video-box .video-btn-wrapper .icon-pause {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1;
  visibility: hidden;
}

.carousel-video-box .video-btn-wrapper .icon-pause.is-active {
  opacity: 1;
  z-index: 2;
  visibility: visible;
}

@media (max-aspect-ratio: 12/10) and (max-width: 1025px) {
  .carousel-video-box .video-btn-wrapper .icon-pause.is-active {
    visibility: visible;
    opacity: 0;
  }

  .carousel-video-box .video-btn-wrapper .icon-pause:focus-visible {
    opacity: 1 !important;
  }
}

.carousel-video-box .carousel-video-box__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.45);
  transition: background-color 0.2s ease;
}

.carousel-video-box .carousel-video-box__nav:hover {
  background: rgba(128, 128, 128, 0.65);
}

.carousel-video-box .carousel-video-box__nav:disabled {
  display: none;
}

.carousel-video-box .carousel-video-box__nav--next {
  right: 80px;
}

.carousel-video-box .carousel-video-box__nav--prev {
  left: 80px;
}

.carousel-video-box .carousel-video-box__nav--prev svg {
  transform: scaleX(-1);
}

.carousel-video-box .carousel-video-box__nav svg {
  display: block;
  width: 14px;
  height: auto;
}

@media screen and (max-width: 767.98px) {
  .carousel-video-box .carousel-video-box__nav--next {
    right: 20px;
  }

  .carousel-video-box .carousel-video-box__nav--prev {
    left: 20px;
  }
}

.carousel-video-box .carousel-video-box__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
