/* Tentoonstellingen (single-tentoonstelling.php, archive-tentoonstelling.php, template-parts/expo-walk.php) and the
   homepage block "Nu te zien" (front-page.php). Loaded after theme.css. One work per screen on wide screens, one under the other on
   phones; no movement on scroll. Colour comes only from the paintings. */

.expo { --expo-cap: 112px; }   /* room reserved under each work for its label */

/* ── Opening: title and introduction next to the first work ── */
.expo__open {
  display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr); gap: 32px 64px; align-items: center;
  min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); padding-block: 40px 56px;
}
.expo__intro { display: flex; flex-direction: column; gap: 18px; max-width: 40ch; }
.expo__title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
}
.expo__lead { font-size: var(--t-lead, 18px); line-height: 1.55; color: var(--soft); max-width: 40ch; }
.expo__facts { font-size: var(--t-small, 14px); color: var(--muted); }
.expo__facts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.expo__facts a:hover { text-decoration-thickness: 2px; }

/* ── One stop = one work (or one detail), centred on its own screen ── */
.expo__stop {
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 48px var(--gutter);
}
.expo__open .expo__stop { min-height: 0; padding: 0; }

.expo__work {
  display: grid; justify-items: start; width: fit-content; max-width: 100%; margin-inline: auto; gap: 14px;
}
.expo__frame { display: block; line-height: 0; }
.expo__img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - var(--expo-cap) - 96px); max-height: calc(100svh - var(--expo-cap) - 96px);
  box-shadow: var(--shadow-alone, 0 1px 2px rgba(20,20,20,.08), 0 16px 36px -24px rgba(20,20,20,.3));
  background: var(--plinth);
}
.expo__open .expo__img {
  max-height: calc(100vh - 72px - var(--expo-cap) - 96px); max-height: calc(100svh - 72px - var(--expo-cap) - 96px);
}
/* The label never makes the figure wider than the painting. */
.expo__label { width: 0; min-width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.expo__name { font-family: var(--f-text); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.005em; }
.expo__name a { color: var(--ink); }
.expo__year { font-family: var(--f-mono); font-size: var(--t-meta, 12.5px); color: var(--muted); }
.expo__text { flex-basis: 100%; max-width: 60ch; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--soft); }

/* ── Detail: the work's own photo, enlarged and cropped around a point (--x, --y in 0..1; --r = height / width) ── */
.expo__stop--detail { min-height: 0; padding-block: 8vh; }
.expo__detail { width: min(100%, 1040px); margin-inline: auto; display: grid; gap: 12px; }
.expo__crop {
  --z: 2.4;                  /* the painting is shown --z times as wide as the frame */
  --a: .5625;                /* frame height / width (16:9) */
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--plinth);
}
.expo__crop img {
  --xc: clamp(calc(.5 / var(--z)), var(--x, .5), calc(1 - .5 / var(--z)));
  --yc: clamp(calc(.5 * var(--a) / (var(--z) * var(--r, 1.4))), var(--y, .5), calc(1 - .5 * var(--a) / (var(--z) * var(--r, 1.4))));
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--z) * 100%); max-width: none; height: auto;
  transform: translate(calc(var(--xc) * -100%), calc(var(--yc) * -100%));
}
.expo__detail-cap { font-size: var(--t-small, 14px); color: var(--muted); }
.expo__detail-cap cite { font-style: normal; color: var(--ink); }

/* ── End: the way on ── */
.expo__end {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding-block: 96px 112px; border-top: 1px solid var(--rule); margin-top: 24px;
}
.expo__end-title { font-family: var(--f-text); font-weight: 600; font-size: var(--t-h2, 24px); line-height: 1.2; }
.expo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.expo__artist { max-width: 60ch; color: var(--soft); }
.expo__artist .more-link { margin-left: 4px; white-space: nowrap; }

/* ── Phones and small tablets: one under the other, no full-screen stops ── */
@media (max-width: 900px) {
  .expo__open { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 28px 8px; gap: 28px; }
  .expo__intro { max-width: none; gap: 12px; }
  .expo__open .expo__img, .expo__img { max-height: 82vh; max-height: 82svh; }
  .expo__stop { min-height: 0; padding: 40px var(--gutter); }
  .expo__open .expo__stop { padding: 0 0 24px; }
  .expo__stop--detail { padding-block: 32px; }
  .expo__crop { --z: 2.6; --a: 1.25; aspect-ratio: 4 / 5; }
  .expo__end { padding-block: 64px 80px; }
  .expo__actions { flex-direction: column; align-items: stretch; width: 100%; }
}
/* Low, wide windows (laptop with browser bars): a bit less room for the label. */
@media (min-width: 901px) and (max-height: 700px) { .expo { --expo-cap: 84px; } .expo__stop { padding-block: 24px; } }

/* ── Archive: Tentoonstellingen ── */
.expo-archive { padding-block: 56px 96px; }
.expo-archive > .expo__lead { margin-top: 14px; }
.expo-list { margin-top: 40px; border-top: 1px solid var(--rule); }
.expo-list__item {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px 32px; align-items: center;
  padding-block: 28px; border-bottom: 1px solid var(--rule);
}
.expo-list__img { display: flex; justify-content: center; line-height: 0; }
.expo-list__img img { max-height: 160px; width: auto; box-shadow: var(--shadow-grid, 0 1px 2px rgba(20,20,20,.1)); }
.expo-list__text { display: flex; flex-direction: column; gap: 6px; max-width: 64ch; }
.expo-list__title { font-family: var(--f-text); font-weight: 600; font-size: 20px; line-height: 1.3; }
.expo-list__title a { color: var(--ink); }
.expo-list__meta { font-size: var(--t-small, 14px); color: var(--muted); }
.expo-list__intro { color: var(--soft); }
@media (max-width: 600px) { .expo-list__item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; } .expo-list__img img { max-height: 110px; } }

/* ── Homepage: "Nu te zien" — the current exhibition as one labelled block ── */
.nu { background: var(--plinth); }
.nu__inner { padding-block: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: 36px; }
.nu__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.nu__text { display: flex; flex-direction: column; gap: 12px; max-width: 56ch; }
.nu__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.nu__lead { font-size: var(--t-lead, 18px); line-height: 1.55; color: var(--soft); }
.nu__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nu + .section { border-top: 0; }

/* ── Exhibition page (16 nov 2026): fixed form. Head, then every work as the same row: work left, text right. ── */
.expo__kop { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; max-width: none; }
.expo__kop .expo__lead { max-width: 60ch; }
.expo__kop .expo__actions { margin-top: 10px; }
.expo__lijst { display: flex; flex-direction: column; }
.expo__rij {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--rule);
}
.expo__beeld { display: flex; justify-content: center; line-height: 0; background: var(--plinth); padding: 14px; }
.expo__beeld img { width: auto; height: auto; max-width: 100%; max-height: min(74vh, 720px); }
.expo__bij { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 46ch; }
.expo__nr { font-family: var(--f-mono); font-size: var(--t-meta, 12.5px); color: var(--muted); }
.expo__rij .expo__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.expo__rij .expo__year { font-family: var(--f-text); font-size: 16px; color: var(--muted); }
.expo__rij .expo__text { flex-basis: auto; margin: 8px 0 6px; font-size: 17px; line-height: 1.6; color: var(--soft); }
@media (max-width: 899px) { .expo__rij { grid-template-columns: minmax(0, 1fr); gap: 20px; } .expo__beeld { padding: 0; background: none; } }
