:root {
  --green-dark: #176B45;
  --green: #2E8B57;
  --orange: #E97824;
  --cream: #F1E7D0;
  --paper: #f6edd9;
  --paper-soft: #fbf6ea;
  --charcoal: #171717;
  --ink: #2a241d;
  --muted: #6a6258;
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 107, 69, 0.22);
  --shadow-soft: 0 12px 30px rgba(48, 34, 21, 0.08);
  --shadow-card: 0 18px 46px rgba(49, 34, 21, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(255,255,255,0.5), transparent 35%), var(--cream);
}
a { color: var(--green-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)); }
.section-title {
  margin: 0 0 0.7rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  color: var(--green-dark);
}
.section-subtitle {
  max-width: 760px;
  color: var(--muted);
  margin: 0 0 2.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
}
.eyebrow::before {
  content: '';
  width: 38px;
  height: 1px;
  background: currentColor;
}
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .quote-box, .timeline-item, .stat-card, .admin-panel, .form-card {
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.card { overflow: hidden; }
.card-body, .form-card, .admin-panel { padding: 1.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(233, 120, 36, 0.12);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 12px 24px rgba(23, 107, 69, 0.18);
}
.btn:hover { transform: translateY(-2px); }
.btn.secondary { background: var(--orange); box-shadow: 0 12px 24px rgba(233, 120, 36, 0.18); }
.btn.ghost { background: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.8); color: var(--charcoal); box-shadow: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-top: 0.5rem;
}
.header-right {
  position: absolute;
  top: 0.55rem;
  right: 1rem;
  z-index: 130;
  display: flex;
  align-items: flex-start;
}
.site-header.is-scrolled,
.site-header:not(.site-header-home) {
  background: rgba(246, 237, 217, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(64, 45, 27, 0.08);
  border-color: rgba(23, 23, 23, 0.08);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 118px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: min(260px, 32vw);
  max-height: 124px;
  object-fit: contain;
}
.nav-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.brand-logo-secondary {
  display: block;
  width: auto;
  max-width: min(120px, 12vw);
  max-height: 74px;
  object-fit: contain;
  justify-self: end;
}
.header-gadget {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  min-width: max-content;
}
.gadget-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.gadget-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gadget-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green-dark);
}
.main-nav { display: flex; flex-wrap: wrap; gap: 1.05rem; align-items: center; justify-content: center; }
.main-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  padding-bottom: 0.25rem;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--green-dark), var(--orange));
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
}
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241,231,208,0.16), rgba(241,231,208,0.38)), var(--hero-image, linear-gradient(135deg, rgba(46,139,87,0.22), rgba(233,120,36,0.14)));
  background-size: cover;
  background-position: center;
  filter: sepia(0.1) saturate(0.92) contrast(0.96);
  transform: scale(1.02);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241,231,208,0.94) 0%, rgba(241,231,208,0.72) 42%, rgba(241,231,208,0.42) 68%, rgba(241,231,208,0.2) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="2" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.04"/></svg>');
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}
.hero-eyebrow-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  border-radius: 999px;
  background: transparent;
  border: 2px solid rgba(23, 107, 69, 0.78);
  box-shadow: none;
  color: var(--green-dark);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.1em;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-eyebrow-strong::before,
.hero-eyebrow-strong::after {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1.1rem 0 1.3rem;
  color: var(--muted);
  font-weight: 600;
}
.hero p.lead {
  margin: 0;
  max-width: 700px;
  color: rgba(23, 23, 23, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.memory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
}
.memory-copy p { line-height: 1.9; color: var(--ink); text-align: justify; }
.photo-print {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  padding: 1rem 1rem 1.35rem;
  background: #fffdf9;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(62, 42, 26, 0.16);
  border: 1px solid rgba(0,0,0,0.08);
  transform: rotate(-1.8deg);
}
.photo-print img, .photo-print .photo-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(46,139,87,0.16), rgba(233,120,36,0.18));
}
.featured-rotator-item {
  display: none;
}
.featured-rotator-item.is-active {
  display: block;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}
