/* Global styles for every page: design tokens, navigation and megamenu,
   shared page rules (base, nav, footer), eyebrows and the motion layer.
   Loaded before each page's inline <style>, so a page can still override.
   kaders.css stays separate: it only belongs to the geperste-bloemen pages. */

/* ============ Tokens ============ */
:root {
  --cream: #f0ead6;
  --paper: #f0ead6;
  --ink: #1E2E22;
  --text: #000000;
  --burgundy: #7E2F36;
  --rose: #B18B50;
  --sage: #5e6b48;
  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid type-scale voor koppen: schaalt continu tussen 360px en 1440px viewport
     (berekend met fluid_clamp.py, geen breakpoints nodig). min -> max in px. */
  --fs-hero: clamp(2.75rem, 8.1481vw + 0.9167rem, 8.25rem);   /* 44 -> 132, homepage hero */
  --fs-h1:   clamp(2.75rem, 6.2963vw + 1.3333rem, 7rem);      /* 44 -> 112, paginatitel */
  --fs-h1-s: clamp(2.625rem, 5vw + 1.5rem, 6rem);             /* 42 -> 96, paginatitel compact */
  --fs-xl:   clamp(2.375rem, 4.6296vw + 1.3333rem, 5.5rem);   /* 38 -> 88, manifesto, uitnodiging */
  --fs-l:    clamp(2.25rem, 3.3333vw + 1.5rem, 4.5rem);       /* 36 -> 72, slotkoppen */
  --fs-l-s:  clamp(2.125rem, 2.7778vw + 1.5rem, 4rem);        /* 34 -> 64 */
  --fs-h2:   clamp(2.125rem, 2.037vw + 1.6667rem, 3.5rem);    /* 34 -> 56, sectiekop */
  --fs-h3:   clamp(1.875rem, 1.6667vw + 1.5rem, 3rem);        /* 30 -> 48 */
  --fs-h4:   clamp(1.875rem, 1.2963vw + 1.5833rem, 2.75rem);  /* 30 -> 44 */

  /* Fluid spacing */
  --gutter:      clamp(1.5rem, 2.963vw + 0.8333rem, 3.5rem);  /* 24 -> 56, zijmarge */
  --section-y-s: clamp(3.5rem, 3.7037vw + 2.6667rem, 6rem);   /* 56 -> 96 */
  --section-y:   clamp(4rem, 4.4444vw + 3rem, 7rem);          /* 64 -> 112, verticale sectiepadding */
  --section-y-l: clamp(4.5rem, 4.4444vw + 3.5rem, 7.5rem);    /* 72 -> 120 */
  --photo-h:     clamp(23.75rem, 30vw, 33.75rem);            /* 380 -> 540, staande foto naast tekst */
  --content-max: 160rem;                                      /* 2560px */
  --grid-gap:    clamp(1rem, 1.4815vw + 0.6667rem, 2rem);     /* 16 -> 32, kolomgoot 12-grid */
}

/* ============ Navigation + megamenu (was megamenu.css) ============ */
/* Megamenu — shared across all pages
   Triggered on hover/focus of <a class="mega-trigger" data-megamenu> in nav.
   Panel is injected into the DOM by megamenu.js and lives at body level. */

.mega-trigger { position: relative; }
.mega-trigger::after {
  content: '⌄';
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0.6;
  display: inline-block;
  transform: translateY(-2px);
}

/* ── Over dropdown (injected by megamenu.js) ── */
.nav-hidden-desktop { display: none !important; }
.over-wrap { position: relative; display: inline-block; }
.over-wrap .over-trigger { display: inline-flex; align-items: baseline; }
.over-caret {
  margin-left: 4px;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0.6;
  display: inline-block;
  transform: translateY(-2px);
}
.over-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: #1E2E22;
  border: 1px solid rgba(240,234,214,0.12);
  border-top: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(.2,.7,.3,1), visibility 0.2s;
  pointer-events: none;
  z-index: 48;
  margin-top: 8px;
}
/* Invisible bridge so the mouse can travel through the visual gap
   between trigger and panel without the parent losing :hover. */
