/* ==========================================================
   The Elizabeth-Ann Charity — site styles
   Cream canvas, heavy grotesk type, green pill actions.
   ========================================================== */

:root {
  --bg: #f4ecdd;
  --bg-deep: #ebdfc9;
  --paper: #fbf8f2;
  --white: #ffffff;
  --ink: #1d1c1a;
  --ink-2: #3a3834;
  --muted: #6f695f;
  --line: rgba(29, 28, 26, 0.12);
  --green: #5cc27a;
  --green-deep: #2f8f4e;
  --green-tint: #e3f4e6;
  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 28, 26, 0.04), 0 12px 32px -12px rgba(29, 28, 26, 0.14);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.display { font-size: clamp(3.2rem, 11vw, 9.5rem); letter-spacing: -0.055em; line-height: 0.92; }
.h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

.tag {
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  background: rgba(29, 28, 26, 0.06); font-size: 0.8rem; font-weight: 600; letter-spacing: -0.01em;
}
.tag--green { background: var(--green-tint); color: var(--green-deep); }
.tag--light { background: rgba(255, 255, 255, 0.18); color: var(--white); backdrop-filter: blur(6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--green { background: var(--green); color: var(--white); box-shadow: 0 10px 24px -10px rgba(47, 143, 78, 0.7);
  /* larger, bolder text with a faint dark-green shadow so white reads clearly on the light green */
  font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 1px 2px rgba(23, 84, 42, 0.45); }
.btn--green:hover { background: #4fb66d; }
.btn--soft { background: var(--green-tint); color: var(--green-deep); }
.btn--outline { background: transparent; border: 1px solid var(--line); color: var(--ink); min-height: 44px; padding: 0 22px; }
.btn--outline:hover { background: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.arrow-link .circle { transition: transform 0.25s ease, background 0.25s ease; }
.arrow-link:hover .circle { transform: rotate(45deg); background: var(--white); }
.arrow-link--light { color: var(--white); }
.arrow-link--light .circle { border-color: rgba(255, 255, 255, 0.5); }
.arrow-link--light:hover .circle { background: rgba(255, 255, 255, 0.15); }

.circle {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-grid; place-items: center; flex: none; background: transparent; cursor: pointer;
}
.circle svg { width: 16px; height: 16px; }
button.circle:hover { background: var(--white); }
button.circle:disabled { opacity: 0.35; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
/* section links (#…) land just below the sticky header */
html { scroll-padding-top: 130px; }
@media (max-width: 560px) { html { scroll-padding-top: 100px; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 120px; }
@media (max-width: 560px) { .nav { height: 92px; } }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; } /* never squash the logo */
/* smaller laptops (menu still visible): slightly more compact so logo, menu and buttons fit undistorted */
@media (min-width: 981px) and (max-width: 1140px) {
  .site-header .brand-logo { height: 84px; }
  .nav-links a { padding: 11px 13px; }
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-logo { height: 100px; width: auto; display: block; }
.site-footer .brand-logo { height: 130px; }
@media (max-width: 560px) { .brand-logo { height: 72px; } }
.brand-name { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); font-size: 0.72rem; }

/* ---------- Main menu: clear "liquid glass" capsule ----------
   A see-through glass bar with light catching its top-left rim; the current
   page sits in its own raised glass pill, and other tabs get a fainter pill on hover. */
.nav-links {
  position: relative; display: flex; gap: 4px; list-style: none; margin: 0; padding: 5px;
  border-radius: 999px; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(16px) saturate(1.7); -webkit-backdrop-filter: blur(16px) saturate(1.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),     /* top highlight */
    inset 0 -1px 1px rgba(255, 255, 255, 0.35),    /* soft lower edge */
    inset 0 0 12px rgba(255, 255, 255, 0.35),      /* inner glow */
    0 10px 30px -14px rgba(80, 55, 20, 0.35),      /* lift off the page */
    0 1px 2px rgba(80, 55, 20, 0.08);
}
/* the bright rim: strongest at the top-left, fading round the capsule */
.nav-links::before, .nav-links a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(125deg, #fff 0%, rgba(255, 255, 255, 0.85) 14%, rgba(255, 255, 255, 0.12) 42%,
                                      rgba(255, 255, 255, 0.05) 62%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nav-links a {
  position: relative; display: block; text-decoration: none; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px; color: var(--ink-2, var(--ink)); white-space: nowrap;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.nav-links a::before { opacity: 0; transition: opacity 0.3s ease; }
/* hover: a faint glass pill */
.nav-links a:hover { background: rgba(255, 255, 255, 0.32); color: var(--ink); }
.nav-links a:hover::before { opacity: 0.55; }
/* current page: a raised, brighter glass pill with a little light glint */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -2px 6px rgba(255, 255, 255, 0.6),
    0 6px 16px -8px rgba(80, 55, 20, 0.35),
    0 1px 2px rgba(80, 55, 20, 0.1);
}
.nav-links a[aria-current="page"]::before { opacity: 1; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; top: 3px; left: 12px; width: 26px; height: 9px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  filter: blur(0.5px); pointer-events: none;
}
.nav-links a:active { transform: scale(0.97); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .circle { width: 44px; height: 44px; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .menu-toggle { display: inline-grid; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 0 var(--gutter) 24px; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
/* the menu's top bar matches the header exactly, so the logo stays put and × replaces the two lines */
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; height: 120px; flex: none; }
@media (max-width: 560px) { .mobile-menu .top { height: 92px; } }
.mobile-menu .menu-close { width: 44px; height: 44px; }
.mobile-menu ul { list-style: none; padding: 0; margin: 16px 0 auto; }
.mobile-menu li a {
  display: block; text-decoration: none; font-size: clamp(2rem, 9vw, 3rem); font-weight: 800;
  letter-spacing: -0.04em; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 3.8vw, 52px) 0; }
.section--white { background: var(--paper); }
.section--tight { padding: clamp(32px, 3.5vw, 48px) 0; }
.section-head { text-align: center; margin-bottom: clamp(28px, 3.5vw, 48px); display: grid; justify-items: center; gap: 20px; }
.section-head .h2 { max-width: 16ch; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 0; text-align: center; }
.hero-title { margin: 0 auto; }
.hero-title .line { display: flex; align-items: center; justify-content: center; gap: 0.12em; flex-wrap: nowrap; }
.hero-pill {
  display: inline-block; width: 1.9em; height: 0.92em; border-radius: 999px; overflow: hidden; flex: none;
  box-shadow: var(--shadow); transform: translateY(0.04em);
}
.hero-pill img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { margin: 28px auto 0; max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 24px; margin-top: 36px; }

.hero-bar {
  margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 32px; flex-wrap: wrap;
}
.hero-bar .item { display: inline-flex; align-items: center; gap: 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.hero-bar .fact { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; text-transform: none; }
.hero-bar .fact span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .hero-title .line { flex-wrap: wrap; }
  .hero-bar .fact { display: none; }
}

/* ---------- Action cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.action-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.action-card .icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg); display: grid; place-items: center;
}
.action-card .icon svg { width: 22px; height: 22px; }
.action-card h3 { margin-top: 16px; }
.action-card p { margin: 0; color: var(--ink-2); }
.action-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.avatars { display: flex; align-items: center; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-left: -12px; }
.avatars > img:first-child, .avatars > picture:first-child > img { margin-left: 0; }
.pay-methods { display: flex; align-items: center; gap: 10px; }
.pay-methods .dots { display: flex; }
.pay-methods .dots span {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 2px solid var(--white);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; margin-left: -10px;
}
.pay-methods .dots span:first-child { margin-left: 0; }
.pay-methods small { font-size: 0.8rem; font-weight: 600; }

/* ---------- Sticky impact counter ---------- */
.impact { position: relative; height: 420vh; background: var(--paper); transition: background 0.6s ease; }
.impact-sticky {
  /* sits just below the sticky header and is only as tall as its content, so no empty band is left */
  position: sticky; top: 120px; overflow: hidden;
  display: grid; place-items: start center; text-align: center; padding: clamp(32px, 5vh, 56px) var(--gutter) clamp(40px, 5vh, 56px);
  transition: background 0.6s ease;
}
.impact-sticky::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30vh; height: 55vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--hill-bg, var(--bg)); transition: transform 0.8s ease, background 0.6s ease;
  transform: translateY(var(--hill, 0));
}
.impact-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
@media (max-width: 560px) { .impact-sticky { top: 92px; } }
.impact-sticky::after { display: none; } /* the whole section changes colour instead */
.impact-number {
  font-size: clamp(5rem, min(19vw, 26vh), 15rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
  color: var(--green); font-variant-numeric: tabular-nums; margin-top: 2vh;
}
.impact-label { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em; min-height: 1.4em; }
.impact-note { font-size: 0.95rem; color: var(--muted); max-width: 44ch; min-height: 3em; margin: 0; }
.impact-dots { display: flex; gap: 8px; margin-top: 8px; }
.impact-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, width 0.3s; }
.impact-dots span.on { background: var(--green); width: 24px; border-radius: 99px; }
.swap { transition: opacity 0.35s ease, transform 0.35s ease; }
.swap.out { opacity: 0; transform: translateY(12px); }

/* ---------- Stories carousel ---------- */
.stories { overflow: hidden; }
[data-stories] { touch-action: pan-y; }
.story-track {
  display: flex; gap: 24px; align-items: flex-end; justify-content: center;
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1); will-change: transform;
}
.story-track.no-anim, .story-track.no-anim * { transition: none !important; }
.story {
  flex: 0 0 clamp(240px, 26vw, 340px); display: flex; flex-direction: column; gap: 16px;
  cursor: pointer; transition: flex-basis 0.6s ease;
}
.story-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  filter: grayscale(1); transition: filter 0.6s ease, aspect-ratio 0.6s ease, transform 0.6s ease; transform: scale(0.92);
  transform-origin: bottom center;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media .btn-row {
  position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.story-media .btn-row .btn { min-height: 46px; padding: 0 26px; }
.story-media .btn-row .circle { background: rgba(255, 255, 255, 0.85); border: 0; margin-left: -6px; width: 46px; height: 46px; }
.story-info {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
.story-info h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.story-info p { margin: 6px 0 14px; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.bar { height: 5px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; width: 0; transition: width 1s ease 0.3s; }
.bar-meta { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-top: 10px; }

.story.active .story-media { filter: none; transform: scale(1); }
.story.active .story-media .btn-row { opacity: 1; transform: translate(-50%, 0); }
.story.active .story-info { opacity: 1; transform: none; pointer-events: auto; }
.story.active .bar i { width: var(--pct); }

.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }

/* ---------- Gift calculator (photo overlay) ---------- */
.gift {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: var(--white);
  min-height: 680px; display: grid; align-items: end;
}
.gift > img, .gift > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gift::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.55) 0%, rgba(20, 18, 14, 0.2) 40%, rgba(20, 18, 14, 0.7) 100%);
}
.gift-inner { position: relative; z-index: 2; padding: clamp(28px, 5vw, 56px); display: grid; gap: 40px; }
.gift-head { text-align: center; display: grid; justify-items: center; gap: 18px; }
.gift-head .h2 { max-width: 18ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.gift-form { max-width: 420px; display: grid; gap: 18px; }
.gift-form h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.field-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; opacity: 0.9; }
.glass {
  width: 100%; min-height: 52px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16); color: var(--white); padding: 0 18px; font-size: 1rem; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); appearance: none;
}
select.glass {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; cursor: pointer;
}
select.glass option { color: var(--ink); }
.segmented {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.segmented button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.8); min-height: 42px; border-radius: 999px;
  font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.28); color: var(--white); }
