/* PL2 works detail 05 전용 (공통 구조는 works-detail.css)
   피그마: Works_Detail (node 2345:61435) — Shinsegae Duty Free Content Production
   라이트 테마 + GNB Type=T/B 인데 **히어로만 어두운 영상**이라 `.wd-hero--dark` 를 쓴다.
   섹션 리듬 320px, 섹션 내부 160 / 120 / 80 / 60. */

.wd-head-desc {
  line-height: min(1.6667vw, 32px) /* 32 */; /* 이 페이지 헤더 설명은 전부 32 */
}

.wd5-section {
  display: flex;
  flex-direction: column;
  gap: min(4.1667vw, 80px);
}

/* ══ 2·8. 가운데 질문 (세로 여백 240 / 0) ══════════════ */
.wd5-question {
  padding: min(12.5vw, 240px) 0;
}

/* 공항 동선 섹션 헤더 설명 (2026-09-05)
   피그마 노드(2345:61450)에는 자간이 없지만(0), 이 문장은 736px 2줄 용량의 99.0% 라
   자연 줄바꿈이면 2번째 줄 여유가 6px 뿐이라 브라우저·폰트에 따라 3줄로 꺾인다.
   프로젝트의 다른 한글 텍스트가 모두 쓰는 -0.02em 을 여기에도 넣어 여유를 26px 로 늘렸다.
   (1줄 722→703, 2줄 730→710. 줄 위치 자체는 HTML 의 <br> 이 고정한다.)
   이 페이지에 .wd-head--right 는 이 헤더 하나뿐이다. */
.wd-head--right .wd-head-desc {
  letter-spacing: -0.02em;
}

.wd-head--center {
  gap: min(2.0833vw, 40px);
}

/* ══ 3. 동선 안내 이미지 (전체 폭) ═════════════════════ */
.wd5-route {
  width: 100%;
  aspect-ratio: 1920 / 532;
  object-fit: cover;
}

/* ══ 4. 스틸 (아래 문구는 PC 피드백_0930 부터 독립 섹션) ═══ */
.wd5-still {
  display: block;
  width: 64.792%; /* 1244 / 1920 */
  margin: 0 auto;
  aspect-ratio: 1244 / 686;
  object-fit: cover;
}

/* ══ 5. 2열 4장 (오른쪽 열이 120 내려간다) ═════════════ */
.wd5-quad {
  display: flex;
  align-items: flex-start; /* 열 높이가 서로 다르다 (오른쪽이 120 내려감) */
  gap: 0.417%; /* 8 / 1920 */
}

.wd5-quad-col {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: min(0.4167vw, 8px);
  width: 49.792%; /* 956 / 1920 */
}

.wd5-quad-col--low {
  margin-top: min(6.25vw, 120px);
}

.wd5-quad-col img {
  width: 100%;
  aspect-ratio: 956 / 514;
  object-fit: cover;
}

/* ══ 6. 엇갈린 3장 ═════════════════════════════════════ */
.wd5-trio {
  display: flex;
  flex-direction: column;
  gap: min(6.25vw, 120px);
}

.wd5-trio-01 {
  align-self: flex-end;
  width: 57.865%; /* 1111 / 1920 */
  aspect-ratio: 1111 / 595;
  object-fit: cover;
}

.wd5-trio-02 {
  align-self: flex-start;
  width: 37.292%; /* 716 / 1920 */
  aspect-ratio: 716 / 384;
  object-fit: cover;
}

.wd5-trio-03 {
  align-self: flex-end;
  width: 49.688%; /* 954 / 1920 */
  aspect-ratio: 954 / 513;
  object-fit: cover;
}

/* ══ 7. 영상 섹션 ══════════════════════════════════════ */
.wd5-video {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
}

