/* HIMART REUSE 03 — production storytelling galleries.
   03.3 uses three independent 16:9 galleries with persistent captions.
   Galleries 01–02 roll media; Gallery 03 is an explicit-play AI video playlist. */

/* 03.2 image-order flow keeps the 02.2 circle grammar, but its sequence numbers are blue. */
html body.reuse-current .reuse-image-order-flow .reuse-confidence-node > span{
  --reuse-confidence-number-color:var(--hm-blue);
  color:var(--hm-blue)!important;
}

/* 03.3: three independent 16:9 galleries. Each gallery owns one persistent caption. */
html body.reuse-current .reuse-production-gallery-list{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
}

html body.reuse-current .reuse-production-gallery{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#080808;
  isolation:isolate;
}

html body.reuse-current .reuse-production-gallery__viewport,
html body.reuse-current .reuse-production-gallery__slide,
html body.reuse-current .reuse-production-gallery__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

html body.reuse-current .reuse-production-gallery__viewport{
  z-index:0;
  overflow:hidden;
  background:#080808;
}

/* Resting stack: hidden slides wait 5% smaller and slightly to the right. */
html body.reuse-current .reuse-production-gallery__slide{
  z-index:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(5%,0,0) scale(.95);
  transform-origin:50% 50%;
  will-change:transform,opacity;
}

/* 20% black veil belongs to the rolling image layer only. */
html body.reuse-current .reuse-production-gallery__slide::after{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  background:#000;
  opacity:.20;
  pointer-events:none;
  transition:opacity .72s cubic-bezier(.22,.76,.22,1);
}

html body.reuse-current .reuse-production-gallery__slide.is-active{
  z-index:2;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate3d(0,0,0) scale(1);
}
html body.reuse-current .reuse-production-gallery__slide.is-active::after{opacity:0}

/* Incoming image sits behind the current one at 95% + 20% black, then grows cleanly. */
html body.reuse-current .reuse-production-gallery__slide.is-next{
  z-index:1;
  opacity:1;
  visibility:visible;
  pointer-events:none;
  transform:translate3d(5%,0,0) scale(.95);
  transition:transform .72s cubic-bezier(.22,.76,.22,1),opacity .72s ease;
}
html body.reuse-current .reuse-production-gallery__slide.is-next.is-entering{
  transform:translate3d(0,0,0) scale(1);
}
html body.reuse-current .reuse-production-gallery__slide.is-next.is-entering::after{opacity:0}

/* Current image naturally leaves the frame from right to left. */
html body.reuse-current .reuse-production-gallery__slide.is-active.is-exiting{
  z-index:3;
  transform:translate3d(-100%,0,0) scale(1);
  transition:transform .72s cubic-bezier(.22,.76,.22,1),opacity .72s ease;
}

/* Manual previous navigation mirrors the direction without changing the auto-swipe grammar. */
html body.reuse-current .reuse-production-gallery.is-reverse .reuse-production-gallery__slide.is-next{
  transform:translate3d(-5%,0,0) scale(.95);
}
html body.reuse-current .reuse-production-gallery.is-reverse .reuse-production-gallery__slide.is-next.is-entering{
  transform:translate3d(0,0,0) scale(1);
}
html body.reuse-current .reuse-production-gallery.is-reverse .reuse-production-gallery__slide.is-active.is-exiting{
  transform:translate3d(100%,0,0) scale(1);
}

html body.reuse-current .reuse-production-gallery__media{
  z-index:1;
  background:#0a0a0a;
}

html body.reuse-current .reuse-production-gallery__media > :is(img,video,picture){
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Static lower-40% gradient: 60% black at the bottom fading to 0% at the top. */
html body.reuse-current .reuse-production-gallery::after{
  content:"";
  position:absolute;
  z-index:2;
  right:0;
  bottom:0;
  left:0;
  height:40%;
  pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.60) 0%,rgba(0,0,0,0) 100%);
}

/* Persistent caption layer. Number/title/copy never swap with the gallery image. */
html body.reuse-current .reuse-production-gallery__copy{
  position:absolute;
  z-index:3;
  left:40px;
  bottom:40px;
  width:min(760px,calc(100% - 80px));
  text-align:left;
  pointer-events:none;
}

