* { box-sizing: border-box; }
html { color-scheme: dark; background: #000; }
body { margin: 0; background: #000; color: #fafafa; font-family: Arial, sans-serif; }
.gallery-back { position: absolute; z-index: 2; top: 1.4rem; left: 3vw; color: inherit; font-size: .85rem; text-decoration: none; }
.gallery-back:hover { text-decoration: underline; }
.film-page { min-height: 100svh; display: grid; align-items: center; justify-items: center; padding: 4rem 1rem 1.75rem; }
.film { width: min(78vw, 135svh); margin: 0; text-align: center; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.film h1 { margin: .75em 0 0; font-size: clamp(16px, 1.8vw, 30px); line-height: 1.24; }
.film-word { display: inline-block; white-space: nowrap; }
.film-letter { display: inline-block; }
.film-options { display: flex; justify-content: center; gap: .75rem; margin-top: .7rem; }
.film-options button { color: #bbb; border: 1px solid #555; background: transparent; padding: .4rem .75rem; cursor: pointer; }
.film-options button[aria-pressed="true"] { color: white; border-color: white; }
@media (max-width: 660px) { .film { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .film-letter { animation: film-letter-arrival .75s cubic-bezier(.16,.75,.25,1) var(--lag) both; }
  @keyframes film-letter-arrival {
    from { opacity: 0; transform: translateY(-.25em); }
    to { opacity: 1; transform: none; }
  }
}

.film iframe, .film-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border: 0;
}
.film iframe { min-height: 200px; }
