/* ==========================================================================
   Joke Vonk - theme C "Atelier". Ported from design/variant-c/style.css onto the markup of the base
   templates (the structure of theme D). Mobile-first. No frameworks. No inline styles are used anywhere
   (the CSP forbids them), so a value that depends on the data comes from the width and height attributes
   of the <img>, or from a CSS variable that JS sets through the CSSOM.

   Look: an evening exhibition in an atelier. Wine red for the heads of pages and the agenda, deep brown for
   the content and a still darker "wall" behind the works.
   ========================================================================== */

/* ---------- 0. Fonts: self-hosted, no external requests ----------
   Latin subset (U+0000-00FF plus punctuation, e.g. quotes, dashes and the euro sign), from Google Fonts,
   SIL Open Font License (see the OFL-*.txt files next to the fonts). Paths are relative to this file, so the
   base path never matters. Fraunces and Crimson Pro (upright) are variable fonts: one file for all weights
   used; Fraunces also has the optical-size axis, which the browser sets from the font size. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-italic-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/crimson-pro-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/crimson-pro-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Fixed palette of the old site (do not change) */
  --wijnrood: #770B0B;
  --creme: #EFEECC;
  --diepbruin: #342117;
  --accent: #A46126;      /* decoration only: the sheet behind a card (3:1 on diepbruin is too little for text) */
  --tekst: #665555;       /* body text on cream (5.9:1) */
  --kop: #353E49;         /* headings on cream */
  --wit: #FFFFFF;

  /* Derived: only darker or lighter steps of the palette */
  --nacht: #1E130D;                          /* the gallery wall, the footer and the lightbox */
  --plint: #2A1B13;                          /* the tile behind a work */
  --accent-licht: #E0A266;                   /* the accent as TEXT on dark: 6.9:1 on diepbruin, 5.2:1 on wijnrood */
  --creme-zacht: rgb(239 238 204 / .78);     /* secondary text on dark: >= 7:1 on diepbruin, >= 6:1 on wijnrood */
  --lijn: rgb(239 238 204 / .18);

  /* Surface (dark = default). Sections set data-theme; see below. */
  --bg: var(--diepbruin);
  --fg: var(--creme);
  --heading: var(--creme);
  --link: var(--creme);
  --link-hover: var(--accent-licht);
  --deco: var(--accent-licht);
  --focus: var(--accent-licht);

  /* Typography */
  --display: "Fraunces", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --text: "Crimson Pro", "Palatino Linotype", "Book Antiqua", Palatino, serif;

  /* Layout: content is --max wide and centred; below that the gutter is the side margin. */
  --max: 80rem;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Surfaces. The base templates use the names rood, creme and donker for the role of a section; in theme C:
   - rood (hero, contact) and creme (the agenda on Home, light in theme D) are both wine red, like the mockup;
   - donker (footer, lightbox) is the darker wall colour;
   - the cream surface is only used for the long bio on Over mij. The base template does not mark it, so it
     is recognised by its text. */
[data-theme="rood"], [data-theme="creme"] {
  --bg: var(--wijnrood); --fg: var(--creme); --heading: var(--creme); --link: var(--wit); --link-hover: var(--accent-licht);
  --deco: var(--accent-licht); --focus: var(--creme);
}
[data-theme="donker"] {
  --bg: var(--nacht); --fg: var(--creme); --heading: var(--creme); --link: var(--creme);
}
.section:has(.about__text) {
  --bg: var(--creme); --fg: var(--tekst); --heading: var(--kop); --link: var(--wijnrood); --link-hover: var(--wijnrood);
  --deco: var(--wijnrood); --focus: var(--wijnrood);
}
[data-theme], .section:has(.about__text) { background: var(--bg); color: var(--fg); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--diepbruin);
  color: var(--creme);
  font: 400 1.1875rem/1.6 var(--text);      /* 19px: Crimson Pro has a small x-height */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  /* On a short page the footer still sits at the bottom of the window. */
  min-height: 100svh;
  display: flex; flex-direction: column;
}
@media (min-width: 64rem) { body { font-size: 1.3125rem; } }
main { flex: 1 0 auto; }
picture { display: contents; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; color: var(--heading); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--deco); }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--creme); color: var(--diepbruin); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; outline-color: var(--wijnrood); }
code { background: var(--plint); padding: .1em .35em; font-size: .9em; }