html body.reuse-current .reuse-production-gallery__number{
  display:block;
  margin:0 0 10px;
  color:var(--hm-blue)!important;
  font-family:var(--hm-font-en)!important;
  font-size:var(--hm-type-note)!important;
  font-weight:300!important;
  line-height:1!important;
  letter-spacing:var(--hm-track-note)!important;
}

html body.reuse-current .reuse-production-gallery__copy h4{
  margin:0;
  color:#fff!important;
  font-family:var(--hm-font-ko)!important;
  font-size:22px!important;
  font-weight:400!important;
  font-variation-settings:"wght" 400!important;
  line-height:1.32!important;
  letter-spacing:var(--hm-track-group)!important;
  word-break:keep-all;
}

html body.reuse-current .reuse-production-gallery__copy p{
  margin:10px 0 0!important;
  max-width:62ch!important;
  color:rgba(255,255,255,.90)!important;
  font-family:var(--hm-font-ko)!important;
  font-size:16px!important;
  font-weight:100!important;
  font-variation-settings:"wght" 100!important;
  line-height:1.52!important;
  letter-spacing:var(--hm-track-body)!important;
  word-break:keep-all;
}

/* Head-only line arrows for rolling Galleries 01–02. */
html body.reuse-current .reuse-production-gallery__nav{
  position:absolute;
  z-index:5;
  top:50%;
  width:48px;
  height:80px;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  transform:translateY(-50%);
  cursor:pointer;
}

html body.reuse-current .reuse-production-gallery__nav--prev{left:6px}
html body.reuse-current .reuse-production-gallery__nav--next{right:6px}

html body.reuse-current .reuse-production-gallery__nav::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:18px;
  border-top:1px solid rgba(255,255,255,.78);
  border-right:1px solid rgba(255,255,255,.78);
}

html body.reuse-current .reuse-production-gallery__nav--prev::before{
  transform:translate(-35%,-50%) rotate(-135deg);
}

html body.reuse-current .reuse-production-gallery__nav--next::before{
  transform:translate(-65%,-50%) rotate(45deg);
}

html body.reuse-current .reuse-production-gallery__nav:hover::before,
html body.reuse-current .reuse-production-gallery__nav:focus-visible::before{
  border-color:#fff;
}

html body.reuse-current .reuse-production-gallery__status{
  position:absolute;
  z-index:5;
  right:32px;
  bottom:32px;
  color:rgba(255,255,255,.62);
  font:300 11px/1 var(--hm-font-en);
  letter-spacing:var(--hm-track-note);
}