.photo-print figcaption {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
  min-height: 2.6rem;
}
.home-timeline {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.42);
}
.timeline-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.8rem;
  align-items: start;
}
.timeline-preview-item {
  position: relative;
  text-align: center;
  padding-top: 0.2rem;
}
.timeline-preview-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.1rem;
  left: calc(50% + 14px);
  width: calc(100% - 10px);
  height: 2px;
  background: rgba(23, 23, 23, 0.12);
}
.timeline-preview-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
}
.timeline-preview-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0.75rem auto 0.8rem;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(23,23,23,0.14);
}
.timeline-preview-label { color: var(--muted); font-size: 0.88rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.chapter-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.74));
}
.chapter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--chapter-image, linear-gradient(135deg, rgba(46,139,87,0.24), rgba(233,120,36,0.18)));
  background-size: cover;
  background-position: center;
  filter: sepia(0.12) saturate(0.95);
  transform: scale(1.03);
  transition: transform 0.5s ease;
}
.chapter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,23,23,0.06), rgba(23,23,23,0.58));
}
.chapter-card:hover::before { transform: scale(1.08); }
.chapter-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.6rem;
  color: #fff;
}
.chapter-content h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
}
.chapter-content p { margin: 0; line-height: 1.7; color: rgba(255,255,255,0.88); }
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 220px;
  gap: 1rem;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, rgba(46,139,87,0.2), rgba(233,120,36,0.14));
}
.mosaic-item:nth-child(1) { grid-row: span 2; }
.mosaic-item:nth-child(4) { grid-column: span 2; }
.mosaic-item button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.mosaic-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(23,23,23,0.8));
  color: #fff;
}
.mosaic-overlay strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.mosaic-overlay span { display: block; color: rgba(255,255,255,0.82); font-size: 0.9rem; }
.mosaic-item:hover img { transform: scale(1.06); }
.gallery-page {
  padding-top: 4rem;
}
.gallery-shell {
  position: relative;
  padding: 2rem 2rem 2.4rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(233,120,36,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(23,107,69,0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.18));
  border: 1px solid rgba(23,107,69,0.08);
  box-shadow: 0 18px 48px rgba(52, 35, 22, 0.08);
  overflow: hidden;
}
.gallery-shell > * {
  position: relative;
  z-index: 1;
}
.gallery-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}
.gallery-decor-left {
  width: 240px;
  height: 240px;
  left: -90px;
  top: 70px;
  background: radial-gradient(circle, rgba(233,120,36,0.18) 0, rgba(233,120,36,0.05) 48%, transparent 72%);
}
.gallery-decor-right {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 20px;
  background: radial-gradient(circle, rgba(23,107,69,0.16) 0, rgba(23,107,69,0.05) 46%, transparent 70%);
}
.gallery-album-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.7rem 0 2.1rem;
}
.gallery-album-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(23,107,69,0.12);
  box-shadow: 0 10px 24px rgba(52, 35, 22, 0.08);
  cursor: pointer;
  color: var(--ink);
}
.gallery-album-tab.is-active {
  background: linear-gradient(135deg, rgba(23,107,69,0.96), rgba(46,139,87,0.96));
  color: #fff;
}
.gallery-album-tab.is-active .badge {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.gallery-thumb-card {
  position: relative;
}
.gallery-thumb-card.is-hidden {
  display: none;
}
.gallery-thumb-button {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(52, 35, 22, 0.12);
  background: rgba(255,255,255,0.55);
}
.gallery-thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.35s ease;
}
.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(23,23,23,0.05), rgba(23,23,23,0.8));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(12px);
}
.gallery-thumb-year {
  display: inline-block;
  margin-bottom: 0.1rem;
  color: #ffd7bc;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-thumb-overlay strong {
  font-size: 1.02rem;
  line-height: 1.25;
}
.gallery-thumb-overlay span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
}
.gallery-thumb-icon {
  margin-top: 0.35rem;
  color: #fff3e8 !important;
  font-weight: 700;
}
.gallery-thumb-button:hover .gallery-thumb-image,
.gallery-thumb-button:focus-visible .gallery-thumb-image {
  transform: scale(1.08);
  filter: brightness(0.78);
}
.gallery-thumb-button:hover .gallery-thumb-overlay,
.gallery-thumb-button:focus-visible .gallery-thumb-overlay {
  opacity: 1;
  transform: translateY(0);
}
.gallery-viewer[hidden] { display: none !important; }
.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10,10,10,0.96);
}
.gallery-viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
.gallery-viewer-media {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 2rem 4.8rem 1rem;
}
.gallery-viewer-frame {
  position: relative;
  width: min(96vw, 1500px);
  height: min(82vh, 980px);
  overflow: hidden;
  border-radius: 22px;
  background: #0f0f0f;
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
}
.gallery-viewer-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.35s ease, filter 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-film-grain,
.gallery-film-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gallery-film-grain {
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.18) 0 1px, transparent 1px);
  background-size: 11px 11px, 13px 13px, 17px 17px;
}
.gallery-film-vignette {
  background: radial-gradient(circle at center, transparent 52%, rgba(0,0,0,0.38) 100%);
}
.gallery-viewer-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 2rem 1.6rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.gallery-viewer-counter {
  margin-bottom: 0.45rem;
  color: #ffd7bc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.gallery-viewer-info h2 {
  margin: 0 0 0.35rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}
