@import url('fonts.css');

/* ==========================================================================
   IPC Rehoboth Karthikappally — Design System
   Palette derived from the church logo (red + green emblem), deepened for
   warmth: crimson anchor, cream ground, gold accent, leaf green sparingly.
   ========================================================================== */

:root {
  /* Colour */
  --burgundy:      #8e1b1b;
  --burgundy-deep: #6e1414;
  --burgundy-tint: #a52f2f;
  --green:         #1e6b3c;
  --green-deep:    #14522c;
  --gold:          #c8922a;
  --gold-soft:     #dcb567;
  --gold-tint:     #f0e2c4;
  --cream:         #fbf7f0;
  --cream-alt:     #f4ecde;
  --card:          #fffdf9;
  --ink:           #2a2420;
  --ink-soft:      #5c534b;
  --wood:          #271c15;   /* footer: warm near-black brown */
  --line:          #e6dcc9;
  --line-strong:   #d8cbb1;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(110, 20, 20, 0.06), 0 4px 14px rgba(110, 20, 20, 0.05);
  --shadow-md: 0 6px 28px rgba(110, 20, 20, 0.10);
}

/* ------- Reset / base ------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--burgundy-deep);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
p { margin: 0 0 1.1em; }

a { color: var(--burgundy); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-tint); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--burgundy-deep); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------- Layout helpers ------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2.5rem); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--cream-alt); }
.section--burgundy { background: var(--burgundy-deep); color: #f6ead9; }
.section--burgundy h2, .section--burgundy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.section--burgundy .eyebrow { color: var(--gold-soft); }

/* Decorative gold rule with flame motif */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin: 1.4rem 0;
}
.rule::before, .rule::after {
  content: ""; height: 1px; width: min(80px, 18vw);
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.rule::after { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.rule .flame { width: 16px; height: 22px; color: var(--gold); flex: none; }
.center .rule { margin-inline: auto; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 50px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--burgundy-deep); }
.btn--primary:hover { background: var(--gold-soft); color: var(--burgundy-deep); }
.btn--outline { border-color: currentColor; color: var(--cream); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--burgundy { background: var(--burgundy); color: #fff; }
.btn--burgundy:hover { background: var(--burgundy-tint); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--burgundy); background: var(--card); }
.btn--ghost:hover { border-color: var(--gold); color: var(--burgundy); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.topbar {
  background: var(--burgundy-deep);
  color: #f0dcc4;
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  align-items: center; justify-content: center;
  padding-block: 0.4rem;
}
.topbar a { color: #f0dcc4; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: 0.85; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(110,20,20,0.04);
}
/* Note: avoid filter/transform/backdrop-filter on this element — they would
   create a containing block and break the fixed-position mobile nav panel. */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--burgundy-deep); }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--burgundy-deep); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--card); cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--burgundy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem; }
.main-nav a {
  display: block; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.98rem; padding: 0.55rem 0.85rem; border-radius: var(--radius);
  position: relative;
}
.main-nav a:hover { color: var(--burgundy); background: var(--cream-alt); }
.main-nav a[aria-current="page"] { color: var(--burgundy); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-cta { margin-left: 0.4rem; }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    background: var(--cream); box-shadow: -8px 0 40px rgba(110,20,20,0.18);
    transform: translateX(100%); transition: transform .28s ease;
    padding: 5rem 1.5rem 2rem; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { font-size: 1.15rem; padding: 0.8rem 0.9rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--cream-alt); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(42,36,32,0.45);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #f7ecda; text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(200,146,42,0.22), transparent 60%),
    linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-deep) 60%, #4d0e0e 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,0.04) 0 2px, transparent 3px);
  opacity: 0.6; pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 12vw, 8rem); }

/* Photographic hero (homepage): church photo under a crimson veil, slow drift */
.hero--photo .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  animation: hero-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
.hero--photo .hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(200,146,42,0.14), transparent 60%),
    linear-gradient(175deg, rgba(110,20,20,0.78) 0%, rgba(85,15,15,0.82) 55%, rgba(58,12,15,0.92) 100%);
}
@keyframes hero-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.2%, -1.4%); }
}