/* Gallery 03 — explicit-play AI video playlist. */
html body.reuse-current .reuse-production-gallery--video-player .reuse-video-player__slide{
  z-index:2;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
html body.reuse-current .reuse-production-gallery--video-player .reuse-video-player__slide::after{display:none}
html body.reuse-current .reuse-production-gallery--video-player .reuse-video-player__media video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 30% black veil belongs only to the video plane; caption stays above it. */
html body.reuse-current .reuse-production-gallery--video-player .reuse-video-player__veil{
  position:absolute;
  z-index:4;
  inset:0;
  background:rgba(0,0,0,.30);
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease;
}
html body.reuse-current .reuse-production-gallery--video-player.is-video-idle .reuse-video-player__veil,
html body.reuse-current .reuse-production-gallery--video-player.is-video-paused .reuse-video-player__veil,
html body.reuse-current .reuse-production-gallery--video-player.is-video-playing:hover .reuse-video-player__veil{
  opacity:1;
}

html body.reuse-current .reuse-production-gallery--video-player .reuse-production-gallery__copy{
  z-index:5;
}
html body.reuse-current .reuse-production-gallery--video-player .reuse-production-gallery__status{
  z-index:7;
}
html body.reuse-current .reuse-production-gallery--video-player > .reuse-production-gallery__nav[hidden]{
  display:none!important;
}

html body.reuse-current .reuse-video-player__controls{
  position:absolute;
  z-index:6;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease;
}
html body.reuse-current .reuse-production-gallery--video-player.is-video-idle .reuse-video-player__controls,
html body.reuse-current .reuse-production-gallery--video-player.is-video-paused .reuse-video-player__controls,
html body.reuse-current .reuse-production-gallery--video-player.is-video-playing:hover .reuse-video-player__controls{
  opacity:1;
}

html body.reuse-current .reuse-video-player__controls button{
  position:absolute;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
html body.reuse-current .reuse-video-player__controls button:focus-visible{
  outline:1px solid rgba(255,255,255,.7);
  outline-offset:4px;
}

html body.reuse-current .reuse-video-player__toggle{
  top:50%;
  left:50%;
  width:72px;
  height:72px;
  transform:translate(-50%,-50%);
}
html body.reuse-current .reuse-video-player__toggle svg{
  position:absolute;
  top:50%;
  left:50%;
  width:48px;
  height:48px;
  transform:translate(-50%,-50%);
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html body.reuse-current .reuse-video-player__icon--pause{display:none}
html body.reuse-current .reuse-production-gallery--video-player.is-video-playing .reuse-video-player__icon--play{display:none}
html body.reuse-current .reuse-production-gallery--video-player.is-video-playing .reuse-video-player__icon--pause{display:block}

/* Initial state shows only the single center > play chevron. Side controls appear on hover/focus. */
html body.reuse-current .reuse-video-player__skip{
  top:50%;
  width:72px;
  height:96px;
  transform:translateY(-50%);
  opacity:0;
  pointer-events:none!important;
  transition:opacity .12s ease;
}
html body.reuse-current .reuse-production-gallery--video-player:hover .reuse-video-player__skip,
html body.reuse-current .reuse-production-gallery--video-player:focus-within .reuse-video-player__skip{
  opacity:1;
  pointer-events:auto!important;
}
html body.reuse-current .reuse-video-player__skip--prev{left:28px}
html body.reuse-current .reuse-video-player__skip--next{right:28px}
html body.reuse-current .reuse-video-player__skip svg{
  position:absolute;
  top:50%;
  left:50%;
  width:44px;
  height:44px;
  transform:translate(-50%,-50%);
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(max-width:780px){
  html body.reuse-current .reuse-production-gallery-list{gap:0}
  html body.reuse-current .reuse-production-gallery__copy{
    left:40px;
    bottom:40px;
    width:calc(100% - 80px);
  }
  html body.reuse-current .reuse-production-gallery__number{
    margin-bottom:7px;
    font-size:10px!important;
  }
  html body.reuse-current .reuse-production-gallery__copy h4{
    font-size:22px!important;
    font-weight:400!important;
    font-variation-settings:"wght" 400!important;
  }
  html body.reuse-current .reuse-production-gallery__copy p{
    margin-top:6px!important;
    font-size:16px!important;
    font-weight:100!important;
    font-variation-settings:"wght" 100!important;
    line-height:1.42!important;
  }
  html body.reuse-current .reuse-production-gallery__nav{
    width:38px;
    height:64px;
  }
  html body.reuse-current .reuse-production-gallery__nav--prev{left:0}
  html body.reuse-current .reuse-production-gallery__nav--next{right:0}
  html body.reuse-current .reuse-production-gallery__nav::before{
    width:14px;
    height:14px;
  }
  html body.reuse-current .reuse-production-gallery__status{
    right:18px;
    bottom:18px;
    font-size:10px;
  }
  html body.reuse-current .reuse-video-player__toggle{
    width:58px;
    height:58px;
  }
  html body.reuse-current .reuse-video-player__toggle svg{
    width:38px;
    height:38px;
  }
  html body.reuse-current .reuse-video-player__skip{
    width:52px;
    height:72px;
  }
  html body.reuse-current .reuse-video-player__skip--prev{left:6px}
  html body.reuse-current .reuse-video-player__skip--next{right:6px}
  html body.reuse-current .reuse-video-player__skip svg{
    width:34px;
    height:34px;
  }
}

@media(prefers-reduced-motion:reduce){
  html body.reuse-current .reuse-production-gallery__slide,
  html body.reuse-current .reuse-production-gallery__slide::after,
  html body.reuse-current .reuse-video-player__veil,
  html body.reuse-current .reuse-video-player__controls,
  html body.reuse-current .reuse-video-player__skip{
    transition:none!important;
  }
}