/* 유튜브 지연 로드: 처음엔 썸네일만 보여주고, 클릭 시 iframe으로 바꿉니다.
   기존 fit-videos(16:9) 비율을 유지합니다. */
.yt-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  display: block;
}
.yt-lite__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.yt-lite__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}
.yt-lite__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 58px;
  margin: 0;
  background: #ff0000;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.yt-lite__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
}
.yt-lite__play:hover,
.yt-lite__play:focus {
  background: rgba(0, 0, 0, 0.32);
}
.yt-lite__play:hover .yt-lite__icon,
.yt-lite__play:focus .yt-lite__icon {
  background: #cc0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-lite__play:focus {
  outline: none;
}
.yt-lite__play:focus-visible {
  box-shadow: inset 0 0 0 3px #fff;
}
.yt-lite__play:focus-visible .yt-lite__icon {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.yt-lite__fallback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: underline;
}
.yt-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-lite.is-playing .yt-lite__thumb,
.yt-lite.is-playing .yt-lite__play,
.yt-lite.is-playing .yt-lite__fallback {
  display: none;
}

/* 영상제작 페이지(/product/sub13) 전용.
   PC(992px 이상)는 기존 2열을 유지하고, 991px 이하(모바일·태블릿)도 2열로 맞춥니다.
   홈·유튜브 마케팅 페이지에는 적용되지 않습니다. */
.page-cnt-video .yt-video-row .yt-lite {
  container-type: inline-size;
  container-name: yt-lite;
}
.page-cnt-video .yt-video-row .yt-lite__icon {
  width: clamp(40px, 36cqi, 84px);
  height: clamp(28px, 25cqi, 58px);
  border-radius: clamp(8px, 8cqi, 16px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.page-cnt-video .yt-video-row .yt-lite__icon::after {
  border-width: clamp(7px, 5.5cqi, 13px) 0 clamp(7px, 5.5cqi, 13px) clamp(12px, 9.5cqi, 22px);
}
@supports not (width: 1cqi) {
  .page-cnt-video .yt-video-row .yt-lite__icon {
    width: clamp(40px, 15vw, 84px);
    height: clamp(28px, 10.4vw, 58px);
    border-radius: clamp(8px, 3.3vw, 16px);
  }
  .page-cnt-video .yt-video-row .yt-lite__icon::after {
    border-width: clamp(7px, 2.3vw, 13px) 0 clamp(7px, 2.3vw, 13px) clamp(12px, 3.9vw, 22px);
  }
}
@media (max-width: 991px) {
  .page-cnt-video section:has(> .container > .yt-video-row) {
    padding-top: 0;
    padding-bottom: 0;
  }
  .page-cnt-video .yt-video-row {
    margin-left: -8px;
    margin-right: -8px;
  }
  .page-cnt-video .yt-video-row > .fit-videos {
    width: 50%;
    float: left;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px !important;
  }
}