.over-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
  pointer-events: auto;
}
.over-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.over-dropdown a {
  display: block;
  padding: 14px 22px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #f0ead6;
  text-decoration: none;
  border-bottom: 1px solid rgba(240,234,214,0.08);
  transition: padding-left 0.2s ease, color 0.2s ease;
  text-transform: none;
}
/* De nav-stijl (klein, kapitalen-spatiëring) mag hier niet doorlekken: serif op leesbare maat */
header.nav nav .over-dropdown a { font-size: 19px; letter-spacing: -0.005em; }
.over-dropdown a:last-child { border-bottom: 0; }
.over-dropdown a:hover { padding-left: 30px; color: #B18B50; }

/* On mobile drawer, the dropdown is replaced by 2 flat items, so the hidden Studio rule should NOT apply  */
@media (max-width: 1200px) {
  .nav-hidden-desktop { display: none !important; }
  /* The Over dropdown is desktop-only; in the drawer we inject 2 flat items */
  .over-wrap .over-dropdown { display: none !important; }
  .over-caret { display: none; }
}

/* ── Cart link in nav (injected by cart.js) ── */
/* Desktop: alleen het mandje-icoon, aantal als klein vierkant rechtsboven */
header.nav nav .cart-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
header.nav nav .cart-link .cart-icon { display: block; transition: transform 0.25s cubic-bezier(.2,.7,.3,1); }
header.nav nav .cart-link:hover .cart-icon { transform: translateY(-1px); }
header.nav nav .cart-link .cart-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
header.nav nav .cart-link::after { display: none !important; }
header.nav nav .cart-link .cart-count {
  position: absolute; top: -7px; right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #B18B50;
  color: #000000;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
header.nav nav .cart-link .cart-count[hidden] { display: none; }
.mm-mobile-nav .cart-link { display: flex !important; align-items: center; gap: 10px; }
.mm-mobile-nav .cart-link .cart-icon { width: 22px; height: 22px; flex: none; }
.mm-mobile-nav .cart-link .cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  background: #B18B50; color: #000000;
  font-family: ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0; text-transform: none; line-height: 1;
}
.mm-mobile-nav .cart-link .cart-count[hidden] { display: none; }

/* ── Brand wordmark "Bloom 64" (typeset, vervangt het oude scriptlogo) ──
   Links in de header. !important: de inline <style> per pagina laadt later
   en zet .mark gecentreerd, uppercase en ruim gespatieerd. */
/* Logo (afbeelding, crème #f0ead6, transparant; bron: logo nieuwe versie.svg) */
header.nav .mark img { display: block; height: 38px; width: auto; max-width: none; aspect-ratio: 373 / 120; }
/* Logo nooit laten samenknijpen door de menu-items ernaast */
header.nav .mark { flex-shrink: 0; min-width: max-content; }
/* Footer logo: width-driven with height:auto, so a narrow column scales it down
   in proportion (1202x401) instead of squashing it. */
footer .f-logo { display: block; width: 216px; height: auto; max-width: 100%; aspect-ratio: 1202 / 401; object-fit: contain; }
@media (max-width: 1200px) { header.nav .mark img { height: 32px; } }
@media (max-width: 540px) { header.nav .mark img { height: 26px; } footer .f-logo { width: 192px; } }

header.nav .mark {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-align: left !important;
  white-space: nowrap;
}

/* ── Desktop nav: wordmark links, nav rechts op één lijn ── */
@media (min-width: 1201px) {
  header.nav { grid-template-columns: auto 1fr !important; gap: 40px !important; padding-top: 18px !important; padding-bottom: 18px !important; }
  /* Ruimte tussen menu-items groeit mee met de schermbreedte: ~31px op 1210, ~37px op 1440, max 48px. */
  header.nav nav { gap: clamp(1.75rem, 2.6vw, 3rem); flex-wrap: nowrap; }
  /* Menutekst schaalt mee: 11px op 1210, ~11,5px op 1440, max 12px. */
  header.nav nav a { white-space: nowrap; letter-spacing: 0.14em; font-size: clamp(0.6875rem, 0.8vw, 0.75rem); }
}
/* Tight desktop (1201–1400px): iets smallere marges en spatiëring */
@media (min-width: 1201px) and (max-width: 1400px) {
  header.nav nav a { letter-spacing: 0.12em; }
}

.megamenu {
  position: fixed;
  top: 76px; /* nav height; overridden in JS for precise alignment */
  left: 0; right: 0;
  background: #1E2E22;
  color: #f0ead6;
  border-top: 1px solid rgba(240,234,214,0.12);
  border-bottom: 1px solid rgba(240,234,214,0.12);
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.megamenu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.megamenu-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 56px var(--gutter) 64px;
}

.mm-col h4 {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.55;
  margin: 0 0 28px; font-weight: 500;
  font-family: Inter, system-ui, sans-serif;
}

/* Left column: formats */
.mm-formats { display: flex; flex-direction: column; }
.mm-formats .mm-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(240,234,214,0.1);
  transition: padding-left 0.2s ease;
}
.mm-formats .mm-item:last-child { border-bottom: 0; }
.mm-formats .mm-item:hover { padding-left: 8px; }
.mm-formats .mm-item:hover .mm-title { color: #B18B50; }
.mm-formats .mm-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.2s ease;
}
.mm-formats .mm-kicker {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.7;
  margin-top: 6px;
  color: #B18B50;
}