.wrap { width: 100%; padding-inline: var(--pad-x); }
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.lead { font: 400 1.25em/1.4 var(--text); font-style: italic; color: var(--creme); max-width: 36rem; margin: 1.25rem 0 0; }
.lead + p { margin-top: 1rem; }
.display {
  margin: 0; color: var(--creme);
  font: 350 clamp(3.2rem, 13vw, 9.5rem)/.9 var(--display); letter-spacing: -.03em;
}
.display--md { font-size: clamp(3rem, 11vw, 6.75rem); }

/* ---------- 3. Header and menu ---------- */
.site-header { position: relative; z-index: 20; background: var(--diepbruin); border-bottom: 1px solid var(--lijn); }
.site-header__inner { padding-inline: var(--pad-x); min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: block; text-decoration: none; color: var(--creme); line-height: 1; }
.wordmark__name { display: block; font: italic 400 1.7rem/1 var(--display); white-space: nowrap; }
.wordmark__name::after { content: "."; font-style: normal; color: var(--accent-licht); }
.wordmark__tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* read out, not shown */
.wordmark:hover { color: var(--wit); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem .9rem;
  background: transparent; color: var(--creme); border: 1px solid var(--lijn); border-radius: 999px; cursor: pointer;
  font: 600 .8rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 1.1rem; height: 2px; background: currentColor; transition: background-color .2s; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle__icon::before { transform: translateY(-6px); }
.menu-toggle__icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--creme); text-decoration: none; }

/* Without JS the menu is simply visible under the name. */
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .site-nav { width: 100%; }

/* Mobile: a wine-red drop-down panel under the header */
@media (max-width: 47.99rem) {
  .site-nav > ul { padding: .75rem var(--pad-x) 1.5rem; }
  .site-nav > ul > li { border-bottom: 1px solid var(--lijn); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: .7rem 0; font: 400 2rem/1.1 var(--display); }
  .site-nav a:hover { color: var(--wit); font-style: italic; }
  .site-nav a[aria-current] { font-style: italic; color: var(--wit); }
  .site-nav a[aria-current="page"]::after { content: " \00b7"; color: var(--accent-licht); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wijnrood); box-shadow: 0 1.5rem 2rem rgb(0 0 0 / .35); }
  .js .site-nav[data-open] { display: block; }
  .site-nav__sub { padding: 0 0 .75rem 1rem !important; }
  .site-nav .site-nav__sub a { font-size: 1.4rem; padding: .45rem 0; }
}
@media (min-width: 48rem) {
  .menu-toggle { display: none; }
  .site-nav > ul, html:not(.js) .site-nav > ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
  .site-nav li { position: relative; }
  .site-nav a {
    display: block; padding: .5rem 0; border-bottom: 2px solid transparent;
    font: 600 .85rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase;
  }
  .site-nav a:hover { color: var(--accent-licht); }
  .site-nav a[aria-current] { border-bottom-color: var(--accent-licht); }
}

/* ---------- 4. Submenu (pages of a section) ---------- */
@media (min-width: 48rem) {
  .site-nav .site-nav__sub {
    display: none; position: absolute; top: 100%; left: -1rem; z-index: 60; min-width: 16rem; padding: .5rem 0;
    background: var(--nacht); border: 1px solid var(--lijn); box-shadow: 0 1.5rem 2rem rgb(0 0 0 / .4);
  }
  .site-nav li:hover > .site-nav__sub, .site-nav li:focus-within > .site-nav__sub { display: block; }
  .site-nav .site-nav__sub a { padding: .6rem 1rem; border-bottom: 0; font: 400 1.05rem/1.3 var(--text); letter-spacing: 0; text-transform: none; }
  .site-nav .site-nav__sub a:hover, .site-nav .site-nav__sub a[aria-current] { background: var(--plint); }
}

/* ---------- 5. Footer ---------- */
.site-footer { background: var(--nacht); color: var(--creme-zacht); border-top: 4px solid var(--wijnrood); padding-block: 3rem 2.25rem; font-size: .95rem; }
.site-footer__inner { padding-inline: var(--pad-x); display: grid; gap: 2rem; }
.site-footer__name { margin: 0; font: italic 400 2.4rem/1 var(--display); color: var(--creme); }
.site-footer__name::after { content: "."; font-style: normal; color: var(--accent-licht); }
.site-footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__nav a { display: inline-block; padding-block: .45rem; color: var(--creme); text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent-licht); text-decoration: underline; }
.site-footer__copy { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--lijn); }
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- 6. Building blocks ---------- */
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* A heading with a rule under it: "Galerijen in ..." and the heads of the "more" lists. */
.label { display: block; margin: 0 0 clamp(1.25rem, 3vw, 2rem); padding-bottom: 1rem; border-bottom: 1px solid var(--lijn); font: 400 clamp(1.8rem, 4.5vw, 2.75rem)/1.1 var(--display); color: var(--heading); }
.label--spaced { margin-top: clamp(2.5rem, 6vw, 4rem); }
/* The big section titles of Home and Exposities, with the number as a small caps line above. */
.section__head > .label, .label.section__head { display: block; margin: 0; padding: 0; border: 0; font-size: clamp(2.4rem, 7vw, 4.75rem); font-weight: 350; line-height: 1.05; }
.section__head > .label { margin: 0; }
.label.section__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.label__num { display: block; margin-bottom: .6rem; font: 600 .8rem/1 var(--text); letter-spacing: .16em; color: var(--accent-licht); }
[data-theme="rood"] .label__num, [data-theme="creme"] .label__num { color: var(--accent-licht); }
.label__num::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; margin-left: .75rem; vertical-align: middle; background: currentColor; opacity: .6; }

.eyebrow { margin: 0 0 1rem; font: 600 .8rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--creme); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  font: 600 .85rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--accent-licht);
}
.link-arrow span { letter-spacing: 0; transition: translate .2s var(--ease); }
.link-arrow:hover { color: var(--wit); }
.link-arrow:hover span { translate: .3rem 0; }
.section:has(.about__text) .link-arrow { color: var(--wijnrood); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .7rem 1.5rem;
  border: 1px solid currentColor; border-radius: 999px; text-decoration: none;
  font: 600 .85rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.btn--light { color: var(--creme); }
.btn--light:hover { background: var(--creme); color: var(--wijnrood); }

.tag {
  display: inline-block; margin-left: .5rem; padding: .1rem .5rem; vertical-align: middle;
  border: 1px solid currentColor; border-radius: 999px; font: 600 .7rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; font-style: normal;
}

/* Texts from the text blocks and pages (rendered by the Renderer): paragraphs, links, figures */
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { text-decoration-thickness: 1px; }
.prose figure { margin: 0 0 1.5rem; }
.prose img { max-width: 100%; height: auto; }
.prose figcaption { margin-top: .5rem; font-size: .9em; font-style: italic; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }

/* ---------- 7. Breadcrumbs (work at any depth) ---------- */
.crumbs { container: crumbs / inline-size; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: flex; align-items: center; min-width: 0; font: 600 .8rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.crumbs li + li::before { content: "\203A"; padding-inline: .6rem; color: var(--accent-licht); font-size: 1.1rem; letter-spacing: 0; }
.crumbs a { display: inline-block; padding-block: .6rem; color: var(--creme); text-decoration: none; }
.crumbs a:hover { color: var(--wit); text-decoration: underline; }
.crumbs [aria-current] { color: var(--accent-licht); padding-block: .6rem; overflow-wrap: anywhere; }
.crumbs__more { display: none !important; }
.crumbs__more button { min-width: 2.75rem; min-height: 2.25rem; padding: 0 .5rem; border: 1px solid var(--lijn); border-radius: 999px; background: none; cursor: pointer; color: var(--creme); font-size: 1rem; }
.crumbs__more button:hover { border-color: var(--accent-licht); }
/* Narrow: keep the first and the last two steps; the middle ones sit behind a "..." button (theme.js). */
@container crumbs (max-width: 34rem) {
  .js .crumbs:not(.is-open) .crumbs__mid { display: none; }
  .js .crumbs:not(.is-open) .crumbs__more { display: flex !important; }
}

/* ---------- 8. Page head: the wine-red block at the top of every inner page ---------- */
.page-head { background: var(--wijnrood); padding-block: clamp(1.75rem, 5vw, 4rem) clamp(2.25rem, 6vw, 4.5rem); }
.page-head__lead { color: var(--creme); }
.page-head__intro { margin-top: 1.5rem; max-width: 40rem; font-size: 1.1em; color: var(--creme); }
.page-head__intro > :last-child { margin-bottom: 0; }
.page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgb(239 238 204 / .3); }
.page-head__meta { margin: 0; font: 600 .8rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--creme); }
.page-head__meta::before { content: "\25C6"; margin-right: .6rem; font-size: .7em; vertical-align: .15em; color: var(--accent-licht); }

/* ---------- 9. Hero (Home) ---------- */
.hero { background: var(--wijnrood); }
.hero__panel { padding: clamp(2rem, 6vw, 4.5rem) var(--pad-x) clamp(1.5rem, 4vw, 3rem); }
.hero__name { margin: 0 0 1rem -.04em; font: 350 clamp(4.2rem, 19vw, 15rem)/.82 var(--display); letter-spacing: -.035em; color: var(--creme); }
.hero__name em { display: block; padding-left: .55em; font-weight: 300; color: var(--wit); }
.hero__sub { max-width: 28ch; margin: 0 0 1.5rem; font-size: 1.15em; font-style: italic; color: var(--creme); }
@media (min-width: 56rem) {
  .hero__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
  .hero__panel .eyebrow { grid-column: 1 / -1; }
  .hero__name { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; font-size: clamp(6rem, 11.5vw, 12rem); white-space: nowrap; }
  .hero__name em { display: inline; padding-left: .12em; }
  .hero__sub { grid-column: 2; grid-row: 2; align-self: end; margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--lijn); }
  .hero__panel .btn { grid-column: 2; grid-row: 3; justify-self: start; align-self: start; margin: 1.25rem 0 0 1.25rem; }
}

.hero__art { background: var(--nacht); }
.hero__figure { margin: 0; }
.hero__figure a { display: block; }
.hero__figure img { width: 100%; height: auto; max-height: 82svh; object-fit: contain; }
.hero__figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .9rem var(--pad-x); font-size: .95rem; color: var(--creme-zacht); }
.hero__figure .work__title { font-size: 1.15rem; color: var(--creme); }

/* ---------- 10. Intro ---------- */
.intro__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.intro__text { max-width: 40rem; color: var(--creme); }
/* The first paragraph is the lead, in large type. */
.intro__text > p:first-of-type { font: 300 clamp(1.75rem, 4.4vw, 3rem)/1.15 var(--display); color: var(--creme); margin-bottom: .75em; }
.intro__text > p:first-of-type em { color: var(--accent-licht); }
@media (min-width: 60rem) {
  .intro__grid { grid-template-columns: 1fr 2.6fr; }
  .intro__text { max-width: 46rem; }
}

/* ---------- 11. A work: a tile on the wall, never cropped ---------- */
.work { margin: 0; min-width: 0; }
.work__link { display: block; text-decoration: none; color: var(--creme); }
.work__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 4 / 5; padding: 9%;
  background: var(--plint);
}
/* A warm spotlight that switches on when the work is hovered or focused. */
.work__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(70% 60% at 50% 30%, rgb(224 162 102 / .28), transparent 70%);
}
.work__frame img {
  width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain;
  box-shadow: 0 .6rem 1.4rem rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06);
  transition: transform .45s var(--ease);
}
.work__link:hover .work__frame::before, .work__link:focus-visible .work__frame::before { opacity: 1; }
.work__link:hover .work__frame img, .work__link:focus-visible .work__frame img { transform: scale(1.035); }
.work__link:focus-visible { outline-offset: 4px; }
.work__caption { display: block; padding-top: .6rem; line-height: 1.25; }
.work__title { display: block; font: italic 400 1.1rem/1.25 var(--display); color: var(--creme); }
.work__meta { display: block; margin-top: .15rem; font-size: .85rem; color: var(--creme-zacht); }
.work__link:hover + .work__caption .work__title { color: var(--wit); }

