/* keesriphagen.nl: overview pages (v3 §8: light and clean)
   Film = poster grid · Commercials = rich list · Music videos = widescreen strips */

.light main ul,
.light main ol { list-style: none; margin: 0; padding: 0; }
.light main a { color: inherit; text-decoration: none; }
.go { color: var(--grey); margin-top: 10px; }
a:hover .go, .go a:hover { color: var(--ink); }

/* ---------- Film: poster grid ---------- */
.light main .film-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: calc(100vw / 24);
  row-gap: 64px;
  margin: 72px calc(100vw / 24) 112px;
}
.film-it { grid-column: span 2; }
/* Kees t238u: layout classes are set on the VISIBLE cards (build for All, site.js after a filter):
   rows of 3; a count that leaves 2 gets a centred pair as row 2, a count that leaves 1 gets a centred last card */
.film-it.is-pair { grid-column: 2 / span 2; }
.film-it.is-solo { grid-column: 3 / span 2; }
.film-it > a { display: block; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1A1917;
  box-shadow: 0 18px 40px -24px rgba(17, 17, 17, 0.45);
}
.poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
/* styled placeholder: blurred still as backdrop, the full still uncropped, title set in type */
.ph-poster > img.bg { opacity: 0.6; transform: scale(1.15); }
.ph-poster > img.still {
  inset: auto 0 auto 0;
  top: 34%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: translateY(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ph-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 25, 23, 0) 45%, rgba(26, 25, 23, 0.85) 100%);
}
.ph-poster .pt {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 9%;
  color: var(--bone);
  font-size: var(--t2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ph-poster .pt:has(~ .st-badge) { bottom: calc(9% + 34px); }
.ph-poster .tag {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 6%;
  color: rgba(243, 241, 236, 0.55);
}
a:hover .poster > img:not(.bg):not(.still) { transform: scale(1.025); }
a:hover .ph-poster > img.still { transform: translateY(-50%) scale(1.025); }
.film-it .cap { margin-top: 18px; }
.film-it h2 {
  margin: 0;
  font-size: var(--t2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.film-it h2 .aka {
  display: block;
  margin-top: 4px;
  font-size: var(--t4);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--grey);
}
.film-it .cap .meta { margin: 10px 0 0; color: var(--grey); }

/* ---------- Commercials: rich list ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px calc(100vw / 24) 0;
}
.filters[hidden] { display: none; }
.filters button {
  font: 400 13px/1 var(--font-sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: var(--t5);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
.filters button.on { background: var(--ink); color: var(--paper); }
.light main .clist { margin: 40px 0 112px; border-top: 1px solid var(--ink); }
.clist li {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.clist li[hidden] { display: none; }
.film-grid li[hidden] { display: none; }
/* Kees t239u: Upcoming above the completed films */
.film-sec[hidden] { display: none; }
.sec-h {
  margin: 72px calc(100vw / 24) 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--t6);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
}
.light main .film-sec .film-grid { margin-top: 40px; }
.light main .film-up .film-grid { margin-bottom: 0; }
.film-up .sec-h { margin-top: 56px; }
/* Kees t244u: upcoming cards about a third of a completed card, left-aligned under the heading */
.light main .film-up .film-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px calc(100vw / 48);
  margin-top: 28px;
}
.film-up .film-it,
.film-up .film-it.is-pair,
.film-up .film-it.is-solo { width: max(132px, calc(100vw * 40 / 432)); margin: 0; }
.film-up .film-it .cap { margin-top: 10px; }
.film-up .film-it h2 { font-size: var(--t4); letter-spacing: -0.01em; font-weight: 500; line-height: 1.2; }
.film-up .film-it .cap .meta { margin-top: 5px; font-size: var(--t6); font-family: var(--font-mono); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
.film-up .up-st { display: flex; gap: 6px; align-items: center; color: var(--ink) !important; }
.film-up .up-st i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.film-up .ph-poster .pt { font-size: var(--t4); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.film-grid { scroll-margin-top: 96px; }
.clist .th {
  grid-column: 3 / 9;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #E3E1DA;
}
.clist .th img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.clist a.th:hover img { transform: scale(1.03); }
.clist .main { grid-column: 10 / 17; padding-right: 24px; }
.clist .main h2 { margin: 0; font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.clist .main h2 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.clist .main p { margin: 14px 0 0; color: #3a3a37; font-size: var(--t4); max-width: 520px; letter-spacing: 0; }
.clist .main p.go { color: var(--grey); font-size: inherit; }
/* Round 78: "Project page →" is a label like all others (was mono at 16 px) */
.clist .main p.meta { font-family: var(--font-mono); font-size: var(--t6); letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
.clist dl {
  grid-column: 17 / 24;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px 18px;
  margin: 4px 0 0;
  font-size: var(--t5);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
.clist dt {
  font-family: var(--font-mono);
  font-size: var(--t6);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}
.clist dd { margin: 0; }

/* Mid widths (701–1100 px): the 7-column title cell got narrower than long one-word
   titles like "Kunstijsbanen", so the h2 ran into the credits. Credits now sit under the text. */
@media (min-width: 701px) and (max-width: 1100px) {
  .clist li { row-gap: 18px; }
  .clist .th { grid-column: 2 / 11; grid-row: 1 / span 2; }
  .clist .main { grid-column: 12 / 24; padding-right: 0; }
  .clist dl { grid-column: 12 / 24; margin: 0; font-size: var(--t5); font-weight: 400; letter-spacing: 0; line-height: 1.45; }
}
.clist .main h2 { overflow-wrap: break-word; font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

/* ---------- Music videos: widescreen strips ---------- */
.light main .strips { margin: 72px 0 112px; }
.strip {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1), filter 0.4s;
}
.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.45));
}
.light main .strip { color: #fff; }
a.strip:hover img { transform: scale(1.03); filter: brightness(1.08); }
.strip .in {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: center;
}
.strip .a { grid-column: 2 / 14; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.strip h2 { margin: 0; font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.strip .a small { display: block; font-size: var(--t4); font-weight: 300; margin-top: 6px; opacity: 0.9; letter-spacing: 0; }
.strip .y { grid-column: 15 / 24; text-align: right; opacity: 0.9; font-family: var(--font-mono); font-size: var(--t6); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
.strip .ph { color: rgba(255, 255, 255, 0.5) !important; }
.strip .go { color: inherit; margin: 0; }

@media (max-width: 700px) {
  .light main .film-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 40px;
    margin: 40px 20px 72px;
  }
  .film-it,
  .film-it.is-pair,
  .film-it.is-solo { grid-column: auto; }
  .film-it.is-lead { grid-column: 1 / -1; width: 72%; margin: 0 auto; }
  .film-it.m-solo { grid-column: 1 / -1; width: calc(50% - 8px); margin: 0 auto; }
  .film-up .film-it,
  .film-up .film-it.is-lead,
  .film-up .film-it.m-solo { width: 30vw; margin: 0; }
  .light main .film-up .film-grid { gap: 20px 16px; margin-top: 20px; }
  .film-up .film-it h2 { font-size: var(--t4); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
  .sec-h { margin: 48px 20px 0; padding-top: 14px; font-family: var(--font-mono); font-size: var(--t6); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
  .film-up .sec-h { margin-top: 36px; }
  .light main .film-sec .film-grid { margin-top: 28px; }
  .film-it h2 { font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
  .film-it h2 .aka { font-size: var(--t4); letter-spacing: 0; font-weight: 300; }
  .ph-poster .pt { font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
  .film-it .cap { margin-top: 12px; }

  .filters { margin: 28px 20px 0; }
  .light main .clist { margin: 28px 0 72px; }
  .clist li { grid-template-columns: repeat(6, 1fr); padding: 20px 20px 24px; gap: 14px 0; }
  .clist .th { grid-column: 1 / -1; }
  .clist .main { grid-column: 1 / -1; padding: 0; }
  .clist .main h2 { font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
  .clist dl { grid-column: 1 / -1; font-size: var(--t5); font-weight: 400; letter-spacing: 0; line-height: 1.45; }

  .light main .strips { margin: 40px 0 72px; }
  .strip { height: 176px; }
  .strip .in { grid-template-columns: repeat(6, 1fr); }
  .strip .a { grid-column: 1 / 5; padding-left: 20px; }
  .strip h2 { font-size: var(--t2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
  .strip .a small { font-size: var(--t4); margin-top: 3px; letter-spacing: 0; font-weight: 300; }
  .strip .y { grid-column: 5 / 7; padding-right: 20px; font-size: var(--t6); font-family: var(--font-mono); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
  .strip .pr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .poster > img, .clist .th img, .strip img { transition: none; }
}

/* Kees t229u: status badge on the film card (from the project's "festival_status") */
.st-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  font-size: var(--t6);
  color: #F3F1EC;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
}
.st-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
@media (max-width: 700px) {
  .st-badge { left: 6px; bottom: 6px; padding: 4px 7px; font-size: var(--t6); gap: 6px; font-family: var(--font-mono); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
  .ph-poster .st-badge ~ .pt, .ph-poster .pt:has(~ .st-badge) { bottom: 44px; }
}

/* Round 78 type scale (Kees t256u/t257u): aka line on the small upcoming cards */
.film-up .film-it h2 .aka {
  font-size: var(--t5);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
