/* ==========================================================================
   FILMS — a clip playing, then the stills reel. Loaded by films.html only.
   Uses the site's own colours and type from main.css.
   ========================================================================== */

.films-page{ padding-bottom:clamp(40px,8vh,100px); }

.film{
  padding:clamp(40px,7vh,90px) var(--pad) clamp(30px,5vh,60px);
  border-top:1px solid var(--line);
  max-width:1480px;
}
.film-head{
  display:grid; grid-template-columns:auto 1fr; align-items:end;
  gap:clamp(22px,4vw,56px);
  margin-bottom:clamp(28px,5vh,52px);
}
.film-head.plain{ grid-template-columns:1fr; }
.film-poster{
  display:block; width:clamp(120px,14vw,190px); cursor:zoom-in;
  background:var(--bg2); border:1px solid var(--line);
}
.film-poster img{ width:100%; }
.film-head .label{ margin-bottom:14px; }
.film-head h2{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(34px,5vw,72px); line-height:1; letter-spacing:-.01em;
}
.film-head h2 em{ font-style:italic; color:var(--mut); }
.film-note{
  margin-top:16px; max-width:60ch; font-size:16px; line-height:1.75;
  color:rgba(var(--ink-rgb),.85);
}

/* ---------- the clip ---------- */
.film-vid{
  position:relative; aspect-ratio:1600/684; overflow:hidden;
  background:#0B0B09; border:1px solid var(--line);
}
.film-vid.yt{ aspect-ratio:2.39/1; }
.film-vid video, .film-vid .vid-poster{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
/* a 16:9 player sits behind a wide window, so the bars above and below are cropped */
.film-vid.yt iframe{
  position:absolute; left:0; top:-17.3%; width:100%; height:134.6%; border:0; pointer-events:none;
}
.film-vid .vid-poster{ transition:opacity .8s var(--ease); z-index:1; }
.film-vid.playing .vid-poster{ opacity:0; pointer-events:none; }
.film-bar{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:34px 18px 14px;
  background:linear-gradient(transparent, rgba(0,0,0,.7));
  font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#EAE5D9;
}
.film-bar span{ opacity:.85; }
.film-bar a{
  color:#EAE5D9; border:1px solid rgba(234,229,217,.5); border-radius:999px;
  padding:8px 14px; white-space:nowrap; transition:background .3s, color .3s;
}
.film-bar a:hover{ background:#EAE5D9; color:#0B0B09; }

/* ---------- the stills ---------- */
.reel-bar{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap;
  margin:clamp(30px,5vh,52px) 0 16px; padding-bottom:12px;
  border-bottom:1px solid var(--line);
  font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--mut);
}
.reel-bar .rb-k{ color:var(--cyan); }
.reel{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:14px;
  scroll-snap-type:x proximity; scrollbar-width:thin;
  scrollbar-color:var(--line2) transparent;
}
.reel::-webkit-scrollbar{ height:6px; }
.reel::-webkit-scrollbar-thumb{ background:var(--line2); border-radius:9px; }
.reel button{ flex:0 0 auto; cursor:zoom-in; scroll-snap-align:start; background:var(--bg2); }
.reel img{
  height:clamp(120px,15vw,200px); width:auto;
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.reel button:hover img{ opacity:.82; }
.reel button:focus-visible, .film-poster:focus-visible, .film-bar a:focus-visible{
  outline:1px solid var(--cyan); outline-offset:3px;
}

/* ---------- the enlarged still ---------- */
.lb{
  position:fixed; inset:0; z-index:1500; display:none;
  align-items:center; justify-content:center; padding:4vw;
  background:rgba(8,8,7,.95);
}
.lb.on{ display:flex; }
.lb img{ max-width:92vw; max-height:82vh; width:auto; height:auto; cursor:zoom-out; }
.lb button{
  position:absolute; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#EAE5D9; border:1px solid rgba(234,229,217,.3); border-radius:999px;
  transition:background .3s, color .3s;
}
.lb button:hover{ background:#EAE5D9; color:#0B0B09; }
.lb .x{ top:20px; right:20px; padding:8px 14px; }
.lb .prev, .lb .next{ top:50%; width:46px; height:46px; transform:translateY(-50%); font-size:16px; }
.lb .prev{ left:20px; } .lb .next{ right:20px; }
.lb .count{
  position:absolute; bottom:20px; left:0; right:0; text-align:center;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:#948D7C;
}

@media (max-width:720px){
  .film-head{ grid-template-columns:1fr; align-items:start; }
  .film-poster{ width:120px; }
  .film-vid, .film-vid.yt{ aspect-ratio:16/10; }
  .film-vid.yt iframe{ top:-6%; height:112%; left:-10%; width:120%; }
  .film-bar{ padding:26px 12px 10px; font-size:10px; letter-spacing:.1em; }
  .film-bar a{ padding:7px 11px; }
  .lb .prev{ left:8px; } .lb .next{ right:8px; }
}