/* Staggered entrance for hero content */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .wrap > * { animation: hero-rise 0.7s cubic-bezier(0.22, 0.7, 0.35, 1) both; }
.hero .wrap > :nth-child(1) { animation-delay: 0.05s; }
.hero .wrap > :nth-child(2) { animation-delay: 0.18s; }
.hero .wrap > :nth-child(3) { animation-delay: 0.32s; }
.hero .wrap > :nth-child(4) { animation-delay: 0.46s; }
.hero .wrap > :nth-child(5) { animation-delay: 0.62s; }
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero .verse {
  font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-style: italic; line-height: 1.45; color: #fbe9d3;
  max-width: 32ch; margin: 0.6em auto 0.2em;
}
.hero .verse-ref { display: block; font-style: normal; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 0.9rem; }
.hero .hero-quote { color: #ecd9c0; font-size: 1.1rem; max-width: 46ch; margin: 1.6rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }
.hero .hero-logo {
  width: 84px; height: 84px; margin: 0 auto 1.4rem;
  background: #fff; border-radius: 50%; padding: 9px; object-fit: contain;
  box-shadow: 0 0 0 3px rgba(220,181,103,0.45), 0 6px 24px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card--accent { border-top: 3px solid var(--gold); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--gold-tint); color: var(--burgundy);
}
.icon-badge svg { width: 26px; height: 26px; }

/* Welcome / two-column feature */
.split { display: grid; gap: var(--gap); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--reverse > :first-child { order: 2; } }

.figure-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-strong); background: var(--cream-alt);
}
.placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  color: var(--burgundy); padding: 2rem;
  background:
    repeating-linear-gradient(45deg, rgba(200,146,42,0.06) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, var(--cream-alt), var(--gold-tint));
}
.placeholder svg { width: 46px; height: 46px; opacity: 0.7; margin-bottom: 0.6rem; }
.placeholder span { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Verse callout band */
.callout {
  text-align: center; background: var(--cream-alt);
  border-block: 1px solid var(--line);
}
.callout blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.5; color: var(--burgundy);
  max-width: 30ch; margin-inline: auto;
}
.callout cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 1.2rem; }

/* ==========================================================================
   Services at a glance / table
   ========================================================================== */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.15rem 1.3rem; box-shadow: var(--shadow-sm);
}
.svc-card .day { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); font-weight: 600; }
.svc-card .name { font-family: var(--serif); font-size: 1.25rem; color: var(--burgundy-deep); margin: 0.15rem 0 0.35rem; }
.svc-card .time { color: var(--ink-soft); font-weight: 600; }

.schedule {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule caption { text-align: left; padding: 0 0 1rem; color: var(--ink-soft); }
.schedule th, .schedule td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.schedule thead th { background: var(--burgundy-deep); color: #f6ead9; font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.schedule tbody tr:last-child td { border-bottom: none; }
.schedule tbody tr:nth-child(even) { background: rgba(244,236,222,0.55); }
.schedule .svc-name { font-family: var(--serif); font-size: 1.15rem; color: var(--burgundy-deep); font-weight: 600; }
.schedule td[data-label="Time"] { white-space: nowrap; font-weight: 600; color: var(--ink); }

@media (max-width: 620px) {
  .schedule, .schedule caption, .schedule thead, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; }
  .schedule caption { width: 100%; }
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; padding: 0.4rem 0.2rem; }
  .schedule td { border: none; padding: 0.35rem 1rem; display: flex; justify-content: space-between; gap: 1rem; }
  .schedule td::before { content: attr(data-label); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-weight: 600; }
  .schedule td[data-label="Service"]::before { align-self: center; }
}

/* ==========================================================================
   About / patrons
   ========================================================================== */
.prose { max-width: var(--wrap-narrow); }
.prose p { font-size: 1.12rem; }
.prose h2 { margin-top: 2.2rem; }

.pastor-card { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .pastor-card { grid-template-columns: 300px 1fr; align-items: start; } }
.fact-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.fact-list li { padding-left: 1.6rem; position: relative; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

.patrons { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.patron {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.patron h3 { margin-bottom: 0.1rem; font-size: 1.3rem; }
.patron .years { display: block; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.7rem; }
.patron p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Patron portrait gallery + lightbox */
/* 10 patrons: even rows at every size — 2 across on phones, 5 across on desktop */
.pgallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) and (max-width: 899px) { .pgallery { gap: 0.8rem; } }
@media (min-width: 900px) { .pgallery { grid-template-columns: repeat(5, 1fr); } }
.pgallery > a {
  text-decoration: none; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 0.8rem 1rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pgallery > a:hover, .pgallery > a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.avatar {
  display: block; width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 0.7rem; overflow: hidden;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--gold);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph-portrait {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(150deg, #e8dcc4, #d9c49a);
  color: var(--burgundy); font-family: var(--serif); font-weight: 700; font-size: 1.7rem;
}
.pgallery .pname { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--burgundy-deep); line-height: 1.2; margin-top: 0.2rem; }
.pgallery .years, .lb-years { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 0.3rem; }
.pgallery .hint { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.45rem; }

.lightbox { position: fixed; inset: 0; display: none; place-items: center; z-index: 300; padding: 1.2rem; }
.lightbox:target { display: grid; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 32, 0.72); }
.lb-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  max-width: 34rem; max-height: 86vh; overflow-y: auto; padding: 2rem;
  box-shadow: var(--shadow-md); text-align: center;
}
.lb-card .avatar { width: 130px; height: 130px; margin-bottom: 1rem; }
.lb-card .ph-portrait { font-size: 2.6rem; }
.lb-card h3 { margin-bottom: 0.1rem; }
.lb-years { margin: 0.2rem 0 1rem; }
.lb-card p { text-align: left; color: var(--ink-soft); margin-bottom: 0.8em; }
.lb-card p:last-child { margin-bottom: 0; }
.lb-close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream-alt); color: var(--burgundy); text-decoration: none;
  font-size: 1.3rem; font-weight: 600;
}
.lb-close:hover { background: var(--gold-tint); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 0.4em; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); }
.timeline .yr { font-family: var(--serif); font-weight: 700; color: var(--burgundy); font-size: 1.15rem; }