.gift-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gift-total strong { font-size: 2.4rem; letter-spacing: -0.04em; }
.gift-total span { font-size: 0.9rem; opacity: 0.9; text-align: right; max-width: 22ch; line-height: 1.35; }

/* ---------- News slider ---------- */
.news-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.news-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 300px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; align-items: start;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; text-decoration: none; display: grid; gap: 14px; }
.news-card:nth-child(4n + 2) { margin-top: 40px; }
.news-card:nth-child(4n + 3) { margin-top: 0; }
.news-card:nth-child(4n + 4) { margin-top: 56px; }
.news-card .media { border-radius: var(--radius-lg); overflow: hidden; }
.news-card:nth-child(odd) .media { aspect-ratio: 4 / 5; }
.news-card:nth-child(even) .media { aspect-ratio: 1 / 1; }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover img { transform: scale(1.05); }
.news-card time { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.news-card h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; font-weight: 700; }

/* ---------- Join (floating circles) ---------- */
.join { position: relative; min-height: 760px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.join-content { position: relative; z-index: 2; display: grid; justify-items: center; gap: 24px; padding: 0 var(--gutter); }
.join-content .display { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 11ch; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); animation: float 9s ease-in-out infinite; }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.b1 { width: 110px; height: 110px; left: 12%; top: 12%; }
.b2 { width: 220px; height: 220px; left: 3%; top: 38%; animation-delay: -2s; }
.b3 { width: 290px; height: 290px; left: 14%; bottom: -30px; animation-delay: -4s; }
.b4 { width: 260px; height: 260px; right: 7%; top: 4%; animation-delay: -1s; }
.b5 { width: 180px; height: 180px; right: 2%; top: 48%; animation-delay: -3s; }
.b6 { width: 96px; height: 96px; right: 18%; bottom: 10%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 900px) {
  .join { min-height: 0; padding: 280px 0 260px; }
  .b1 { width: 70px; height: 70px; left: 6%; top: 40px; }
  .b2 { width: 120px; height: 120px; left: 22%; top: 110px; }
  .b3 { width: 150px; height: 150px; left: -20px; bottom: 30px; top: auto; }
  .b4 { width: 150px; height: 150px; right: 4%; top: 30px; }
  .b5 { width: 110px; height: 110px; right: 6%; top: auto; bottom: 110px; }
  .b6 { width: 70px; height: 70px; right: 40%; bottom: 36px; }
}