/* ---------- 12. Featured on Home: a mosaic, the first work larger ---------- */
.section.feat { background: var(--nacht); }
.feat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(.75rem, 2.2vw, 2rem); align-items: start; }
.feat--a { grid-column: 1 / -1; }
.feat--a .work__frame { aspect-ratio: 5 / 4; padding: 6%; }
.feat__from { margin: .15rem 0 0; font-size: .85rem; color: var(--creme-zacht); }
.feat__from a { color: var(--accent-licht); }
@media (min-width: 48rem) {
  /* Three columns: the first work spans two columns and as many rows as the others need (1 + 5 works fit exactly). */
  .feat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
  .feat--a { grid-column: span 2; grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; }
  .feat--a .work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .feat--a .work__link { flex: 1; min-height: 0; display: flex; }
  .feat--a .work__frame { flex: 1; aspect-ratio: auto; min-height: 20rem; padding: 0; }
  .feat--a .work__frame img { position: absolute; inset: 6%; margin: auto; max-width: 88%; max-height: 88%; }
}

/* ---------- 13. Agenda and exhibitions ---------- */
.agenda__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lijn); }
.agenda__item { display: grid; gap: .35rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--lijn); }
.agenda__date { margin: 0; font: 300 clamp(2rem, 5.5vw, 3.4rem)/1 var(--display); color: var(--wit); }
.agenda__date--text { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; }
.agenda__date span { display: block; margin-top: .35rem; font: 600 .8rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-licht); }
.agenda__body h3 { margin-bottom: .3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); font-style: italic; }
.agenda__body p { margin: 0 0 .75rem; max-width: 40rem; color: var(--creme); }
.agenda__body p.agenda__where { color: var(--creme-zacht); }
.agenda__year { margin: clamp(2rem, 5vw, 3rem) 0 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; }
.agenda__year:first-of-type { margin-top: 0; }
.agenda__item--past { padding-block: 1.1rem; }
.agenda__item--past .agenda__date { color: var(--creme-zacht); font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.1; }
.agenda__item--past .agenda__body h3 { font-size: 1.3rem; }
@media (min-width: 48rem) {
  .agenda__item { grid-template-columns: minmax(13rem, 1fr) 2fr; align-items: baseline; padding-block: 2rem; }
  .agenda__item--past { padding-block: 1.25rem; }
}

/* ---------- 14. Cards: the galleries (Werk, subgalleries); markup in themes/c/templates/partials/gallery-list.php ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 3vw, 2.5rem); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Werk: the editorial 2 + 3 layout */
@media (min-width: 64rem) {
  .cards--feature { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards--feature > li { grid-column: span 2; }
  .cards--feature > li:nth-child(-n+2) { grid-column: span 3; }
  .cards--feature > li:nth-child(-n+2) .card__cover { aspect-ratio: 16 / 10; }
}
.card { display: block; color: var(--creme); text-decoration: none; }
.card__cover { position: relative; margin: 0 0 1rem; aspect-ratio: 4 / 3; background: var(--plint); }
.card__cover img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  box-shadow: 0 1rem 2rem rgb(0 0 0 / .35); filter: saturate(.92); transition: transform .45s var(--ease), filter .45s var(--ease);
}
.card:hover .card__cover img, .card:focus-visible .card__cover img { transform: translateY(-.35rem); filter: none; }
/* A card with subgalleries: a stack of sheets behind the cover */
.card--stack { padding-top: 1.1rem; padding-right: 1.1rem; }
.card--stack .card__cover::before, .card--stack .card__cover::after { content: ""; position: absolute; inset: 0; transition: transform .45s var(--ease); }
.card--stack .card__cover::before { z-index: 1; background: var(--accent); transform: translate(.55rem, -.55rem); }
.card--stack .card__cover::after { z-index: 0; background: var(--wijnrood); transform: translate(1.1rem, -1.1rem); }
.card--stack:hover .card__cover::before, .card--stack:focus-visible .card__cover::before { transform: translate(.8rem, -.8rem); }
.card--stack:hover .card__cover::after, .card--stack:focus-visible .card__cover::after { transform: translate(1.6rem, -1.6rem); }
.card__body { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
.card__num { font: 400 1rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--accent-licht); }
.card__name { font: 400 clamp(1.9rem, 4.6vw, 2.75rem)/1 var(--display); text-wrap: balance; transition: color .2s; }
.card__meta { grid-column: 2; margin-top: .45rem; font-size: .95rem; color: var(--creme-zacht); }
.card__meta strong { font-weight: 600; color: var(--accent-licht); }
.card:hover .card__name { font-style: italic; color: var(--wit); }
@media (min-width: 64rem) {
  .cards .card__name { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
  .cards--feature > li:nth-child(-n+2) .card__name { font-size: clamp(2.2rem, 3.4vw, 3.25rem); }
}
.cards--sub .card__name { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }

/* ---------- 15. Gallery: the works on the wall ---------- */
.section:has([data-lightbox-group]) { background: var(--nacht); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2.2vw, 2rem); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 100rem) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid .work__caption { padding-top: .6rem; }
.grid .work__title { font-size: 1.1rem; }

