/* Abigail & Caleb's Legacy Foundation — design system
   Brand: #278aca (blue) · #723f98 (purple) · #cab8a5 (sand)
   Type:  EB Garamond (display, per Adobe Garamond Pro) + Satoshi (body, per Arial) */

:root {
  /* Brand */
  --blue: #278aca;
  --blue-deep: #1b6a9e;
  --purple: #723f98;
  --purple-deep: #5a2f7a;
  --sand: #cab8a5;
  --sand-soft: #e8ded2;

  /* Surfaces */
  --bg: #fbf8f4;
  --bg-warm: #f4ece3;
  --surface: #ffffff;
  --ink: #2b2438;
  --ink-soft: #5b5268;
  --ink-faint: #8b8399;
  --line: #e7dfd6;

  /* Type scale */
  --text-hero: clamp(2.6rem, 6.2vw, 4.75rem);
  --text-3xl: clamp(2.1rem, 4.4vw, 3.25rem);
  --text-2xl: clamp(1.75rem, 3vw, 2.4rem);
  --text-xl: clamp(1.35rem, 2vw, 1.7rem);
  --text-lg: 1.1875rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  /* Space */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --section: clamp(4rem, 9vw, 8rem);

  --radius: 14px;
  --radius-lg: 24px;
  --wrap: 1180px;
  --prose: 62ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }

:focus-visible {
  outline: 2.5px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 var(--s2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn--primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 6px 20px -8px rgba(114, 63, 152, 0.65);
}
.btn--primary:hover { background: var(--purple-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--blue); color: var(--blue-deep); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--purple-deep); }
.btn--light:hover { color: var(--purple-deep); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255,255,255,0.65); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(43, 36, 56, 0.4); }
.header__inner {
  display: flex; align-items: center; gap: var(--s4);
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 96px; width: auto; }
.brand__text { display: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-soft);
  text-decoration: none; position: relative; padding: 0.25rem 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 700; }

/* Donate pill inside the nav must keep button styling */
.nav a.btn { padding: 0.75rem 1.5rem; font-weight: 700; }
.nav a.btn::after { display: none; }
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.5rem 0.65rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 980px) {
  .brand img { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 40px -24px rgba(43,36,56,0.35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--section); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.05fr 0.85fr;
  align-items: center;
}
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--s3); }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(95deg, var(--purple), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--s4); }
.hero__note {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-faint); max-width: 44ch;
}
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 46%;
  max-height: 600px;
  box-shadow: 0 40px 70px -40px rgba(43, 36, 56, 0.5);
}
.hero__figure::before {
  content: ''; position: absolute; inset: auto -8% -6% 12%;
  height: 62%; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--sand-soft), rgba(39,138,202,0.16));
  z-index: -1;
}
.hero__caption {
  margin-top: 1rem; padding-left: 0.9rem;
  border-left: 2px solid var(--sand);
  font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.5;
  max-width: 38ch;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 460px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--warm { background: var(--bg-warm); }
.section--tint { background: linear-gradient(180deg, var(--bg), #f2f6fa); }
.section__head { max-width: 52ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: var(--text-3xl); margin-bottom: var(--s3); }
.section__head--center .eyebrow { justify-content: center; }

/* Mission statement block */
.mission { text-align: center; }
.mission blockquote {
  margin: 0 auto; max-width: 30ch;
  font-family: var(--font-display); font-size: var(--text-2xl);
  line-height: 1.32; color: var(--ink);
}
.mission__mark { width: 120px; margin: 0 auto var(--s4); opacity: 0.95; }
.mission__body { max-width: var(--prose); margin: var(--s4) auto 0; color: var(--ink-soft); }

/* ---------- Two-up children ---------- */
.kids { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .kids { grid-template-columns: 1fr; } }
.kid {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.kid:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(43,36,56,0.45); }
.kid img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.kid--abigail img { object-position: center center; }
.kid--caleb img { object-position: center 55%; }
.kid__body { padding: clamp(1.5rem, 2.5vw, 2.1rem); flex: 1; }
.kid__name { font-size: var(--text-2xl); margin-bottom: 0.35rem; }
.kid--abigail .kid__name { color: var(--purple); }
.kid--caleb .kid__name { color: var(--blue-deep); }
.kid__years {
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: var(--s3);
}
.kid__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s3); padding: 0; list-style: none; }
.kid__tags li {
  font-size: var(--text-xs); font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--bg-warm); color: var(--ink-soft);
}
.kid--abigail .kid__tags li { background: rgba(114,63,152,0.09); color: var(--purple-deep); }
.kid--caleb .kid__tags li { background: rgba(39,138,202,0.1); color: var(--blue-deep); }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.4vw, 2rem);
  border-top: 3px solid var(--blue);
}
.pillar:nth-child(2) { border-top-color: var(--purple); }
.pillar:nth-child(3) { border-top-color: var(--sand); }
.pillar__icon { color: var(--blue); margin-bottom: var(--s3); }
.pillar:nth-child(2) .pillar__icon { color: var(--purple); }
.pillar:nth-child(3) .pillar__icon { color: #a8907a; }
.pillar h3 { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.pillar p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* ---------- Alternating feature rows ---------- */
.feature { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.feature--flip .feature__media { order: 2; }
.feature h3 { font-size: var(--text-2xl); margin-bottom: var(--s3); }
.feature p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s4); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s3);
  align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--sand); color: var(--purple);
}
.steps h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.3rem; }
.steps p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.gallery figure img { transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .span-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; position: relative; }
.gallery .span-2 img { position: absolute; inset: 0; }
.gallery .wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-row: auto; aspect-ratio: 1 / 1; }
  .gallery .span-2 img { position: static; }
}

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 3px solid var(--sand);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl); line-height: 1.34; color: var(--ink);
}
.pullquote footer {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-faint); margin-top: var(--s3);
}

