/**
 * 山葵音楽学校プロジェクト — 3D Live Stage & Editorial Gallery Stylesheet
 * 共通スタイルシート（index.html / archive.html 共有）
 */

:root {
  --bg-void: #07090f;
  --bg-elevated: #0d1018;
  --ink-primary: #f7f4ec;
  --ink-secondary: #b6b3aa;
  --ink-muted: #6c6a64;
  --accent-gold: #e8c68e;
  --accent-gold-bright: #f3d5a5;
  --accent-wasabi: #e8c68e;
  --hairline: rgba(247, 244, 236, 0.12);
}

/* =========================================================
   Modern Web Guidance: Cross-Document View Transitions (MPA)
   index.html <-> archive.html の共有要素＆方向付きシームレス遷移
========================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .vt-site-nav {
    view-transition-name: site-nav;
  }
  .vt-site-brand {
    view-transition-name: site-brand;
  }
  .vt-archive-title {
    view-transition-name: archive-hero-title;
  }

  ::view-transition-group(site-nav),
  ::view-transition-group(site-brand),
  ::view-transition-group(archive-hero-title) {
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* 進む（Top -> Archive）：右から優雅に幕が開くスライド＆フェード */
  @keyframes vt-out-forward {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(-3.5%);
    }
  }
  @keyframes vt-in-forward {
    from {
      opacity: 0;
      transform: translateX(4.5%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* 戻る（Archive -> Top）：左から静かに戻るスライド＆フェード */
  @keyframes vt-out-backward {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(3.5%);
    }
  }
  @keyframes vt-in-backward {
    from {
      opacity: 0;
      transform: translateX(-4.5%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  :active-view-transition-type(forward)::view-transition-old(root) {
    animation: 0.34s cubic-bezier(0.4, 0, 0.2, 1) both vt-out-forward;
  }
  :active-view-transition-type(forward)::view-transition-new(root) {
    animation: 0.44s cubic-bezier(0.22, 1, 0.36, 1) both vt-in-forward;
  }

  :active-view-transition-type(backward)::view-transition-old(root) {
    animation: 0.34s cubic-bezier(0.4, 0, 0.2, 1) both vt-out-backward;
  }
  :active-view-transition-type(backward)::view-transition-new(root) {
    animation: 0.44s cubic-bezier(0.22, 1, 0.36, 1) both vt-in-backward;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--ink-primary);
  font-family: 'Syne', 'Inter', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg-void);
  color: var(--ink-primary);
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-wasabi);
}

/* 構造グリッド線 */
.hairline-t {
  border-top: 1px solid var(--hairline);
}
.hairline-b {
  border-bottom: 1px solid var(--hairline);
}
.hairline-box {
  border: 1px solid var(--hairline);
}

/* 和モダン・エディトリアルタイポグラフィ（案AB採用） */
.font-mincho {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.font-editorial-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* 左の富士山上空に品格よく収まる極細の和の縦書き副題 */
.vertical-stage-tag {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.3em;
  line-height: 1.75;
  text-shadow: 0 3px 22px rgba(6, 9, 18, 0.88), 0 1px 6px rgba(6, 9, 18, 0.72);
}

.cinema-shadow {
  text-shadow: 0 4px 28px rgba(5, 8, 16, 0.88), 0 1px 8px rgba(5, 8, 16, 0.74);
}

/* 案4-A：点滅ゼロ・極細真鍮ゴールド ミニ波形バー（4本） */
.stage-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.stage-eq-bars span {
  width: 1.5px;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--accent-gold-bright) 0%, rgba(232, 198, 142, 0.55) 100%);
  transform-origin: bottom center;
  transform: scaleY(0.45);
  will-change: transform;
}

/* 案ABメイン見出し：Tailwindの行間上書きを受けないゆったりした和の行間設計 */
.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.44em;
  line-height: 1.24;
  letter-spacing: 0.08em;
}