/* Right column: upcoming */
.mm-upcoming { display: flex; flex-direction: column; }
.mm-list { flex: 1; }
.mm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240,234,214,0.1);
  transition: padding-left 0.2s ease;
}
.mm-row:last-child { border-bottom: 0; }
.mm-row:hover { padding-left: 8px; }
.mm-row:hover .mm-row-title { color: #B18B50; }
.mm-row-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.mm-row-sub {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  opacity: 0.65;
  margin-top: 2px;
  color: #B18B50;
}
.mm-row-date {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  opacity: 0.65;
  letter-spacing: 0.08em;
}

.mm-cta {
  display: inline-block;
  margin-top: 28px;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B18B50;
  border-bottom: 1px solid #B18B50;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mm-cta:hover { color: #f0ead6; border-bottom-color: #f0ead6; }

.mm-empty, .mm-loading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  opacity: 0.65;
  font-size: 16px;
  padding: 12px 0;
}

/* Desktop: menu en dropdown een tint lichter groen dan nav en hero, pagina erachter
   verdonkerd, tekst zonder doorzichtigheid. Mobiel blijft het donkere schuifpaneel. */
@media (min-width: 1201px) {
  .megamenu, .over-dropdown { background: #2A3D2F; border-color: rgba(240,234,214,0.16); }
  .megamenu.open { box-shadow: 0 0 0 100vmax rgba(14,22,16,0.55); }
  .over-dropdown { box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5); }
  .mm-col h4 { opacity: 1; color: rgba(240,234,214,0.8); }
  .mm-formats .mm-item, .mm-row { border-bottom-color: rgba(240,234,214,0.14); }
  .mm-formats .mm-kicker, .mm-row-sub { opacity: 1; color: #C9A56E; }
  .mm-row-date { opacity: 1; color: rgba(240,234,214,0.85); }
  .mm-empty, .mm-loading { opacity: 1; color: rgba(240,234,214,0.85); }
  .mm-formats .mm-item:hover .mm-title, .mm-row:hover .mm-row-title { color: #C9A56E; }
  .mm-cta { color: #C9A56E; border-bottom-color: #C9A56E; }
  header.nav nav .over-dropdown a { border-bottom-color: rgba(240,234,214,0.12); }
  header.nav nav .over-dropdown a:hover { color: #C9A56E; }
}

/* ── Hamburger button (mobile only) ── */
.mm-hamburger {
  display: none;
  position: relative;
  width: 32px; height: 22px;
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.mm-hamburger span {
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: #f0ead6;
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), top 0.32s cubic-bezier(.2,.7,.3,1), opacity 0.18s ease;
}
.mm-hamburger span:nth-child(1) { top: 3px; }
.mm-hamburger span:nth-child(2) { top: 10px; }
.mm-hamburger span:nth-child(3) { top: 17px; }
.mm-hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.mm-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mm-hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile-only block injected at top of megamenu panel */
.mm-mobile-nav { display: none; }

/* ── Mobile: hamburger + drawer (breakpoint matches per-page nav stacking) ── */
@media (max-width: 1200px) {
  /* Override per-page nav: 2-col [logo] [hamburger], no stacking */
  header.nav {
    grid-template-columns: 1fr auto !important;
    gap: 14px !important;
    text-align: left !important;
  }
  header.nav nav { display: none; }
  .mm-hamburger { display: block; }
  header.nav .mark {
    display: block !important;
    grid-column: 1;
    font-size: 24px !important;
  }

  /* Drawer: subtle slide-down from top of viewport */
  .megamenu {
    top: 0; bottom: auto;
    max-height: 100vh; height: auto;
    overflow-y: auto;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(.2,.7,.3,1), visibility 0.28s;
    padding-top: 64px; /* room for sticky header above */
  }
  .megamenu.open { transform: translateY(0); }

  .megamenu-inner { grid-template-columns: 1fr; gap: 32px; }
  /* Mobile drawer shows only the Navigeer list; hide the Formats + Komende workshops columns */
  .megamenu-inner .mm-formats,
  .megamenu-inner .mm-upcoming { display: none !important; }
  .mm-formats .mm-title { font-size: 22px; }
  .mm-row-title { font-size: 18px; }

  /* Mobile nav list at top of drawer (cloned from header) */
  .mm-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(240,234,214,0.16);
  }
  .mm-mobile-nav h4 {
    font-size: 10px; letter-spacing: 0.28em;
    text-transform: uppercase; opacity: 0.55;
    margin: 0 0 16px; font-weight: 500;
    font-family: Inter, system-ui, sans-serif;
  }
  .mm-mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(240,234,214,0.08);
    color: #f0ead6;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.005em;
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
  }
  .mm-mobile-nav a:last-child { border-bottom: 0; }
  .mm-mobile-nav a:hover, .mm-mobile-nav a.current { color: #B18B50; padding-left: 6px; }

  /* Contact CTA button pinned to the bottom of the drawer nav */
  .mm-mobile-nav a.mm-mobile-cta {
    margin-top: 28px;
    padding: 18px 24px;
    background: #B18B50;
    color: #000000;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 0;
    border-radius: 2px;
    transition: background 0.2s ease;
  }
  .mm-mobile-nav a.mm-mobile-cta:hover,
  .mm-mobile-nav a.mm-mobile-cta.current {
    background: #f0ead6;
    color: #000000;
    padding-left: 24px;
  }
}

/* Tiny screens — tighten the drawer + logo line */
@media (max-width: 540px) {
  .mm-formats .mm-title { font-size: 20px; }
  .mm-row-title { font-size: 17px; }
}

/* ── Audit fixes (2026-07-28) ─────────────────────────────────── */
/* 11. Rose italics fail contrast on light paper (2.48:1). Darker rose on light,
   original rose restored on dark sections. !important needed: per-page inline
   <style> loads after this file and would win otherwise. */
/* Accent in koppen: ossenbloed op licht, goud op donker (#1E2E22) */
.em { color: #7E2F36 !important; }
.hero .em, .offers .em, .page-title .em, .svc.dark .em, .closing .em, .lesson .em,
.stats .em, .creds .em, .megamenu .em, footer .em, header.nav .em { color: #B18B50 !important; }

/* 12. Skip-link + visible keyboard focus */
.skip-link { position: absolute; left: -9999px; z-index: 10001; background: #1E2E22;
  color: #f0ead6; padding: 12px 20px; font: 500 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; }
.skip-link:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #B18B50 !important; outline-offset: 3px !important;
}

/* ── Uitlijning: alle secties op dezelfde fluid zijmarge (24 -> 56px), geen breakpoints.
   !important: de inline <style> per pagina laadt later. */
@media (max-width: 1000px) {
  body > section, footer > section, .crumb, .pp-crumb, .cart-wrap, .empty {
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
  }
}


/* ============ Crossroads (was crossroads.css) ============ */
/* Crossroads -- "Een ander traject?" panel
   Onderaan elke leren-pagina. Editorial italic prompts in 2 of 3 kolommen. */

.crossroads {
  padding: var(--section-y) var(--gutter);
  background: #f0ead6;
  color: #000000;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.crossroads-head { margin-bottom: 56px; max-width: 60ch; }
.crossroads-head .eyebrow {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.55; margin-bottom: 20px;
  font-family: Inter, system-ui, sans-serif;
}
.crossroads-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; margin: 0;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 18ch;
}
.crossroads-head h2 em { font-style: italic; color: #B18B50; }
.crossroads-head .lede {
  margin-top: 18px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic; font-size: 20px; line-height: 1.45;
  color: #7E2F36; max-width: 56ch;
}

.crossroads-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(var(--cr-cols, 3), 1fr);
}

.cr-card {
  display: flex; flex-direction: column;
  padding: 36px;
  background: #f0ead6;
  border: 1px solid rgba(0,0,0,0.18);
  color: #000000;
  text-decoration: none;
  min-height: 240px;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.cr-card:hover {
  background: #1E2E22;
  color: #f0ead6;
  padding-left: 44px;
  border-color: #000000;
}
.cr-q {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: #7E2F36;
  transition: color 0.25s ease;
}
.cr-card:hover .cr-q { color: #B18B50; }
.cr-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  margin-top: auto;
  padding-top: 28px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.cr-meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin-top: 6px;
  font-family: Inter, system-ui, sans-serif;
}
.cr-cta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7E2F36; margin-top: 16px;
  font-family: Inter, system-ui, sans-serif;
  transition: color 0.25s ease;
}
.cr-card:hover .cr-cta { color: #B18B50; }

/* Kaart met foto (privéles): beeld bovenaan, binnen de kaartmarge */
.cr-card--img .cr-img { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 26px; background: #2C3D30; }
.cr-card--img .cr-img img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; display: block; transition: transform 0.8s cubic-bezier(.2,.7,.3,1); }
.cr-card--img:hover .cr-img img { transform: scale(1.04); }
@media (max-width: 640px) { .cr-card--img .cr-img { margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .cr-card--img .cr-img img { transition: none; } }

/* 2-column variant: use class on .crossroads-grid */
.crossroads-grid.cols-2 { --cr-cols: 2; }

/* Tablet (641–1000px): 3-col → 2-col; cols-2 stays 2-col */
@media (max-width: 1000px) {
  .crossroads-grid { grid-template-columns: repeat(2, 1fr); }
  .crossroads-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cr-card { min-height: 200px; padding: 30px; }
  .cr-card:hover { padding-left: 36px; }
  .cr-q { font-size: 24px; }
}
/* Tablet portrait (641–768px): compact spacing */
@media (max-width: 768px) {
  .cr-card { min-height: 180px; padding: 26px; }
}
/* Phone (≤640px): full stack */
@media (max-width: 640px) {
  .crossroads-grid, .crossroads-grid.cols-2 { grid-template-columns: 1fr; gap: 16px; }
  .crossroads-head { margin-bottom: 36px; }
  .cr-card { min-height: auto; padding: 24px; }
  .cr-q { font-size: 20px; }
  .cr-name { font-size: 20px; padding-top: 22px; }
}

/* ============ Portfolio teaser (was portfolio-teaser.css) ============ */
/* Portfolio-sectie op events-, abonnementen- en freelancepagina (assets/portfolio-teaser.js) */
.pft { padding: var(--section-y-s) var(--gutter); border-top: 1px solid rgba(0,0,0,0.12); }
.pft-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 48px; }
.pft-head h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 24ch; text-wrap: balance; }
.pft-lede { margin-top: 16px; font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.45; color: #7E2F36; max-width: 48ch; }
.pft-all { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7E2F36;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; transition: color 0.2s ease; }
.pft-all:hover { color: #000000; }
.pft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.pft-card { display: block; color: inherit; text-decoration: none; }
.pft-media { position: relative; aspect-ratio: 4 / 5; background: #2C3D30; overflow: hidden; }
.pft-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(.2,.7,.3,1); }
.pft-card:hover .pft-media img { transform: scale(1.04); }
.pft-ph { position: absolute; left: 18px; bottom: 16px; font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 17px; color: #F0EAD6; }
.pft-kicker { margin-top: 18px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.pft-title { margin-top: 8px; font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; transition: color 0.2s ease; }
.pft-card:hover .pft-title { color: #7E2F36; }
.pft-loc { margin-top: 6px; font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 15px; color: #7E2F36; }
.pft.pft-empty .pft-head { margin-bottom: 0; }
@media (max-width: 1000px) { .pft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pft-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============ Shared page rules (were copied in every page) ============ */
.rose-mark { display: block; }
.page-title { background: var(--ink); color: var(--cream); padding: var(--section-y) var(--gutter) var(--section-y-s); }
footer { background: var(--ink); color: var(--cream); }
.manifesto { padding: var(--section-y-l) var(--gutter) var(--section-y-s); border-top: 1px solid rgba(240,234,214,0.12); border-bottom: 1px solid rgba(240,234,214,0.12); }
.manifesto h2 { font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -0.025em; max-width: 1100px; text-wrap: balance; }
.ledger-cols { padding: 72px var(--gutter) 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.f-mark-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.f-mark-row span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.f-word { font-family: var(--display); font-size: 36px; line-height: 1.05; letter-spacing: -0.015em; }
.f-addr { margin-top: 28px; font-size: 13px; line-height: 1.7; opacity: 0.78; }
.f-col h3 { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; margin: 0 0 18px; font-weight: 500; font-family: var(--body); }
.f-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.f-col a.f-link { font-family: var(--body); font-size: 15px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.f-col a.f-link:hover { color: var(--rose); padding-left: 8px; }
.f-else span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.f-else a { font-family: var(--body); font-size: 15px; line-height: 1.5; transition: color 0.2s ease; }
.f-else a:hover { color: var(--rose); }
.f-letter p { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.45; opacity: 0.88; margin-bottom: 20px; }
.f-letter form { display: flex; align-items: flex-end; border-bottom: 1px solid rgba(240,234,214,0.6); padding-bottom: 8px; gap: 8px; }
.f-letter input { flex: 1; background: transparent; border: 0; color: var(--cream); font-family: var(--display); font-size: 18px; padding: 4px 0; outline: none; }
.f-letter input::placeholder { color: rgba(240,234,214,0.45); }
.f-letter button { background: transparent; border: 0; color: var(--rose); cursor: pointer; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 0; font-family: var(--body); }
.f-letter .fine { margin-top: 12px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
.colophon { margin-top: 24px; padding: 24px var(--gutter) 40px; border-top: 1px solid rgba(240,234,214,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.colophon .legal { display: flex; gap: 20px; }

/* ============ Typography ============ */
/* == Eyebrows == small uppercase label above a section heading */
.eyebrow { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; margin-bottom: 20px; }

/* == Kicker == small uppercase label at the top of a page hero */
.kicker-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; margin-bottom: 24px; }
/* Knoppen en knop-links: zelfde letterafstand als de eyebrows, overal.
   !important omdat elke pagina haar knoppen in de eigen inline <style> zet (die laadt later). */
:is(.cta, .book-cta, .pcard-cta, .checkout-cta, .buy-cta, .buy-alt, .continue-link,
    .sold-link, .link-arrow, .sec-head .side, .pft-all, .pf-load, .pf-filter, .vt-btn,
    .mm-cta, .mm-mobile-cta, .discount-input button, .filters button, .inq button,
    .b64-cc button, button[type="submit"], input[type="submit"]) { letter-spacing: 0.12em !important; }

/* ============ Motion layer (was animations.css) ============ */
/* Only on pages with <html class="motion"> (the pages that load animations.js),
   so pages without the motion layer keep their plain headings. */
/* ============================================================
   Marie-Astrid Holemans — motion layer
   Confirmed set: intro reveal, split-text, clip-path reveal,
   hover-flourish, magnetic buttons.
   (No custom cursor, no parallax, no smooth scroll.)

   Initial "from" states are gated behind html.anim-on, which is
   added by an inline head snippet BEFORE paint and removed by a
   2.5s failsafe (or reduced-motion), so text can never stay
   hidden if GSAP fails to load.
   ============================================================ */

/* Split-text mask lines */
:where(html.motion) .anim-line { display: block; }

/* Koppen nooit afknippen:
   1. een kop is nooit smaller dan zijn langste woord (min-width wint van
      max-width), anders loopt een lang woord als "bloemschiktechnieken"
      buiten de kop;
   2. de SplitText-maskers knippen alleen verticaal (nodig voor de
      onthulling van onder naar boven), nooit horizontaal. */
:where(html.motion) h1, :where(html.motion) h2 { min-width: min-content; }
:where(html.motion) [class*="line-mask"] { overflow: visible clip !important; }
/* 3. ruimte onder elke maskerregel voor de staart van g, j, p, y; de negatieve
      marge houdt de regelafstand gelijk. */
:where(html.motion) [class*="line-mask"] { padding-bottom: 0.18em; margin-bottom: -0.18em; }

/* --- Pageload curtain intro (shown once per visit; gated by html.intro-play) --- */
#mah-preloader { position: fixed; inset: 0; z-index: 9999; overflow: hidden; display: none;
  background: var(--ink, #1E2E22); will-change: transform; }
html.intro-play #mah-preloader { display: block; }
#mah-preloader .mah-pre-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Bloom 64 logo (flowers + wordmark) from the Shopify CDN. Only requested under
   html.intro-play, so visitors who already saw the intro never download it.
   The SVG is a square canvas with the logo in a band above centre (~74% wide):
   --pre-box sizes the canvas so the logo itself is ~min(84vw, 700px) wide, and the
   margin-top recentres the band in the viewport. */
#mah-preloader .mah-pre-logo {
  --pre-box: min(114vw, 940px);
  width: var(--pre-box); height: var(--pre-box); flex: none;
  margin-top: calc(var(--pre-box) * 0.238);
  opacity: 0; transform: scale(0.92); will-change: opacity, transform; }
html.intro-play #mah-preloader .mah-pre-logo {
  background: url("https://cdn.shopify.com/s/files/1/1024/8378/8119/files/BLOOM_64.svg?v=1791101044") center / contain no-repeat; }

/* --- Initial hidden states (only while anim-on is active) --- */
html.anim-on h1,
html.anim-on h2 { opacity: 0; }

html.anim-on .eyebrow,
html.anim-on .kicker-label,
html.anim-on .copy,
html.anim-on .addr,
html.anim-on .lede,
html.anim-on .cta,
html.anim-on .menu-row { opacity: 0; }

html.anim-on .gallery .g-cell { clip-path: inset(0 0 100% 0); }

/* --- Hover flourishes (safe, additive) --- */
html.anim-on .g-cell::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0,0,0,0); transition: background 0.5s ease;
}
html.anim-on .g-cell:hover::after { background: rgba(0,0,0,0.10); }

html.anim-on .nav nav a { position: relative; }
html.anim-on .nav nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--rose, #B18B50); transition: width 0.28s ease;
}
html.anim-on .nav nav a:hover::after { width: 100%; }
/* Actief menu-item heeft al kleur en lijn: geen tweede hover-lijn, geen klik-cursor */
html .nav nav a.current::after { display: none; }
.nav nav a.current { cursor: default; }

/* Respect reduced motion: never hide, never transform */
@media (prefers-reduced-motion: reduce) {
  html.motion h1, html.motion h2, html.motion .eyebrow, html.motion .kicker-label, html.motion .copy,
  html.motion .addr, html.motion .lede, html.motion .cta, html.motion .menu-row { opacity: 1 !important; transform: none !important; }
  html.motion .gallery .g-cell { clip-path: none !important; }
  html.motion #mah-preloader { display: none !important; }
}

/* Koppen lopen nooit uit een smalle kolom: een woord dat niet past breekt af.
   Lange woorden krijgen in de HTML een zacht afbreekpunt (&shy;), geen automatische
   woordafbreking, want die knipt ook woorden die gewoon naar de volgende regel kunnen. */
h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ============ 12-kolommengrid (6th Man fluid-standaard) ============
   4 kolommen op klein scherm, 12 vanaf 768px. De kolommen snappen bewust,
   alles binnenin (type, spacing) blijft fluid. Kinderen nemen spans: .span-4 enz. */
.grid-12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--grid-gap); }
@media (min-width: 768px) { .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* Grid-overlay: Cmd+G (Ctrl+G) toont de 12 kolommen over de pagina, zelfde zijmarge en goot
   als de secties. Alleen visueel hulpmiddel, klikt door (pointer-events: none). */
#grid-overlay { position: fixed; inset: 0; z-index: 99990; pointer-events: none; padding: 0 var(--gutter); }
#grid-overlay[hidden] { display: none; }
#grid-overlay .go-cols { height: 100%; max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--grid-gap); }
@media (min-width: 768px) { #grid-overlay .go-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
#grid-overlay .go-cols span { background: rgba(217,122,134,0.14); border-left: 1px solid rgba(217,122,134,0.35); border-right: 1px solid rgba(217,122,134,0.35); }
#grid-overlay .go-cols span:nth-child(n+5) { display: none; }
@media (min-width: 768px) { #grid-overlay .go-cols span:nth-child(n+5) { display: block; } }

/* ======================================================================
   LAY-OUT OP HET 12-GRID
   Alle paginastructuur valt op hetzelfde 12-kolommengrid als de Cmd+G-overlay:
   12 kolommen vanaf 768px, 4 daaronder, goot var(--grid-gap), zijmarge var(--gutter).
   Tekst/beeld-splitsingen stapelen op <=1000px (zoals voordien), kaartrijen gaan
   daar naar 2 per rij, op mobiel naar 1. !important: de inline <style> per pagina
   laadt later en zette eigen kolommen. Componentgrids binnen een cel (mandjeslijn,
   datumrij, specificaties) en vakjestabellen zonder goot (prijzen, stappen) blijven
   zoals ze zijn: hun gelijke delen vallen al midden in de goot van het grid.
   ====================================================================== */
.grid2, .abo-intro, .page-title.has-hero, .intro .grid, .where .grid, .about .grid,
.contact-grid, .cart-grid, section.main, section.product, section.desc:has(> .copy),
.k-hero:has(> .meta), section.handmade, section.own, section.maker,
.pft-grid, .crossroads-grid, .pf-grid, .collection-grid, .ledger.view-gallery,
.k-grid, .stuff, .pp-gallery, .faq-list, .ledger-cols, .hero-img, section.lesson, section.desc:has(> .wrap) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: var(--grid-gap) !important;
}
@media (min-width: 768px) {
  .grid2, .abo-intro, .page-title.has-hero, .intro .grid, .where .grid, .about .grid,
  .contact-grid, .cart-grid, section.main, section.product, section.desc:has(> .copy),
  .k-hero:has(> .meta), section.handmade, section.own, section.maker,
  .pft-grid, .crossroads-grid, .pf-grid, .collection-grid, .ledger.view-gallery,
  .k-grid, .stuff, .pp-gallery, .faq-list, .ledger-cols, .hero-img, section.lesson, section.desc:has(> .wrap) {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
}
section.lesson > .wrap, section.desc > .wrap { max-width: none !important; margin: 0 !important; }
/* Over: portret vult zijn kolommen (desktop 1-4, gestapeld 6 van 12, mobiel vol) */
.about .grid > .portrait, .about .portrait { max-width: none !important; }
/* Standaard: elk kind over de volle breedte (mobiel, en gestapeld) */
:where(.grid2, .abo-intro, .page-title.has-hero, .intro .grid, .where .grid, .about .grid,
  .contact-grid, .cart-grid, section.main, section.product, section.desc, .k-hero:has(> .meta),
  section.handmade, section.own, section.maker, .pft-grid, .crossroads-grid, .pf-grid,
  .collection-grid, .ledger.view-gallery, .k-grid, .stuff, .pp-gallery, .faq-list,
  .ledger-cols, .hero-img, section.lesson) > * { grid-column: 1 / -1 !important; }

/* Tablet (768-1000): kaartrijen 2 per rij, footer 2 kolommen */
@media (min-width: 768px) {
  :where(.pft-grid, .crossroads-grid, .pf-grid, .collection-grid, .ledger.view-gallery,
    .k-grid, .stuff, .pp-gallery, .ledger-cols) > * { grid-column: span 6 !important; }
  .faq-list > * { grid-column: 1 / -1 !important; }
  .hero-img > .frame, .hero-img > .cap { grid-column: 2 / 12 !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .pf-grid.view-grid > * { grid-column: span 4 !important; }
  .k-grid > * { grid-column: span 6 !important; }
  /* rijen van precies 3 kaarten: ook op tablet 3 per rij, geen eenzame derde kaart */
  .pft-grid > *, .crossroads-grid:not(.cols-2) > * { grid-column: span 4 !important; }
}

/* Tekst/beeld-splitsingen naast elkaar vanaf 768px (iPad staand en breder) */
@media (min-width: 768px) {
  /* tekst | beeld (1.1 : 0.9) en gespiegeld */
  .grid2 > .c-text { grid-column: 1 / 7 !important; grid-row: 1; }
  .grid2 > .c-media { grid-column: 8 / 13 !important; grid-row: 1; }
  .grid2.flip > .c-media { grid-column: 1 / 6 !important; }
  .grid2.flip > .c-text { grid-column: 7 / 13 !important; }
  .abo-intro > :first-child, .page-title.has-hero > :first-child { grid-column: 1 / 8 !important; grid-row: 1; }
  .abo-intro > :last-child, .page-title.has-hero > :last-child { grid-column: 9 / 13 !important; grid-row: 1; }
  /* gelijke helften */
  .where .grid > :first-child { grid-column: 1 / 7 !important; grid-row: 1; }
  .where .grid > :last-child { grid-column: 7 / 13 !important; grid-row: 1; }
  /* smal | breed */
  .about .grid > :first-child { grid-column: 1 / 5 !important; grid-row: 1; }
  .intro .grid > :first-child { grid-column: 1 / 6 !important; grid-row: 1; }
  .intro .grid > :last-child, .about .grid > :last-child { grid-column: 6 / 13 !important; grid-row: 1; }
  .intro .grid > :last-child, .about .grid > :last-child { grid-column: 7 / 13 !important; }
}

/* Desktop (>=1001): product, boeking en mandje naast elkaar, kaartrijen op 3 of 4 */
@media (min-width: 1001px) {
  /* geperste bloemen: hero, handgemaakt, maker, eigen kader (cijferblokken te breed voor tablet) */
  section.own > :first-child, .k-hero > :first-child { grid-column: 1 / 8 !important; grid-row: 1; }
  section.own > :last-child, .k-hero > :last-child { grid-column: 9 / 13 !important; grid-row: 1; }
  section.handmade > :first-child { grid-column: 1 / 7 !important; grid-row: 1; }
  section.handmade > :last-child { grid-column: 7 / 13 !important; grid-row: 1; }
  section.maker > :first-child { grid-column: 1 / 6 !important; grid-row: 1; }
  section.maker > :last-child { grid-column: 6 / 13 !important; grid-row: 1; }
  .cart-grid > :first-child { grid-column: 1 / 8 !important; grid-row: 1; }
  .cart-grid > :last-child { grid-column: 9 / 13 !important; grid-row: 1; }
  .contact-grid > :first-child { grid-column: 1 / 7 !important; grid-row: 1; }
  .contact-grid > :last-child { grid-column: 7 / 13 !important; grid-row: 1; }
  section.desc > :first-child:not(.wrap) { grid-column: 1 / 6 !important; grid-row: 1; }
  section.desc > .copy { grid-column: 6 / 13 !important; grid-row: 1; }
  /* product: beeld breed, aankoop smal */
  section.main > :first-child, section.product > :first-child { grid-column: 1 / 8 !important; grid-row: 1; }
  section.main > :last-child, section.product > :last-child { grid-column: 8 / 13 !important; grid-row: 1; }
  /* tekstkolom gecentreerd over 8 kolommen */
  section.lesson > .wrap, section.desc > .wrap { grid-column: 1 / 9 !important; }
  section.lesson > .wrap { grid-column: 3 / 11 !important; }
  /* kaartrijen */
  :where(.pft-grid, .crossroads-grid, .pf-grid, .collection-grid, .ledger.view-gallery, .ledger-cols) > * { grid-column: span 4 !important; }
  .crossroads-grid.cols-2 > * { grid-column: span 6 !important; }
  .ledger-cols:has(> :nth-child(4)) > * { grid-column: span 3 !important; }
  :where(.k-grid, .stuff, .pf-grid.view-grid) > * { grid-column: span 3 !important; }
  :where(.pf-grid.view-2, .pp-gallery, .faq-list) > * { grid-column: span 6 !important; }
}
/* Geperste bloemen: 4 kaarten pas op brede schermen, 3 tot 1200 (zoals voordien) */
@media (min-width: 1001px) and (max-width: 1200px) {
  .k-grid > * { grid-column: span 4 !important; }
  .collection-grid > * { grid-column: span 6 !important; }
}
/* Mobiel: geperste-bloemen-kaarten en portfolio-grid 2 per rij */
@media (max-width: 767px) {
  .k-grid > *, .pf-grid.view-grid > * { grid-column: span 2 !important; }
}
/* Megamenu (desktop): zelfde zijmarge en kolommen als de pagina */
@media (min-width: 1201px) {
  .megamenu-inner { max-width: none !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important; column-gap: var(--grid-gap) !important; }
  .megamenu-inner > .mm-formats { grid-column: 1 / 6 !important; }
  .megamenu-inner > .mm-upcoming { grid-column: 7 / 13 !important; }
}

/* Mozaïek (homepage en over): op het 12-grid. Desktop in blokken van 6 (groot links + twee
   rechts, dan gespiegeld), restcellen vullen de rij op zodat het bij elk aantal sluit.
   Tablet: een brede cel, dan twee halve. Mobiel: swipe-rij. Rijhoogte zet de pagina zelf. */
.gallery .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); grid-auto-flow: row dense; }
@media (min-width: 1101px) {
  .gallery .g-cell:nth-child(6n+1) { grid-column: 1 / span 6; grid-row: span 2; }
  .gallery .g-cell:nth-child(6n+2), .gallery .g-cell:nth-child(6n+3) { grid-column: 7 / span 6; }
  .gallery .g-cell:nth-child(6n+4), .gallery .g-cell:nth-child(6n+5) { grid-column: 1 / span 6; }
  .gallery .g-cell:nth-child(6n+6) { grid-column: 7 / span 6; grid-row: span 2; }
  .gallery .g-cell:nth-child(6n+1):last-child,
  .gallery .g-cell:nth-child(6n+4):last-child { grid-column: 1 / -1; grid-row: span 2; }
  .gallery .g-cell:nth-child(6n+2):last-child { grid-row: span 2; }
  .gallery .g-cell:nth-child(6n+4):nth-last-child(2) { grid-row: span 2; }
  .gallery .g-cell:nth-child(6n+5):last-child { grid-column: 7 / span 6; grid-row: span 2; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .gallery .g-cell { grid-column: span 6; }
  .gallery .g-cell:nth-child(3n+1), .gallery .g-cell:nth-child(3n+2):last-child { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 767px) {
  .gallery .grid { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery .grid::-webkit-scrollbar { display: none; }
  .gallery .g-cell { flex: 0 0 84%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
}

/* iPad staand: foto naast titel/intro iets breder (5 kolommen) */
@media (min-width: 768px) and (max-width: 1000px) {
  .abo-intro > :first-child, .page-title.has-hero > :first-child { grid-column: 1 / 8 !important; }
  .abo-intro > :last-child, .page-title.has-hero > :last-child { grid-column: 8 / 13 !important; }
}

/* ── Mandje in de mobiele header (cart.js), tussen logo en hamburger ──
   Onder 1200px is de nav verborgen; zonder dit stond het mandje enkel in de lade. */
.cart-link-mobile { display: none; }
@media (max-width: 1200px) {
  header.nav { grid-template-columns: 1fr auto auto !important; align-items: center; }
  header.nav .mark { grid-column: 1; grid-row: 1; }
  header.nav .cart-link-mobile {
    display: inline-flex; align-items: center; justify-content: center;
    grid-column: 2; grid-row: 1; position: relative;
    width: 44px; height: 44px; margin: -11px 0;
    color: #f0ead6; text-decoration: none;
  }
  header.nav .mm-hamburger { grid-column: 3; grid-row: 1; }
  .cart-link-mobile .cart-icon { width: 22px; height: 22px; display: block; }
  .cart-link-mobile .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-link-mobile .cart-count {
    position: absolute; top: 5px; right: 2px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: #B18B50; color: #000000;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10px; font-weight: 500; line-height: 1;
  }
  .cart-link-mobile .cart-count[hidden] { display: none; }
}