/* ---------- Footer ---------- */
.footer-cta { text-align: center; padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); display: grid; justify-items: center; gap: 24px; }
/* when the last section is cream like the banner, don't stack two big gaps */
main > :last-child:not(.section--white) { padding-bottom: clamp(24px, 3vw, 40px); }
main > section.section--white:last-child:not(.join) { padding-bottom: clamp(40px, 4.5vw, 64px); }
.site-footer { background: var(--bg-deep); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 48px 0 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-grid li a { text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid li a:hover { color: var(--green-deep); }
.footer-grid p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.contact-line { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-line .circle { width: 44px; height: 44px; }
.bank-card { background: var(--paper); border-radius: var(--radius); padding: 20px; font-size: 0.9rem; display: grid; gap: 6px; }
.bank-card b { font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 0.85rem; color: var(--muted);
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(12px, 1.5vw, 20px) 0 clamp(24px, 3vw, 40px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.page-hero .h1 { max-width: 16ch; }
.page-hero-media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-top: 16px; box-shadow: var(--shadow);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero-media { aspect-ratio: 4 / 3; } }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
/* low-resolution photos: show close to their real size instead of stretching */
.split-media--small { aspect-ratio: auto; max-width: 320px; justify-self: center; }
.split-media--natural { aspect-ratio: auto; max-width: 500px; justify-self: center; }
.split-media--wide { aspect-ratio: 4 / 3; } /* landscape group photos: keep everyone in frame */
.split-media--square { aspect-ratio: 1; }
/* What we do: next to a long block of text, keep the photo in view instead of leaving an empty band beside it */
@media (min-width: 861px) { .programme .split-media { position: sticky; top: 200px; align-self: start; } }
.split-media--small img, .split-media--natural img { height: auto; }
.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; color: var(--ink-2); } /* top margin left to the spacing rule above, so paragraphs don't run together */
.prose > :first-child { margin-top: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0.8em; }
.prose blockquote {
  margin: 1.5em 0; padding: 24px 28px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--green);
  font-size: 1.08rem; font-weight: 500; color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose ul li + li { margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline .year { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--green-deep); line-height: 1; }
.timeline h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.person { background: var(--white); border-radius: var(--radius-lg); padding: 14px 14px 22px; border: 1px solid var(--line); }
.person .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg); margin-bottom: 16px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person .initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--green-deep); letter-spacing: -0.04em; background: var(--green-tint); }
.person h3 { font-size: 1.1rem; letter-spacing: -0.02em; padding: 0 8px; }
.person p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); padding: 0 8px; }
/* phones: two trustees per row instead of one huge card each */
@media (max-width: 560px) {
  .people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person { padding: 8px 8px 16px; border-radius: var(--radius); }
  .person .ph { margin-bottom: 12px; }
  .person .initials { font-size: 1.9rem; }
  .person h3 { font-size: 0.98rem; padding: 0 4px; }
  .person p { font-size: 0.82rem; padding: 0 4px; }
}