/* ---------- Prose ---------- */
.prose { max-width: var(--prose); }
.prose h2 { font-size: var(--text-2xl); margin: var(--s8) 0 var(--s3); }
.prose h3 { font-size: var(--text-xl); margin: var(--s6) 0 var(--s2); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

/* ---------- Ways to give cards ---------- */
.cards { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--sand); box-shadow: 0 24px 40px -32px rgba(43,36,56,0.4); }
.card h3 { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.card p { font-size: var(--text-sm); color: var(--ink-soft); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: var(--text-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--purple); line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { font-size: var(--text-sm); color: var(--ink-soft); padding-bottom: 1.25rem; max-width: 66ch; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 42%, var(--blue) 100%);
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta h2 { color: #fff; font-size: var(--text-3xl); margin-bottom: var(--s3); }
.cta p { color: rgba(255,255,255,0.88); max-width: 52ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: var(--s4); }
.cta__fine { font-size: var(--text-xs); color: rgba(255,255,255,0.72); margin-top: var(--s4); }

/* ---------- Footer ---------- */
.footer { background: #26203010; border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s4); }
.footer__grid { display: grid; gap: var(--s6); grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer img.footer__mark { height: 64px; width: auto; margin-bottom: var(--s3); }
.footer p { font-size: var(--text-sm); color: var(--ink-soft); }
.footer h3 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: var(--s2);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { font-size: var(--text-sm); color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--purple); text-decoration: underline; }
.footer__social { display: flex; gap: 0.6rem; margin-top: var(--s3); }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft); background: #fff;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.footer__social a:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: translateY(-2px); }
.footer__legal {
  margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: var(--text-xs); color: var(--ink-faint);
}

/* ---------- Page header (interior) ---------- */
.pagehead { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.pagehead h1 { font-size: var(--text-3xl); margin-bottom: var(--s3); max-width: 24ch; }
.pagehead .lede { max-width: 58ch; }

/* ---------- Status note ---------- */
.notice {
  background: rgba(39,138,202,0.07);
  border: 1px solid rgba(39,138,202,0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-size: var(--text-sm); color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .kid:hover, .card:hover, .btn:hover { transform: none; }
}

/* ---------- Social follow cards ---------- */
.social-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) { .social-row { grid-template-columns: 1fr; } }
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem 1.5rem; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.social-card svg { color: var(--purple); }
.social-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 30px 50px -34px rgba(43,36,56,0.45); }

/* ---------- Where we've given ---------- */
.given {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding-top: var(--s6); border-top: 1px solid var(--line);
}
.given + .given { margin-top: var(--s8); }
.given__head { position: sticky; top: 7.5rem; }
.given__meta { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); font-weight: 700; margin-bottom: 0.75rem; }
.given__head h3 { font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.given__sub { font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: var(--text-lg); color: var(--ink-soft); margin: 0; }
.given__body p { color: var(--ink-soft); }
.given__gallery { grid-column: 1 / -1; margin-top: var(--s4); }
@media (max-width: 860px) { .given { grid-template-columns: 1fr; } .given__head { position: static; } }
.status {
  display: inline-block; align-self: flex-start; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--purple-deep); background: rgba(114,63,152,0.09); border-radius: 999px; padding: 0.3rem 0.7rem; margin-bottom: 0.9rem;
}
.pillars--teaser .pillar { text-decoration: none; color: inherit; display: block; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pillars--teaser .pillar:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -32px rgba(43,36,56,0.4); }
.portrait-figure { margin: 0 auto; max-width: 560px; }
.portrait-figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-figure figcaption { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 0.8rem; text-align: center; }
.landscape-figure { margin: 0 auto; max-width: 880px; }
.landscape-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; object-fit: cover; }
.landscape-figure figcaption { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 0.8rem; text-align: center; }

[hidden] { display: none !important; }