.wd5-video img,
.wd5-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd5-video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.wd5-video-play::before {
  content: "";
  /* PlayBTN (PC 피드백_0930, 피그마 2930:35707): 흰 삼각형 30x54, 모서리 1.5,
     그림자 0 0 50 #000@30%. 상세 02·05·06·08·10 공통 아이콘 */
  width: min(1.5625vw, 30px);
  height: min(2.8125vw, 54px);
  background: url("icon-play.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 min(1.3021vw, 25px) rgba(0, 0, 0, 0.3));
  transition: opacity 300ms ease;
}

/* poster jpg 에 딤(검정 60%)이 이미 구워져 있어서 재생 중에는
   video 프레임이 그대로 밝아진다 — CSS 딤은 상세 08 에만 있다. */
.wd5-video[data-playing="true"] .wd5-video-play::before {
  opacity: 0;
}

.wd5-video-play:focus-visible {
  outline: min(0.1042vw, 2px) solid var(--pl2-white);
  outline-offset: min(-0.2083vw, -4px);
}

/* ══ 9. 리터칭 (비교 컷 + KYOKA 6장) ═══════════════════ */
.wd5-retouch-block {
  display: flex;
  flex-direction: column;
  gap: min(6.25vw, 120px);
}

/* 보정 전/후 비교 슬라이더 (compare.js 가 --pos 를 바꾼다)
   피그마 Frame 2116928760: 1558x835 를 가운데에 (좌우 181). 경계선은 흰 1px +
   그림자 -2 0 6 #000@40%, 왼쪽(보정 전)에는 검정 20% 가 덮인다. */
.wd5-compare {
  position: relative;
  width: 81.135%; /* 1558 / 1920 */
  margin: 0 auto;
  aspect-ratio: 1558 / 835;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y; /* 세로 스크롤은 그대로, 가로 드래그만 가져온다 */
  user-select: none;
  -webkit-user-select: none;
}

.wd5-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.wd5-compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.wd5-compare-before::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

/* 경계선. 잡기 쉽게 투명한 폭(44)을 주고 가운데에 1px 선을 그린다 */
.wd5-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 44px;
  transform: translateX(-50%);
  outline: none;
}

.wd5-compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--pl2-white);
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.4);
}

/* 경계선 양옆 ←/→ 버튼 (PC 피드백_1015, 피그마 Liquid Glass 36x36, 선에서 12 떨어짐, 세로 가운데).
   선과 함께 움직인다. 누르면 compare.js 가 경계를 10% 옮기고 그동안만 --pos 에 transition 을 건다. */
.wd5-compare-btn {
  position: absolute;
  top: 50%;
  width: min(1.875vw, 36px);
  height: min(1.875vw, 36px);
  padding: 0;
  border: 0.45px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  /* 화살표 14x9 (+ 그림자 여백 2) → 18 / 36. 화살표에 옅은 그림자를 넣어 흰 배경(보정 후)에서도 보이게 했다 */
  background: rgba(255, 255, 255, 0.2) url("icon-compare-arrow.svg") center / 50% auto no-repeat;
  box-shadow: 0 2.4px 12px rgba(0, 0, 0, 0.16), inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  translate: 0 -50%;
  transition: background-color 0.2s ease, scale 0.2s ease;
}

.wd5-compare-btn--prev {
  right: calc(50% + min(0.625vw, 12px));
  scale: -1 1; /* 같은 화살표를 좌우로 뒤집어 ← 로 쓴다 */
}

.wd5-compare-btn--next {
  left: calc(50% + min(0.625vw, 12px));
}

.wd5-compare-btn:hover {
  background-color: rgba(255, 255, 255, 0.32);
}

.wd5-compare-btn--prev:active {
  scale: -0.92 0.92;
}

.wd5-compare-btn--next:active {
  scale: 0.92;
}

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.wd5-compare.is-stepping {
  transition: --pos 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wd5-compare-handle:focus-visible::before {
  width: 3px;
  margin-left: -1px;
}

/* 381x571 3장이 붙은 띠. 첫 줄은 x=199, 둘째 줄은 x=580. */
.wd5-kyoka-row {
  display: flex;
  width: 59.479%; /* 1142 / 1920 */
}

.wd5-kyoka-row img {
  width: 33.333%;
  aspect-ratio: 381 / 571;
  object-fit: cover;
}

.wd5-kyoka-row--first {
  margin-left: 10.365%; /* 199 / 1920 */
}

.wd5-kyoka-row--second {
  margin-left: 30.208%; /* 580 / 1920 */
}

/* 두 줄 사이 120 (PC 피드백_0930 에서 209 → 120 으로 재조정) */
.wd5-kyoka-stack {
  display: flex;
  flex-direction: column;
  gap: min(6.25vw, 120px);
}
