.leads-page.archival-films { max-width: 58rem; margin: 1.65rem auto 4.5rem; }
.archival-films {
  --mount: #19191b;
  --frame-border: #8d826c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .archival-films {
    --frame-border: #554e41;
  }
}
:root[data-theme="dark"] .archival-films {
  --frame-border: #554e41;
}

.af-mast {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 1.9rem) 0;
  border-block: 1px solid var(--ink);
}
.archival-films .af-mast .page-title {
  margin: 0 0 .65rem;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  text-wrap: balance;
}
.af-deck {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-2);
  font: 1.18rem/1.48 var(--serif);
}

.af-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.3rem;
}
.af-hero-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--frame-border);
  background: var(--mount);
  overflow: hidden;
  transition: border-color .15s ease;
}
.af-hero-card:hover { border-color: var(--ink); }
.af-hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.af-hero-caption {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .45rem .55rem .5rem;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.af-hero-caption strong {
  color: var(--ink);
  font: 500 .95rem/1.2 var(--serif);
}
.af-hero-caption span {
  color: var(--muted);
  font: .76rem/1.25 var(--mono);
}

.af-map-section {
  margin: 1.8rem 0 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}

.af-case, .af-method {
  display: block;
  margin: 1.8rem 0 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--rule);
  font: 1.14rem/1.55 var(--serif);
  color: var(--ink-2);
  scroll-margin-top: 2rem;
}
.archival-films h2 {
  margin: 0 0 .35rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: 500 clamp(1.65rem, 3.2vw, 2.2rem)/1.15 var(--serif);
  text-transform: none;
  letter-spacing: -.02em;
}
.af-meta {
  margin: 0 0 .85rem;
  font: .84rem/1.4 var(--mono);
  color: var(--muted);
}
.archival-films section p { max-width: 68ch; margin: 0 0 .95em; }
.archival-films section a { color: var(--ink-2); text-underline-offset: .15em; }
.archival-films code { font: .84em var(--mono); background: var(--bg-2); padding: .08em .3em; }

.af-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.9rem, 2.2vw, 1.4rem);
  margin: 1.15rem 0 .6rem;
}
.af-stills.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.archival-films figure { margin: 0; min-width: 0; }
.archival-films figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font: .9rem/1.4 var(--serif);
}
.archival-films figcaption a { color: var(--ink-2); }

.still-zoom {
  display: block;
  line-height: 0;
  cursor: zoom-in;
  background: var(--mount);
  border: 1px solid var(--frame-border);
  overflow: hidden;
}
.still-zoom img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Lightbox dialog */
.af-viewer {
  max-width: min(92vw, 56rem);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--frame-border);
  background: var(--bg);
  color: var(--ink);
}
.af-viewer::backdrop { background: rgba(15, 14, 12, .72); }
.af-viewer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.af-viewer header h2 {
  margin: 0;
  font: 500 1.05rem/1.3 var(--serif);
}
.af-viewer .viewer-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  font: .88rem/1 var(--sans);
}
.af-viewer .viewer-close {
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--ink);
  width: 2rem;
  height: 2rem;
  font: 1.2rem/1 var(--sans);
  cursor: pointer;
}
.af-viewer .viewer-body {
  padding: 1rem;
  background: var(--mount);
  display: grid;
  place-items: center;
}
.af-viewer .viewer-body img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .af-hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .af-stills, .af-stills.cols-3 {
    grid-template-columns: 1fr;
  }
}