/* View "Groot" (the switch in the page head): one work per row, large, with its caption beside it. */
.grid[data-view="groot"] { grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 7vw, 6rem); }
.grid[data-view="groot"] .work__frame { aspect-ratio: auto; padding: clamp(1rem, 3vw, 2.5rem); }
.grid[data-view="groot"] .work__frame img { max-height: 78svh; }
.grid[data-view="groot"] .work__caption { text-align: center; padding-top: 1rem; }
.grid[data-view="groot"] .work__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.view-switch { display: inline-flex; border: 1px solid rgb(239 238 204 / .45); border-radius: 999px; padding: 3px; }
.view-switch button { min-height: 2.75rem; padding: .25rem 1.25rem; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 .8rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--creme); }
.view-switch button[aria-pressed="true"] { background: var(--creme); color: var(--diepbruin); }
html:not(.js) .view-switch { display: none; }

/* The neighbouring galleries */
.pager { display: grid; gap: 1rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.pager__link { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--lijn); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.pager__link--next { text-align: right; }
.pager__dir { font: 600 .8rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-licht); }
.pager__name { font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--display); color: var(--creme); }
.pager__link:hover { border-color: var(--accent-licht); }
.pager__link:hover .pager__name { font-style: italic; color: var(--wit); }
@media (min-width: 48rem) { .pager:not(.pager--single) { grid-template-columns: 1fr 1fr; } }

