:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #101010; color: #f5f3ec; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.masthead { position: fixed; inset: 0 0 auto; z-index: 2; height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: #101010; }
.brand { text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.5px; }
.archive-label { color: #aaa; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.gallery { height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline-offset: -3px; }
.gallery.is-animating { scroll-snap-type: none; }
.gallery::-webkit-scrollbar { display: none; }
.poster { margin: 0; height: 100%; width: 100%; padding: 72px 72px 82px; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
.poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.controls { position: fixed; z-index: 2; inset: auto 0 0; min-height: 68px; padding: 8px 32px max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: #101010; }
.counter { color: #999; font-size: 11px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.counter strong { color: #f5f3ec; font-weight: 400; }
.pagination { display: flex; align-items: center; justify-content: center; }
.dot { width: 26px; height: 36px; display: grid; place-items: center; text-decoration: none; }
.dot::after { content: ''; width: 6px; height: 6px; background: #565656; border-radius: 50%; transition: background .2s, transform .2s; }
.dot[aria-current="true"]::after { background: #f5f3ec; transform: scale(1.25); }
.dot:hover::after { background: #bbb; }
.direction { justify-self: end; display: flex; align-items: center; gap: 16px; }
.hint { color: #999; font-size: 10px; letter-spacing: 1px; }
.arrow { border: 1px solid #444; border-radius: 50%; color: #eee; background: transparent; width: 34px; height: 34px; cursor: pointer; }
.arrow:hover { background: #292929; }
.arrow:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 2px solid #f7a619; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .masthead { height: 54px; padding: 0 20px; padding-top: env(safe-area-inset-top); }
  .brand { font-size: 14px; }
  .archive-label { font-size: 9px; letter-spacing: 1.5px; }
  .gallery { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .poster { flex: 0 0 100%; padding: calc(62px + env(safe-area-inset-top)) 12px calc(94px + env(safe-area-inset-bottom)); }
  .controls { display: flex; flex-direction: column; gap: 0; min-height: 80px; padding-top: 0; }
  .pagination { order: -1; }
  .dot { width: 27px; height: 32px; }
  .counter { font-size: 10px; }
  .direction { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }
