/* ==========================================================================
   Candy Flowers — landing page
   White base, rose accents. Playfair Display (headings) + Inter (body).
   ========================================================================== */

:root {
  /* Palette */
  --white: #ffffff;
  --blush-50: #fff8fa;
  --blush-100: #fdeef3;
  --blush-200: #f9dce7;
  --rose-300: #eeaac4;
  --rose-500: #d4608f;
  --rose-600: #b8336a;   /* primary — 5.6:1 on white */
  --rose-700: #9c2657;
  --ink: #2a1a21;        /* body text — warm near-black */
  --ink-soft: #5e4952;   /* secondary text — 8:1 on white */
  --gold: #b8935a;
  --line: #f1dde5;

  /* Semantic */
  --bg: var(--white);
  --bg-tint: var(--blush-50);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --accent: var(--rose-600);
  --accent-hover: var(--rose-700);
  --on-accent: var(--white);

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px -2px rgba(120, 30, 70, .08);
  --shadow: 0 14px 40px -18px rgba(120, 30, 70, .28);
  --shadow-lg: 0 30px 70px -30px rgba(120, 30, 70, .35);

  /* Spacing */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* no boxy blue flash on tap; buttons have their own states */
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent);
  border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Version switcher (preview of both designs) */
.version-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px var(--gutter);
  background: var(--blush-100); border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.version-label { color: var(--text-muted); margin-right: 6px; }
.version-bar a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.version-bar a:hover { background: var(--blush-200); }
.version-bar a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.version-bar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 400px) { .version-label { display: none; } }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgba(184, 51, 106, .7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--rose-300); color: var(--accent); background: var(--white); }
.btn-ghost:hover { background: var(--blush-100); border-color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--rose-700); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink);
  padding: 10px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--blush-100); color: var(--rose-700); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .i { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 var(--section-y); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.08; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust { display: grid; gap: 12px; }
.hero-trust li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: .9875rem; }
.hero-trust .i {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--blush-100); color: var(--accent); stroke-width: 2.25;
}

.hero-visual { position: relative; padding: 0 0 48px 48px; }
.hero-blob {
  position: absolute; inset: 6% -8% 4% 8%;
  background: radial-gradient(closest-side, var(--blush-200), transparent 72%);
  z-index: -1;
}
.hero-main {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--blush-100);
  outline: 1px solid rgba(255,255,255,.6); outline-offset: -10px;
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }

.hero-side {
  position: absolute; left: 0; bottom: 0; width: 38%;
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow);
}
.hero-side img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.hero-badge {
  position: absolute; right: -8px; top: 14%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 14px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow);
  font-size: .875rem; line-height: 1.35; color: var(--text-muted);
}
.hero-badge strong { color: var(--ink); font-size: .9375rem; }
.hero-badge-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white);
}
.hero-badge-icon .i { fill: currentColor; stroke: none; width: 20px; height: 20px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero-visual { padding: 0 0 36px 28px; }
  .hero-badge { right: 0; top: 8%; padding: 10px 16px 10px 10px; }
  .hero-badge-icon { width: 34px; height: 34px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 18px; }
.section-head .lead { margin-inline: auto; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blush-200); }
.benefit h3 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; margin: 20px 0 10px; }
.benefit p { color: var(--text-muted); font-size: .9875rem; }
.benefit-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--blush-100); color: var(--accent);
}
.benefit-icon .i { width: 26px; height: 26px; }

@media (max-width: 1024px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .benefits { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--blush-200); background: var(--white);
  font-weight: 500; font-size: .9375rem; color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--rose-300); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; grid-auto-flow: dense; }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card.is-entering { animation: card-in .35s var(--ease) both; }

.card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--blush-100); cursor: zoom-in; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.card-media:focus-visible { outline-offset: -4px; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-wide { grid-column: span 2; }
.card-wide .card-media { aspect-ratio: auto; flex: 1; min-height: 0; }
.card-wide .card-media img { position: absolute; inset: 0; }

.zoom {
  position: absolute; right: 14px; top: 14px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--rose-700); box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(.9); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.card:hover .zoom, .card-media:focus-visible .zoom { opacity: 1; transform: none; }

.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }

.ideal {
  display: flex; gap: 8px; align-items: flex-start;
  font-weight: 600; font-size: .9375rem; line-height: 1.45; color: var(--rose-700);
  margin-bottom: 10px;
}
.ideal .i { width: 16px; height: 16px; margin-top: 3px; fill: var(--rose-300); stroke: var(--rose-600); stroke-width: 1.5; }
.desc { color: var(--text-muted); font-size: .9375rem; }

.gallery-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px;
  margin-top: 56px; text-align: center; font-size: 1.0625rem;
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card-wide .card-media { aspect-ratio: 16 / 10; flex: none; }
  .card-wide .card-media img { position: static; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card-wide .card-media { aspect-ratio: 4 / 3; }
  .zoom { opacity: 1; transform: none; }
}

@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Occasions ---------- */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.occasion {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.occasion:hover { border-color: var(--rose-300); background: var(--blush-50); }
.occasion h3 { margin-bottom: 4px; }
.occasion p { color: var(--text-muted); font-size: .9375rem; line-height: 1.55; }
.occasion-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--blush-100); color: var(--accent);
}

@media (max-width: 1024px) { .occasions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .occasions { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-align: center;
}
.step-num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--accent); color: var(--white);
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500;
  box-shadow: 0 0 0 8px var(--blush-100);
}
.step h3 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--text-muted); }

@media (min-width: 861px) {
  .steps::before {
    content: ""; position: absolute; top: 68px; left: 16%; right: 16%; height: 0;
    border-top: 2px dashed var(--rose-300); z-index: 0;
  }
  .step { z-index: 1; background: transparent; border-color: transparent; }
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 64px 32px 28px; border-radius: var(--radius);
  background: var(--blush-50); border: 1px solid var(--line); position: relative;
}
.review::before {
  content: "\201D"; position: absolute; top: 22px; left: 28px;
  font-family: var(--font-serif); font-size: 4.5rem; line-height: .7; color: var(--rose-300);
}
.review blockquote { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
.review figcaption { display: flex; flex-direction: column; font-size: .9375rem; }
.review figcaption span { color: var(--text-muted); font-size: .875rem; }

@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--blush-200); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .i {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--blush-100); color: var(--accent); transition: transform .25s var(--ease);
}
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, #d14a82 0%, transparent 55%),
    linear-gradient(135deg, var(--rose-600), var(--rose-700));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03);
  pointer-events: none;
}
.contact h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.15; margin-bottom: 18px; }
.contact h2 em { color: #ffd6e5; }
.contact-copy > p { color: rgba(255,255,255,.88); font-size: 1.0625rem; max-width: 46ch; }
.eyebrow-light { color: #ffd6e5; }

.contact-meta { display: grid; gap: 10px; margin-top: 28px; }
.contact-meta li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: .9875rem; }

.contact-actions { display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-link {
  display: flex; align-items: center; gap: 16px; min-height: 68px;
  padding: 12px 20px 12px 12px; border-radius: 18px; text-decoration: none;
  background: var(--white); color: var(--ink); font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-link:hover { transform: translateX(4px); box-shadow: 0 12px 28px -14px rgba(0,0,0,.35); }
.contact-link small { display: block; font-weight: 500; font-size: .8125rem; color: var(--text-muted); }
.contact-link-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--blush-100); color: var(--accent);
}
.contact-link:focus-visible { outline-color: var(--white); }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer p { color: var(--text-muted); font-size: .9375rem; }
.footer-copy { font-size: .875rem !important; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(42, 26, 33, .62); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in .28s var(--ease); }
.lightbox-inner { display: grid; grid-template-columns: 1.25fr 1fr; max-height: calc(100dvh - 32px); }
.lightbox-media { background: var(--blush-100); display: grid; place-items: center; min-height: 0; }
.lightbox-media img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lightbox-body { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: auto; }
.lightbox-body h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; margin-bottom: 12px; }
.lightbox-body .desc { font-size: 1rem; margin-bottom: 28px; }
.lightbox-body .btn { align-self: flex-start; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lightbox-close:hover { background: var(--blush-100); color: var(--accent); }

@media (max-width: 760px) {
  /* Stack + scroll; a grid row here would shrink under the photo and let text overlap it */
  .lightbox-inner { display: block; overflow-y: auto; }
  .lightbox-media img { height: auto; max-height: 55dvh; }
  .lightbox-body { padding: 28px 24px 32px; }
  .lightbox-body h3 { font-size: 1.625rem; }
}

@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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