/* ---------- Programme blocks ---------- */
.subnav {
  position: sticky; top: 120px; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .subnav { top: 92px; } }
.subnav ul { list-style: none; margin: 0 auto; padding: 12px var(--gutter); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: var(--max); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-block; white-space: nowrap; text-decoration: none; padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line);
}
.subnav a:hover, .subnav a.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.programme { padding: clamp(32px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; } /* clears the sticky programme menu */
.programme:last-child { padding-bottom: 0; } /* the page already has space before the footer banner */
.programme:nth-of-type(even) .split > :first-child { order: 2; }
@media (max-width: 860px) { .programme:nth-of-type(even) .split > :first-child { order: 0; } }
.programme .h2 { margin: 16px 0 20px; font-size: clamp(1.9rem, 4vw, 3rem); }
.cost-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cost {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 150px;
}
.cost b { display: block; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--green-deep); line-height: 1.1; }
.cost span { font-size: 0.85rem; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr; } }
.mini { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.mini .m { aspect-ratio: 4 / 3; }
.mini .m img { width: 100%; height: 100%; object-fit: cover; }
.mini .t { padding: 22px 24px 26px; }
.mini h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.mini p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Donate page ---------- */
.donate-stage { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 32px) 0 clamp(40px, 5vw, 64px); } /* small top gap so the whole donation card fits on a laptop screen */
.donate-stage::before, .donate-stage::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--bg-deep); z-index: 0; filter: blur(2px);
}
.donate-stage::before { width: 520px; height: 520px; left: -140px; top: 200px; }
.donate-stage::after { width: 620px; height: 620px; right: -200px; top: 40px; }
.donate-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .donate-grid { grid-template-columns: minmax(0, 1fr); } }
.donate-grid > * { min-width: 0; } /* never let a column grow wider than the screen */
.donate-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.donate-card h2 { font-size: 1.4rem; letter-spacing: -0.02em; text-align: center; }
.toggle-row { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 0.9rem; font-weight: 600; }
.toggle-row span { color: var(--muted); transition: color 0.2s; }
.toggle-row span.on { color: var(--ink); }
.switch { width: 52px; height: 30px; border-radius: 999px; background: var(--green-tint); border: 0; position: relative; cursor: pointer; padding: 0; }
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green);
  transition: transform 0.25s ease;
}
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.amount-field { display: flex; align-items: center; background: var(--bg); border-radius: var(--radius-sm); padding: 6px 6px 6px 20px; }
.amount-field .cur { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.amount-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em;
  padding: 10px 8px; outline: none;
}
.amount-field .gbp { background: var(--white); border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; font-weight: 700; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.presets button {
  min-height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.presets button span { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-right: 1px; }
.presets button[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.impact-hint {
  display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 0.92rem; line-height: 1.4; min-height: 72px;
}
.impact-hint .ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; color: var(--green-deep); }
.donate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .donate-actions { grid-template-columns: 1fr; } }
.fineprint { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0; }
.bank-panel {
  display: none; background: var(--paper); border-radius: var(--radius); padding: 22px; gap: 12px;
}
.bank-panel.open { display: grid; }
.bank-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.95rem; }
.bank-panel dt { color: var(--muted); }
.bank-panel dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy { border: 0; background: none; color: var(--green-deep); font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 0 0 0 8px; }