.gallery-viewer-meta {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.gallery-viewer-info p {
  margin: 0;
  max-width: 880px;
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}
.gallery-viewer-nav,
.gallery-viewer-close,
.gallery-control {
  border: 0;
  cursor: pointer;
}
.gallery-viewer-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  backdrop-filter: blur(10px);
}
.gallery-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  backdrop-filter: blur(10px);
}
.gallery-viewer-nav.prev { left: 1rem; }
.gallery-viewer-nav.next { right: 1rem; }
.gallery-viewer-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1rem 1.4rem;
}
.gallery-control {
  min-width: 146px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
}
.gallery-viewer-nav:hover,
.gallery-viewer-close:hover,
.gallery-control:hover {
  background: rgba(23,107,69,0.8);
}
body.gallery-viewer-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
}
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.quote-box { padding: 1.5rem; }
.quote-box p { line-height: 1.8; }
.site-footer {
  padding: 3.5rem 0;
  background: var(--charcoal);
  color: rgba(255,255,255,0.76);
}
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
}
.footer-credit {
  margin-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(23, 23, 23, 0.9);
}
.lightbox-panel {
  width: min(1120px, 100%);
}
.lightbox-paper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(180deg, #fffdf8, #f4ead7);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  background: #ede1c8;
}
.lightbox-notes {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.5rem;
}
.lightbox-meta {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.lightbox-title {
  margin: 0 0 0.8rem;
  color: var(--green-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-caption {
  margin-top: 0;
  max-width: none;
  text-align: left;
  color: var(--ink);
  line-height: 1.9;
}
input, textarea, select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(23,23,23,0.16);
  background: white;
}
label { display: block; margin-bottom: 0.45rem; font-weight: 600; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flash { padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1rem; }
.flash.error { background: rgba(200, 55, 55, 0.12); color: #7a1d1d; }
.flash.success { background: rgba(23,107,69,0.12); color: var(--green-dark); }
.search-box { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.editor-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.editor-tool {
  border: 1px solid rgba(23,107,69,0.16);
  background: rgba(255,255,255,0.9);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.editor-tool[data-editor-action="bold"] { font-weight: 800; }
.editor-tool[data-editor-action="italic"] { font-style: italic; }
.editor-tool[data-editor-action="color-green"] { color: var(--green-dark); }
.editor-tool[data-editor-action="color-orange"] { color: var(--orange); }
.editor-tool[data-editor-action="color-charcoal"] { color: var(--charcoal); }
.editor-textarea {
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-family: Consolas, 'Courier New', monospace;
}
.editor-help {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.story-content {
  padding: 2rem 2.2rem;
  max-width: 100%;
}
.story-content h3 {
  margin: 1.7rem 0 0.7rem;
  color: var(--green-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}
.story-content h3:first-child { margin-top: 0; }
.story-content p {
  margin: 0 0 1.25rem;
  line-height: 2;
  color: var(--ink);
  font-size: 1.08rem;
  max-width: none;
  text-align: justify;
}
.story-content p:last-child { margin-bottom: 0; }
.story-content hr {
  border: 0;
  border-top: 1px solid rgba(23,107,69,0.22);
  margin: 1.6rem 0;
}
.story-content strong,
.story-content b { font-weight: 700; }
.story-content em,
.story-content i { font-style: italic; }
.story-content .story-green { color: var(--green-dark); }
.story-content .story-orange { color: var(--orange); }
.story-content .story-charcoal { color: var(--charcoal); }
.contribute-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.approved-block {
  margin-top: 0.8rem;
}
.contribution-card {
  padding: 1.6rem;
}
.contribution-card h3 {
  margin: 0.8rem 0 0.7rem;
  color: var(--green-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}
.contribution-card p {
  margin: 0;
  line-height: 1.9;
}
.contribution-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.contribution-file {
  margin-top: 1.2rem;
}
.contribution-image-button {
  all: unset;
  display: block;
  cursor: pointer;
}
.contribution-thumb {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.photo-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-card button { all: unset; cursor: pointer; display: block; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0.7rem; width: 2px; background: linear-gradient(var(--green-dark), var(--orange)); }
.timeline-item { position: relative; padding: 1.5rem; margin-bottom: 1.25rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.68rem; top: 1.75rem; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--green-dark); }
.admin-body { background: #efe6d7; }
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--charcoal); color: white; padding: 1.5rem; }
.admin-sidebar nav { display: grid; gap: 0.7rem; margin-top: 1rem; }
.admin-sidebar nav a { color: rgba(255,255,255,0.78); }
.admin-sidebar nav a:hover { color: var(--orange); }
.admin-content { padding: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat-card { padding: 1.5rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(23,23,23,0.18);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255,255,255,0.36);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1200px) {
  .container { width: min(1120px, calc(100% - 2rem)); }
  .nav-wrap { min-height: 104px; }
  .brand-logo { max-width: min(220px, 28vw); max-height: 102px; }
  .brand-logo-secondary { max-width: min(96px, 10vw); max-height: 60px; }
  .header-gadget { display: none; }
  .main-nav { gap: 0.8rem; }
  .main-nav a { font-size: 0.9rem; }
  .hero-content { width: min(760px, 100%); }
  .hero-eyebrow-strong { font-size: 0.98rem; letter-spacing: 0.14em; padding: 0.75rem 1rem; }
  .chapter-card { min-height: 280px; }
}
@media (max-width: 1100px) {
  .memory-intro { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
  .chapter-grid,
  .quote-grid,
  .grid-3,
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 240px 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .memory-intro,
  .footer-grid,
  .form-grid,
  .grid-2,
  .lightbox-paper { grid-template-columns: 1fr; }
  .chapter-grid,
  .quote-grid,
  .grid-3,
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 220px 1fr; }
  .admin-content { padding: 1.5rem; }
  .mosaic-grid { grid-template-columns: 1fr 1fr; }
  .mosaic-item:nth-child(1) { grid-row: span 1; }
  .mosaic-item:nth-child(4) { grid-column: span 2; }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-viewer-media { padding-inline: 2rem; }
  .gallery-viewer-frame { height: min(74vh, 760px); }
  .section { padding: 4.5rem 0; }
}
@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: auto auto auto;
  }
  .nav-center {
    justify-content: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 108px;
    left: 1rem;
    right: 1rem;
    background: rgba(246, 237, 217, 0.98);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    gap: 0.8rem;
  }
  .main-nav a { padding: 0.25rem 0; }
  .main-nav.open { display: grid; }
  .nav-toggle { display: inline-flex; }
  .brand-logo-secondary { max-width: 72px; max-height: 52px; }
  .header-gadget { display: none; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-content { width: 100%; }
  .hero-eyebrow-strong { font-size: 0.92rem; letter-spacing: 0.12em; padding: 0.7rem 0.9rem; gap: 0.6rem; white-space: normal; text-align: center; line-height: 1.45; }
  .hero::after {
    background: linear-gradient(180deg, rgba(241,231,208,0.9) 0%, rgba(241,231,208,0.86) 55%, rgba(241,231,208,0.7) 100%);
  }
  .contribute-layout { grid-template-columns: 1fr; }
  .memory-copy p, .story-content p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 820px) {
  .chapter-grid,
  .quote-grid,
  .grid-3,
  .stats-grid,
  .gallery-thumbs { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding-bottom: 1rem; }
  .admin-content { padding: 1.25rem; }
  .gallery-shell { padding: 1.4rem; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3rem); line-height: 0.98; }
  .hero-brand-row { flex-direction: row; align-items: flex-end; gap: 0.75rem; }
  .hero-group2 { gap: 0.18rem; margin-bottom: 0.05rem; }
  .hero-group2-label { font-size: 0.95rem; }
  .hero-side-logo { width: 112px; transform: scale(1.18); margin-bottom: 0; }
  .hero p.lead { font-size: 1.02rem; line-height: 1.7; }
  .hero-note { font-size: 0.9rem; }
  .hero-kicker { gap: 0.35rem 0.7rem; font-size: 0.92rem; }
  .hero-actions { gap: 0.8rem; }
  .hero .btn { width: 100%; }
  .nav-wrap { min-height: 94px; grid-template-columns: auto auto auto; }
  .brand-logo { max-width: 150px; max-height: 72px; }
  .brand-logo-secondary { max-width: 56px; max-height: 40px; }
  .mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic-item:nth-child(4) { grid-column: span 1; }
  .timeline-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-preview-item:not(:last-child)::after { display: none; }
  .search-box { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .gallery-thumb-image { aspect-ratio: 1 / 1; }
  .gallery-viewer-media { padding: 1rem 0.8rem 0.5rem; }
  .gallery-viewer-frame { width: 100%; height: min(76vh, 620px); border-radius: 16px; }
  .gallery-viewer-info { padding: 1.5rem 1rem 1rem; }
  .gallery-viewer-controls { padding-bottom: 1rem; gap: 0.55rem; }
  .gallery-control { min-width: 0; padding: 0.8rem 1rem; font-size: 0.92rem; }
  .gallery-viewer-nav { width: 48px; height: 48px; }
  .lightbox { padding: 1rem; }
  .lightbox-paper { padding: 1rem; }
  .section-title { line-height: 1; }
}
@media (max-width: 560px) {
  .container { width: min(100%, calc(100% - 1.25rem)); }
  .section { padding: 3.6rem 0; }
  .site-header { position: relative; }
  .nav-wrap { min-height: 84px; gap: 0.45rem; grid-template-columns: auto auto auto; }
  .brand-logo { max-width: 118px; max-height: 58px; }
  .brand-logo-secondary { max-width: 42px; max-height: 30px; }
  .main-nav { left: 0.65rem; right: 0.65rem; }
  .hero { padding: 5rem 0 3rem; }
  .hero-content { width: 100%; }
  .hero-eyebrow-strong {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    gap: 0.45rem;
    text-align: center;
    line-height: 1.45;
    white-space: normal;
    border-radius: 22px;
  }
  .hero-eyebrow-strong::before,
  .hero-eyebrow-strong::after {
    display: none;
  }
  .hero-kicker { font-size: 0.88rem; }
  .hero p.lead { font-size: 0.98rem; }
  .hero-note { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
  .eyebrow::before { width: 22px; }
  .section-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.05; }
  .section-subtitle { font-size: 0.98rem; line-height: 1.65; }
  .photo-print { max-width: 320px; transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wrap { grid-template-columns: auto 1fr auto; }
  .nav-center { justify-content: flex-end; }
  .main-nav { top: calc(100% + 0.25rem); }
  .chapter-card { min-height: 240px; }
  .chapter-content { padding: 1.2rem; }
  .chapter-content h3 { font-size: 1.8rem; }
  .mosaic-grid { grid-auto-rows: 200px; }
  .home-timeline { padding: 1.2rem; }
  .timeline-preview-year { font-size: 1.5rem; }
  .quote-box, .card-body, .form-card, .admin-panel, .contribution-card { padding: 1.2rem; }
  .story-content { padding: 1.4rem 1.2rem; }
  .story-content p { font-size: 1rem; line-height: 1.85; }
  .story-content h3 { font-size: 1.6rem; }
  .contribution-meta { flex-wrap: wrap; }
  .lightbox img { max-height: 55vh; }
  .lightbox-title { font-size: 1.6rem; }
  .lightbox-close { top: 0.6rem; right: 0.6rem; }
  .gallery-album-tabs { gap: 0.5rem; }
  .gallery-album-tab { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
  th, td { padding: 0.6rem; font-size: 0.9rem; }
}