/* ==========================================================================
   Gallery — albums, masonry, lightbox
   ========================================================================== */

/* Album covers */
.albums { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.albums[hidden] { display: none; }
.album-cover {
  display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  position: relative; transition: transform .18s ease, box-shadow .18s ease;
}
.album-cover:hover, .album-cover:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.album-cover .cover-img { position: relative; aspect-ratio: 3 / 2; display: block; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover .cover-ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--burgundy);
  background:
    repeating-linear-gradient(45deg, rgba(200,146,42,0.06) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, var(--cream-alt), var(--gold-tint));
}
.album-cover .cover-ph svg { width: 44px; height: 44px; opacity: 0.65; }
.album-cover .cover-meta {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(39,28,21,0.86)); color: #fff;
}
.album-cover .cover-ph + .cover-meta {
  position: static; background: none; color: inherit; padding: 0.9rem 1.1rem 1.1rem;
}
.album-cover .cover-title { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.album-cover .cover-ph + .cover-meta .cover-title { color: var(--burgundy-deep); }
.album-cover .cover-count { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-soft); margin-top: 0.3rem; }
.album-cover .cover-ph + .cover-meta .cover-count { color: var(--ink-soft); }
.album-cover .cover-badge {
  position: absolute; top: 0.7rem; right: 0.7rem; background: rgba(251,247,240,0.92);
  color: var(--burgundy); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 50px;
}

/* Inside an album */
.album-view[hidden] { display: none; }
.album-back {
  display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--burgundy); padding: 0.3rem 0;
}
.album-back:hover { color: var(--burgundy-deep); }
.album-title { margin: 0.3rem 0 0; }
.album-photos { column-count: 3; column-gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 820px) { .album-photos { column-count: 2; } }
@media (max-width: 520px) { .album-photos { column-count: 1; } }
.gfig {
  margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative; display: block; width: 100%; border: 0; padding: 0;
  background: var(--cream-alt); cursor: pointer;
}
.gfig img { width: 100%; display: block; }
.gcap {
  position: absolute; inset: auto 0 0 0; padding: 0.7rem 0.9rem;
  background: linear-gradient(transparent, rgba(39,28,21,0.82)); color: #fff;
  font-size: 0.9rem; font-weight: 600; text-align: left;
}
.album-empty {
  margin-top: 1.6rem; padding: 3rem 1.5rem; text-align: center; color: var(--ink-soft);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--card);
}
.album-empty svg { width: 40px; height: 40px; color: var(--gold); opacity: 0.8; margin-bottom: 0.8rem; }

/* Lightbox (shared pattern — also used by patrons via .lb-* above) */
.lightbox { position: fixed; inset: 0; display: none; place-items: center; z-index: 300; padding: 1.2rem; }
.lightbox.open { display: grid; }
.lightbox .lb-backdrop { position: absolute; inset: 0; background: rgba(39,28,21,0.85); border: 0; cursor: pointer; }
.lightbox .lb-shell { position: relative; max-width: min(92vw, 900px); }
.lightbox .lb-shell img { max-width: 100%; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; margin: 0 auto; }
.lightbox .lb-cap { text-align: center; color: var(--gold-soft); font-family: var(--serif); font-size: 1.3rem; margin: 0.7rem 0 0; }
.lightbox .lb-x {
  position: absolute; top: -0.6rem; right: -0.6rem; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--burgundy); border: 0; cursor: pointer;
  font-size: 1.4rem; font-weight: 600; box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Contact / form
   ========================================================================== */
.contact-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 840px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .icon-badge { flex: none; margin: 0; width: 46px; height: 46px; }
.info-list h3 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.info-list a { font-weight: 600; }
.info-list p { margin: 0; color: var(--ink-soft); }

form.church-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--burgundy-deep); font-size: 0.95rem; }
.field .req { color: var(--burgundy); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.map-embed { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--wood);
  color: #e6dac6;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-top: 1px solid rgba(220, 181, 103, 0.35);
}
.site-footer a { color: #e6dac6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-soft); }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.site-footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--gold-soft); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.4rem; font-size: 0.85rem; color: #b3a28b; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; }

/* ------- Utilities ------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.tag { display: inline-block; background: var(--gold-tint); color: var(--burgundy); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 50px; }

/* Reveal-on-scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