.price-list { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; }
.price-list li {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.6); border-radius: var(--radius-sm); padding: 14px 18px;
}
.price-list b { font-size: 1.2rem; letter-spacing: -0.03em; color: var(--green-deep); white-space: nowrap; }

/* ---------- Articles ---------- */
.article { padding: clamp(40px, 4.5vw, 64px) 0; border-bottom: 1px solid var(--line); }
main > .article:last-child { padding-bottom: 0; }
.article-head { display: grid; gap: 16px; max-width: 760px; margin: 0 auto 40px; text-align: center; justify-items: center; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-figure { margin: 2em 0; }
.article-figure img { border-radius: var(--radius); width: 100%; }
.article-figure--small img { width: auto; max-width: min(100%, 460px); }
.article-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2em 0; }
.fig-pair img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.news-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.news-index .news-card { margin-top: 0 !important; }
.news-index .news-card .media { aspect-ratio: 4 / 3 !important; }
/* News page: number each story automatically (01, 02, 03…) on its card and on the full story */
.news-index { counter-reset: news; }
.news-index .news-card { counter-increment: news; }
.news-index .news-card .media { position: relative; }
.news-index .news-card .media::before, .article-head::before {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em;
}
.news-index .news-card .media::before { content: counter(news, decimal-leading-zero); position: absolute; top: 12px; left: 12px; z-index: 1; box-shadow: var(--shadow); }
main:has(.news-index) { counter-reset: story; }
main:has(.news-index) .article { counter-increment: story; }
main:has(.news-index) .article-head::before { content: counter(story, decimal-leading-zero); }

