/* Framed films share the editorial teal and muted gold palette. */
.gallery-film{margin:clamp(.75rem,2vw,1.25rem) auto 2.8625rem;width:fit-content;min-width:min(100%,19rem);max-width:100%;text-align:left;}
.film-frame{
  --film-paper:linear-gradient(105deg,rgba(255,255,255,.88),rgba(255,255,255,.97) 55%,rgba(255,255,255,.90)) 0 0 / cover,url("ginkgo-arches.webp") 0 0 / 200px auto #fff;
  --film-border:1px solid #a58b56;
  --film-shadow:0 8px 28px #153b3e12;
  padding:9px;border:var(--film-border);background:var(--film-paper);
  box-shadow:var(--film-shadow);max-width:100%;
}
.film-frame video{display:block;margin-inline:auto;width:auto;height:auto;max-width:100%;max-height:min(108svh,1120px);object-fit:contain;background:transparent;}
.film-controls:not([hidden]){display:grid;contain:inline-size;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:clamp(4px,1vw,10px);padding:6px 0 0;color:#143b3e;min-height:50px;direction:ltr;}
.film-controls button,.film-audio summary{display:inline-flex;align-items:center;justify-content:center;width:clamp(36px,5vw,44px);height:44px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;}
.film-controls button:hover,.film-audio summary:hover{color:#86682f;}
.film-controls button:focus-visible,.film-audio summary:focus-visible,.film-controls input:focus-visible,.film-frame video:focus-visible{outline:2px solid #785b24;outline-offset:3px;}
.film-audio{position:relative;}
.film-audio summary{list-style:none;}
.film-audio summary::-webkit-details-marker{display:none;}
.film-audio:not([open]) .film-audio-panel{display:none;}
.film-audio-panel{
  position:absolute;z-index:1;right:0;bottom:calc(100% + 4px);
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;
  width:9rem;padding:3px 10px 3px 3px;
  border:var(--film-border);background:var(--film-paper);box-shadow:var(--film-shadow);
}
.film-controls svg{pointer-events:none;}
.film-timeline{position:relative;min-width:0;}
.film-controls input[type=range]{appearance:none;-webkit-appearance:none;display:block;height:20px;border:0;padding:0;margin:0;cursor:pointer;background:transparent;accent-color:#86682f;}
.film-controls input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,#86682f var(--progress,0%),#87948f var(--progress,0%));}
.film-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:9px;height:9px;margin-top:-3.5px;border-radius:50%;background:#765922;border:0;}
.film-controls input[type=range]::-moz-range-track{height:2px;background:#87948f;}
.film-controls input[type=range]::-moz-range-progress{height:2px;background:#86682f;}
.film-controls input[type=range]::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:#765922;border:0;}
.film-seek{width:100%;}.film-controls .film-volume{width:100%;min-width:0;}
.film-time{position:absolute;inset-inline-start:0;top:calc(50% + 5px);font-family:Arial,sans-serif;font-size:12px;line-height:1.4;letter-spacing:.04em;color:#26484a;white-space:nowrap;}
.film-frame:fullscreen{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;}
.film-frame:fullscreen video{height:calc(100dvh - 100px);width:100%;max-height:none;min-height:0;}
.film-frame:fullscreen .film-controls{width:min(100%,1000px);}
@media (max-width:600px){
  .film-frame{padding:4px;}
}
@media (orientation:landscape) and (max-height:520px){
  .gallery-film{margin-bottom:1.25rem;min-width:min(100%,15rem);}
  .film-frame{padding:5px;}
  .film-frame video{max-height:100svh;}
}

/* Half the former video-to-photo gap, including the former back-link row. */
.destination-intro:has(.gallery-film){padding-bottom:clamp(.375rem,1vw,.75rem);}

/* Show the portfolio thumbnail until the film starts. */
.gallery-film.has-gallery-poster:not(.has-started) { width: min(100%, 46rem); }
.gallery-film.has-gallery-poster:not(.has-started) .film-frame { position: relative; }
.gallery-film.has-gallery-poster:not(.has-started) video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.film-preview-play:not([hidden]) {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(3.75rem, 8vw, 4.625rem);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff7e5;
  cursor: pointer;
}
.film-preview-play svg {
  width: 3rem;
  height: 3rem;
  fill: currentColor;
  stroke: #b18a45;
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px #1f1b1277);
}
.film-preview-play:focus-visible { outline: 2px solid #fff7e5; outline-offset: 4px; }