/* フローティング・グラスナビゲーション */
.nav-glass {
  background: rgba(9, 11, 18, 0.72);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(247, 244, 236, 0.14);
  box-shadow: inset 0 1px 0 rgba(247, 244, 236, 0.12), 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* 脱ネオン・和モダンボタン（象牙色×真鍮ゴールド） */
.btn-wasabi,
.btn-editorial {
  background-color: var(--ink-primary);
  color: #0b0e16;
  font-weight: 700;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}
.btn-wasabi:hover,
.btn-editorial:hover {
  background-color: var(--accent-gold-bright);
  transform: translateY(-2px);
}

/* ステージ演出コントロール（上部中央スリム統合ガラスバー） */
.stage-director-bar {
  background: rgba(9, 11, 18, 0.56);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(247, 244, 236, 0.14);
  box-shadow: inset 0 1px 0 rgba(247, 244, 236, 0.08), 0 12px 30px rgba(0, 0, 0, 0.36);
}

.stage-ctrl-group {
  background: rgba(9, 11, 18, 0.6);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid rgba(247, 244, 236, 0.14);
}

.stage-ctrl-btn {
  color: #c8c5bc;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.stage-ctrl-btn:hover {
  color: #f7f4ec;
  background-color: rgba(247, 244, 236, 0.1);
}
.stage-ctrl-btn[data-active="true"] {
  background-color: rgba(247, 244, 236, 0.94);
  color: #0b0e16;
  font-weight: 700;
}

.stage-firework-btn {
  color: var(--accent-gold-bright);
  border-radius: 9999px;
  border: 1px solid rgba(232, 198, 142, 0.3);
  background: rgba(232, 198, 142, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.stage-firework-btn:hover {
  background: rgba(232, 198, 142, 0.2);
  border-color: rgba(243, 213, 165, 0.72);
  color: #fff8ea;
}

/* 下部プログラム切替コンソール */
.stage-program-rail {
  background: rgba(9, 11, 18, 0.62);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid rgba(247, 244, 236, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

#stage-director-toggle[aria-expanded="true"] {
  border-color: rgba(232, 198, 142, 0.55);
  color: #f7f4ec;
}

#stage-director-toggle:focus-visible,
.stage-ctrl-btn:focus-visible,
.stage-firework-btn:focus-visible,
#stage-program-switcher button:focus-visible,
#stage-pause-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* 1つの大劇場空間がサイト全体に広がる固定3Dキャンバス ＆ フォールバック */
#stage-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

#hero-fallback-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.stage-3d-ready #hero-fallback-bg {
  opacity: 0;
  pointer-events: none;
}

/* 3Dステージ上下の控えめな文字読みやすさビネット（中央の巨大LED・床面鏡面反射・右サイドMonolisは完全にクリア） */
.stage-bottom-vignette {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0.34) 0%,
    rgba(8, 10, 14, 0) 12%,
    rgba(8, 10, 14, 0) 78%,
    rgba(8, 10, 14, 0.86) 100%
  );
}

/* 下層セクション用：背後の3Dカメラツアー・巨大スクリーン連動・校章を美しく透かしながら可読性を保つシームレス空間レイヤー */
.theater-section-veil {
  background: linear-gradient(
    180deg,
    rgba(5, 6, 10, 0.42) 0%,
    rgba(5, 6, 10, 0.56) 50%,
    rgba(5, 6, 10, 0.48) 100%
  );
}

.theater-panel {
  background: rgba(9, 10, 15, 0.74);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* ギャラリーカード（ホバーで2枚目写真へシームレス切替＋ズーム） */
.gallery-card {
  position: relative;
  overflow: hidden;
  background-color: rgba(11, 12, 16, 0.82);
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.gallery-card img.img-primary {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.gallery-card img.img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  transform: scale(1.06);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
  pointer-events: none;
}
.gallery-card.is-fit-contain img.img-primary,
.gallery-card.is-fit-contain img.img-secondary,
.gallery-card.is-slideshow img.img-secondary {
  object-fit: contain;
  background-color: #000;
}
.gallery-card.is-fit-contain-light img.img-primary {
  object-fit: contain;
  background-color: #f8f8f6;
}
.gallery-card.is-fit-contain-light img.img-secondary {
  object-fit: cover;
  background-color: #000;
}
.gallery-card.is-fit-contain img.img-secondary,
.gallery-card.is-fit-contain-light img.img-secondary,
.gallery-card.is-slideshow img.img-secondary {
  transform: scale(1.01);
}
.gallery-card.is-fit-contain:hover img.img-primary,
.gallery-card.is-fit-contain:hover img.img-secondary,
.gallery-card.is-fit-contain-light:hover img.img-primary,
.gallery-card.is-fit-contain-light:hover img.img-secondary,
.gallery-card.is-slideshow:hover img.img-secondary {
  transform: scale(1);
}
.gallery-card:hover img.img-primary {
  transform: scale(1.05);
}
.gallery-card:hover img.img-secondary {
  opacity: 1;
  transform: scale(1.01);
}
/* スライドショー下部HUDを操作している間はスライド写真を確認できるようホバー画像を透かす */
.gallery-card.is-slideshow:has(.gallery-slide-hud:hover) img.img-secondary {
  opacity: 0;
}
.gallery-card:hover {
  border-color: rgba(232, 198, 142, 0.55);
}
.gallery-card video.card-loop-video {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover video.card-loop-video {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover video.card-loop-video {
    transform: none;
  }
}

/* =========================================================
   Modern Web Guidance: Scroll-Driven Progress & Entry Reveals
========================================================== */
#scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-wasabi);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }

    #scroll-progress {
      animation: grow-progress auto linear;
      animation-timeline: scroll();
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes gallery-enter {
      entry 0% {
        opacity: 0.4;
        transform: translateY(28px);
      }
      entry 100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal-block {
      animation: gallery-enter auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}

/* 過去事例アーカイブ行（archive.html用） */
.archive-row {
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
  cursor: pointer;
}
.archive-row:hover,
.archive-row:focus-visible {
  background-color: rgba(232, 198, 142, 0.07);
  padding-left: 1rem;
}
.archive-row:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -2px;
}
.archive-row:hover .archive-title,
.archive-row:focus-visible .archive-title {
  color: var(--accent-wasabi);
}

/* フッター巨大ワードマーク */
.footer-wordmark {
  font-size: clamp(1rem, 3.85vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 244, 240, 0.16);
  user-select: none;
  max-width: 100%;
  overflow: hidden;
}

/* =========================================================
   Modern Web Guidance: Native <dialog> Top-Layer Animation & Scroll Lock
========================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog {
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: translateY(18px) scale(0.97);
  }
}

dialog[open]:where(:not([data-closing])) {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: translateY(0) scale(1);

    @starting-style {
      transform: translateY(18px) scale(0.97);
    }
  }
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(14px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

/* =========================================================
   第5弾：舞台の「幕開け」見出しリビール ＆ ビューファインダー・カーソル
========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .curtain-reveal-ready .curtain-reveal {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(22px);
    transition:
      clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.65s ease;
  }

  .curtain-reveal-ready .curtain-reveal.is-revealed {
    opacity: 1;
    clip-path: inset(0 0 0% 0);
    transform: translateY(0);
  }

  .curtain-reveal-ready .curtain-reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
  }
  .curtain-reveal-ready .curtain-reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
  }
}

/* カメラファインダー風カスタム・インタラクティブカーソル（PCポインター限定・通常時は非表示） */
.stage-viewfinder {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .stage-viewfinder {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
    border-radius: 9999px;
    border: 1px solid rgba(232, 198, 142, 0.72);
    background: radial-gradient(circle, rgba(10, 14, 22, 0.36) 0%, rgba(10, 14, 22, 0.14) 70%, rgba(10, 14, 22, 0) 100%);
    box-shadow: 0 0 22px rgba(232, 198, 142, 0.22), inset 0 0 10px rgba(243, 213, 165, 0.14);
    opacity: 0;
    transform: translate3d(-120px, -120px, 0) scale(0.65);
    transition: opacity 0.22s ease, width 0.24s cubic-bezier(0.22, 1, 0.36, 1), height 0.24s cubic-bezier(0.22, 1, 0.36, 1), margin 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
    will-change: transform, opacity;
  }

  .stage-viewfinder.is-visible {
    opacity: 1;
  }

  .stage-viewfinder.is-pressed {
    border-color: rgba(247, 244, 236, 0.95);
  }

  /* 四隅の繊細なカメラ・レチクルマーク */
  .stage-viewfinder::before,
  .stage-viewfinder::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 9999px;
    border: 1px dashed rgba(232, 198, 142, 0.28);
    pointer-events: none;
  }

  .stage-viewfinder::after {
    inset: 4px;
    border-style: solid;
    border-color: rgba(247, 244, 236, 0.16);
  }

  .stage-viewfinder-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ink-primary);
    text-shadow: 0 1px 6px rgba(4, 7, 14, 0.95);
    white-space: nowrap;
  }
}

/* =========================================================
   ホログラフィック・シアターモーダル（板感ゼロ・映像のみ投影）
========================================================== */
dialog.theater-holo-mode {
  width: min(92vw, 1040px);
  max-width: 1040px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

dialog.theater-holo-mode[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(14px);
}

dialog.theater-holo-mode .theater-dialog-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
  justify-content: flex-end;
}

dialog.theater-holo-mode .theater-dialog-kicker {
  display: none;
}

dialog.theater-holo-mode .theater-close-btn {
  background: rgba(8, 14, 24, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 238, 255, 0.36);
  color: rgba(242, 248, 255, 0.92);
  letter-spacing: 0.12em;
}

dialog.theater-holo-mode .theater-close-btn:hover {
  background: rgba(186, 238, 255, 0.92);
  color: #07090f;
  border-color: rgba(232, 198, 142, 0.85);
}

.holo-video-stage {
  position: relative;
  border: 1px solid rgba(186, 238, 255, 0.22);
  background: radial-gradient(circle at 50% 50%, rgba(12, 24, 40, 0.32) 0%, rgba(4, 8, 16, 0.56) 100%);
  box-shadow:
    0 0 42px rgba(176, 236, 255, 0.16),
    0 0 96px rgba(232, 198, 142, 0.09),
    inset 0 0 28px rgba(176, 236, 255, 0.10);
}

.holo-video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* 四隅の極細ホログラム光学コーナーブラケット */
.holo-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 4;
}
.holo-corner-tl {
  top: -5px;
  left: -5px;
  border-top: 2px solid rgba(196, 242, 255, 0.88);
  border-left: 2px solid rgba(196, 242, 255, 0.88);
}
.holo-corner-tr {
  top: -5px;
  right: -5px;
  border-top: 2px solid rgba(232, 198, 142, 0.88);
  border-right: 2px solid rgba(232, 198, 142, 0.88);
}
.holo-corner-bl {
  bottom: -5px;
  left: -5px;
  border-bottom: 2px solid rgba(232, 198, 142, 0.88);
  border-left: 2px solid rgba(232, 198, 142, 0.88);
}
.holo-corner-br {
  bottom: -5px;
  right: -5px;
  border-bottom: 2px solid rgba(196, 242, 255, 0.88);
  border-right: 2px solid rgba(196, 242, 255, 0.88);
}