/* ---------- Get involved ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.way { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 12px; align-content: start; }
.way .num { font-size: 0.78rem; font-weight: 700; color: var(--green-deep); letter-spacing: 0.1em; }
.way h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
.way p { margin: 0; color: var(--ink-2); }
.way a { margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { font-size: 0.85rem; font-weight: 600; display: grid; gap: 8px; }
.input {
  width: 100%; min-height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white);
  padding: 12px 16px; font: inherit; font-size: 1rem;
}
textarea.input { min-height: 150px; resize: vertical; }
/* a tick box with its wording beside it (Gift Aid declaration) */
.form label.check { grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 10px; align-content: start; }
.contact-card h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.contact-card address { font-style: normal; color: var(--ink-2); line-height: 1.55; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--bg-deep); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80; opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Site search ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 80; padding: 12vh var(--gutter) 24px;
  background: rgba(29, 28, 26, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s ease;
}
.search-panel.open { opacity: 1; }
.search-box {
  max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(29, 28, 26, 0.45); padding: 14px; transform: translateY(-8px);
  transition: transform 0.2s ease; max-height: 76vh; display: flex; flex-direction: column;
}
.search-panel.open .search-box { transform: none; }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px; padding: 4px 4px 4px 18px; border: 1px solid var(--line); }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.search-ic svg { width: 20px; height: 20px; color: var(--muted); display: block; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.1rem; padding: 12px 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-close { width: 44px; height: 44px; }
.search-hint { margin: 14px 10px 6px; font-size: 0.88rem; color: var(--muted); }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; }
.search-results li a { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.search-results li a:hover, .search-results li.on a { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.sr-page { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.sr-title { font-weight: 700; font-size: 1.02rem; }
.sr-text { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.search-results mark { background: var(--green-tint); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 14px 10px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .search-panel { padding-top: 16px; } .search-box { max-height: 88vh; } }

/* WebP photos are wrapped in <picture>; let the <img> inside size exactly as before */
picture { display: contents; }
picture > source { display: none; } /* never let the WebP source take a grid/flex slot */

/* ---------- Photo gallery ---------- */
.gallery-wrap { padding-bottom: clamp(40px, 5vw, 64px); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: clamp(24px, 3vw, 36px); }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery li[hidden] { display: none; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; text-align: left; box-shadow: var(--shadow); }
.g-item img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-cap { display: block; padding: 10px 14px 12px; font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 19, 17, 0.92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius-sm); object-fit: contain; }
.lightbox figcaption { color: #f4ecdd; font-size: 0.92rem; text-align: center; max-width: 70ch; }
.lightbox .circle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; } }
