:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #000; color: #fff; }
* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; }
main { padding: 9.4vw 3.8vw 6vw 4.2vw; }
h1 { font-size: clamp(2rem, 3.5vw, 4.5rem); letter-spacing: -.045em; line-height: 1.08; margin: 0 0 3vw; font-weight: 700; }
header p { font-size: clamp(1rem, 1.93vw, 2.5rem); letter-spacing: -.04em; line-height: 1.16; max-width: 56vw; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.9vw; row-gap: 1.5vw; margin-top: 6.1vw; }
.tile { display: block; border: 0; padding: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 1.414 / 1; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:focus-visible, .close:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.scroll-track { position: fixed; z-index: 5; right: .4vw; top: 25vh; bottom: 4vh; width: 10px; border-radius: 8px; background: #303030; touch-action: none; cursor: pointer; }
.scroll-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 64px; background: #d4d4d4; border-radius: inherit; cursor: grab; }
.scroll-thumb:active { cursor: grabbing; }
dialog { position: fixed; inset: 0; margin: 0; border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; background: #000; color: #fff; }
dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) 16.5vw; column-gap: 4.3vw; padding-right: 1.8vw; }
dialog::backdrop { background: #000; }
.detail-main { min-width: 0; min-height: 0; height: 100dvh; overflow: hidden; padding: 9.4vw 0 4vh 4.7vw; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: clamp(12px, 2vh, 28px); }
.detail-main::-webkit-scrollbar, .filmstrip::-webkit-scrollbar { display: none; }
.back-title { display: block; padding: 0; border: 0; background: none; color: #fff; font: 700 clamp(2rem, 3.5vw, 4.5rem)/1.08 Arial, Helvetica, sans-serif; letter-spacing: -.045em; text-align: left; cursor: pointer; margin: 0; }
.large-image { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; object-position: left center; display: block; background: #000; }
.detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 2vw; margin: 0; }
.caption h2 { font-size: clamp(1.5rem, 2.9vw, 3.2rem); font-weight: 400; line-height: 1.12; letter-spacing: -.04em; margin: 0 0 .8vw; }
.caption p { font-size: clamp(1rem, 1.7vw, 2rem); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.filmstrip { margin-top: 4vw; height: calc(100dvh - 6vw); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: .7vw; }
.thumbnail { display: block; width: 100%; height: calc(16.5vw / 1.414); aspect-ratio: 1.414 / 1; flex: 0 0 auto; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumbnail[aria-current] { cursor: default; }
.detail-scroll { position: absolute; right: .4vw; top: 4vw; bottom: 2vw; width: 8px; border-radius: 8px; background: #303030; touch-action: none; cursor: pointer; }
.detail-scroll-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 44px; border-radius: inherit; background: #d4d4d4; cursor: grab; }
.detail-scroll-thumb:active { cursor: grabbing; }
.thumbnail:focus-visible, .back-title:focus-visible, .playback button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.close { position: absolute; top: 2vw; right: 23vw; width: 40px; height: 40px; padding: 0; font-size: 2rem; line-height: 1; background: none; color: #fff; border: 0; cursor: pointer; }
.playback { display: flex; flex-shrink: 0; gap: .6vw; }
.playback button { display: flex; align-items: center; justify-content: center; width: 3vw; min-width: 36px; height: 3.5vw; min-height: 44px; border: 0; padding: 0; background: none; color: #fff; cursor: pointer; }
.pause { gap: .5vw; }
.pause span { display: block; height: 2.8vw; min-height: 24px; width: .6vw; min-width: 5px; background: #fff; }
.play span { width: 0; height: 0; border-top: 1.4vw solid transparent; border-bottom: 1.4vw solid transparent; border-left: 2.5vw solid #fff; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 650px) {
  main { padding: 70px 22px 50px; }
  h1 { font-size: 2rem; margin-bottom: 28px; }
  header p { max-width: 100%; font-size: 1.05rem; line-height: 1.25; }
  .gallery { margin-top: 48px; gap: 10px; }
  .scroll-track { right: 3px; width: 5px; }
  dialog[open] { grid-template-columns: minmax(0, 1fr) 23vw; column-gap: 3vw; padding-right: 3vw; }
  .detail-main { padding: 80px 0 20px 4vw; }
  .back-title { font-size: 1.65rem; margin: 0; }
  .filmstrip { margin-top: 80px; height: calc(100dvh - 100px); gap: 8px; }
  .thumbnail { height: calc(23vw / 1.414); }
  .close { top: 18px; right: 30vw; }
  .detail-scroll { top: 80px; bottom: 20px; width: 5px; right: 3px; }
  .detail-footer { align-items: flex-start; flex-direction: column; gap: 8px; margin: 0; }
  .caption h2 { margin-bottom: 8px; }
  .play span { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 22px; }
  .pause { gap: 6px; }
}