/* 出現時に一度だけ映像をスキャンして実体化させる光学ライン */
@keyframes holo-materialize-sweep {
  0% {
    top: -4%;
    opacity: 0;
  }
  18% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.75;
  }
  100% {
    top: 104%;
    opacity: 0;
  }
}

.holo-scan-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: -4%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(186, 238, 255, 0.9) 25%, rgba(255, 248, 232, 0.98) 50%, rgba(232, 198, 142, 0.9) 75%, transparent 100%);
  box-shadow: 0 0 18px rgba(186, 238, 255, 0.85), 0 0 36px rgba(232, 198, 142, 0.45);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.theater-holo-mode[open] .holo-scan-sweep {
    animation: holo-materialize-sweep 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

/* =========================================================
   Challenge 01 写真スライドショー（カード内 ＆ モーダル内）
========================================================== */
[data-js-only][hidden] {
  display: none;
}

.gallery-card.is-slideshow .slide-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 5.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gallery-card.is-slideshow .slide-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-card.is-slideshow:hover .slide-frame.is-active {
  transform: scale(1.035);
}

.gallery-slide-hud {
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.gallery-slide-dot {
  width: 6px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(247, 244, 236, 0.28);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.gallery-slide-dot.is-active {
  width: 16px;
  background: var(--accent-gold);
}

.modal-slideshow-stage img.modal-slide-img {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-slide-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-slide-thumb:hover {
  opacity: 0.9;
}

.modal-slide-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card.is-slideshow .slide-frame,
  .modal-slideshow-stage img.modal-slide-img {
    transition: none;
    transform: none;
  }
}