/* ---------- 16. About, contact, pages ---------- */
.about__text { max-width: 40rem; }
.about__text > p:first-of-type::first-letter { float: left; padding: .08em .1em 0 0; font: 400 4.4em/.8 var(--display); color: var(--wijnrood); }
.section:has(.about__text) h2 { color: var(--kop); }
.contact { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.contact .lead { max-width: 28ch; }
.contact__mail { margin: 1.5rem 0 0; font: italic 300 clamp(1.7rem, 6.5vw, 4.5rem)/1.1 var(--display); overflow-wrap: anywhere; }
.contact__mail p { margin: 0; }
.contact a, .contact .mail { color: var(--wit); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.contact a:hover { color: var(--accent-licht); }
.contact .js-mail { font: 400 1.1875rem/1.5 var(--text); font-style: normal; color: var(--creme); }

.page__video, .page__images { margin-top: 2rem; }
.page__images { display: grid; gap: 2rem; max-width: 40rem; }
.page__images figure { margin: 0; }
.page__images figcaption { margin-top: .5rem; font-size: .9em; font-style: italic; color: var(--creme-zacht); }
.page__images img { max-width: 100%; height: auto; box-shadow: 0 1rem 2rem rgb(0 0 0 / .35); }

/* ---------- 17. YouTube facade (nothing is loaded from YouTube before the click) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; max-width: 48rem; background: var(--nacht); }
.yt__play {
  position: absolute; inset: 0; width: 100%; padding: 1rem; border: 0; cursor: pointer; background: var(--nacht); color: var(--creme);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; text-align: center;
}
.yt__poster { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--wijnrood); transition: background-color .2s; }
.yt__poster::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border: solid transparent; border-width: .9rem 0 .9rem 1.5rem; border-left-color: var(--creme); }
.yt__play:hover .yt__poster, .yt__play:focus-visible .yt__poster { background: var(--accent); }
.yt__label { font: 400 clamp(1.3rem, 3vw, 1.9rem)/1.15 var(--display); font-style: italic; color: var(--wit); }
.yt__note { max-width: 32rem; font-size: .9rem; color: var(--creme-zacht); }
.yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 18. Lightbox ---------- */
html:has(dialog[open]) { overflow: hidden; }
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--nacht); color: var(--creme); overflow: hidden; overscroll-behavior: contain;
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb::backdrop { background: rgb(20 12 8 / .9); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .5rem .5rem 1rem; }
.lb__count { margin: 0; font: 600 .8rem/1 var(--text); letter-spacing: .16em; color: var(--creme-zacht); font-variant-numeric: tabular-nums; }
.lb__i { font: 400 1.4rem/1 var(--display); letter-spacing: 0; color: var(--wit); }
.lb__btn {
  display: inline-grid; place-items: center; grid-auto-flow: column; gap: .5rem; min-width: 3rem; min-height: 3rem; padding: .5rem;
  background: transparent; color: var(--creme); border: 1px solid var(--lijn); border-radius: 999px; cursor: pointer;
  font: 600 .85rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s;
}
.lb__btn [aria-hidden] { font-size: 1.5rem; line-height: 1; letter-spacing: 0; }
.lb__btn:hover { background: var(--creme); color: var(--diepbruin); border-color: var(--creme); }
.lb__btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--creme); border-color: var(--lijn); }
.lb__close { padding-inline: 1rem; border-color: transparent; }
.lb__btn-text { display: none; }
.lb__close .lb__btn-text { display: inline; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; --lb-side: .75rem; touch-action: pan-y pinch-zoom; user-select: none; }
.lb__img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; object-fit: contain;
  max-width: calc(100% - 2 * var(--lb-side)); max-height: 100%;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / .6); transition: translate .25s var(--ease), opacity .25s var(--ease);
}
.lb__img.is-dragging { transition: none; }
.lb.is-loading .lb__img { opacity: .4; }
.lb__spinner { position: absolute; inset: 0; margin: auto; width: 2.5rem; height: 2.5rem; border: 2px solid var(--lijn); border-top-color: var(--accent-licht); border-radius: 50%; opacity: 0; animation: spin 1s linear infinite; pointer-events: none; transition: opacity .2s .3s; }
.lb.is-loading .lb__spinner { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }
.lb__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .75rem .5rem max(.75rem, env(safe-area-inset-bottom)); }
.lb__caption { text-align: center; min-width: 0; }
.lb__title { margin: 0; font: italic 400 clamp(1.3rem, 3vw, 1.9rem)/1.15 var(--display); color: var(--wit); }
.lb__meta { margin: .25rem 0 0; font-size: .95rem; color: var(--accent-licht); }
@media (min-width: 48rem) {
  .lb__stage { --lb-side: 6.5rem; }
  .lb__foot { grid-template-columns: minmax(0, 1fr); padding-bottom: 1.5rem; }
  .lb__foot .lb__btn { position: absolute; top: 50%; translate: 0 -50%; width: 3.75rem; height: 3.75rem; }
  .lb__prev { left: 1.25rem; }
  .lb__next { right: 1.25rem; }
}

/* ---------- 19. Motion, high contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .lb__spinner { animation: none; }
  .work__link:hover .work__frame img, .work__link:focus-visible .work__frame img { transform: none; }
}
@media (forced-colors: active) {
  .menu-toggle, .lb__btn, .view-switch, .pager__link { border: 1px solid ButtonText; }
}
