/* =====================================================
   CHURCH WEBSITE — STYLESHEET
   Classic & Traditional Design
   ===================================================== */

/* ── Custom Properties ── */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111b30;
  --navy-light: #243460;
  --gold:       #c9a428;
  --gold-light: #e0bb4a;
  --gold-dark:  #a0831e;
  --cream:      #f0e8d8;
  --cream-dark: #ddd0bb;
  --white:      #faf7f2;
  --text:       #2d2416;
  --text-muted: #6b5e4a;
  --border:     rgba(201, 164, 40, 0.3);

  /* Unified warm parchment tints — all from the same ivory/cream family */
  --tint-schedule:  #faf7f2;   /* lighter ivory   — Mass Schedule  */
  --tint-announce:  #f0e8d8;   /* warm parchment  — Announcements  */
  --tint-events:    #faf7f2;   /* lighter ivory   — Events         */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  --radius:    6px;
  --shadow-sm: 0 2px 8px rgba(26,39,68,.08);
  --shadow-md: 0 4px 20px rgba(26,39,68,.14);
  --shadow-lg: 0 8px 40px rgba(26,39,68,.18);

  --transition: 0.3s ease;
  --topbar-height: 34px;
}

/* ── Skip-to-content link (keyboard / screen reader users) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: .95rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ── Visually hidden (screen readers only) ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
}

ul { list-style: none; }

address { font-style: normal; }

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }

.btn-large { padding: .9rem 2.4rem; font-size: 1rem; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-cream  { background: var(--cream); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-left {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: .5rem 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: .4rem;
}

.ornament {
  color: var(--gold);
  letter-spacing: .5rem;
  font-size: .9rem;
  margin-bottom: .4rem;
}

.ornament-light { color: var(--gold-light); }

.text-light       { color: var(--cream) !important; }
.text-light-muted { color: rgba(248,244,237,.65) !important; }


/* ══════════════════════════════════════════
   TOP UTILITY BAR
══════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--topbar-height);
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,164,40,.25);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Social icons, left side */
.topbar-social {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.topbar-social-link {
  display: flex;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}
.topbar-social-link:hover { color: var(--gold-light); }
.topbar-social-link svg { width: 15px; height: 15px; }

/* Donate button + hamburger, right side */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-donate-btn {
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  transition: background var(--transition);
}
.topbar-donate-btn:hover { background: var(--gold-light); }

.topbar-hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: 1px solid rgba(201,164,40,.35);
  border-radius: 4px;
  cursor: pointer;
}
.topbar-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.topbar-hamburger:hover { border-color: var(--gold); }
.topbar-hamburger:hover span { background: var(--gold-light); }

/* ══════════════════════════════════════════
   STICKY BAR — slides in on scroll
══════════════════════════════════════════ */
.sticky-bar {
  position: fixed;
  top: var(--topbar-height);
  left: 0; right: 0;
  z-index: 999;
  height: 62px;
  background: var(--navy);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  transform: translateY(-100%);
  transition: transform .3s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 100%;
}

.sticky-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.sticky-brand:hover .sticky-name { color: var(--gold-light); }

.sticky-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,164,40,.4);
  flex-shrink: 0;
}

.sticky-name-group {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

.sticky-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  transition: color var(--transition);
}

.sticky-name-sub {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sticky-nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.sticky-nav-links a {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem .65rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.sticky-nav-links a:hover { color: var(--gold-light); background: rgba(255,255,255,.07); }

.sticky-nav-donate {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  padding: .35rem .8rem !important;
}
.sticky-nav-donate:hover { background: var(--gold-light) !important; color: var(--navy-dark) !important; }

/* ══════════════════════════════════════════
   HERO HEADER — overlaid on church photo
══════════════════════════════════════════ */
.hero-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  background: linear-gradient(to bottom, rgba(10,16,35,0.82) 0%, transparent 100%);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.hero-brand:hover .hero-name { color: var(--gold-light); }

.hero-logo {
  width: 73px;
  height: 73px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(201,164,40,.5);
  flex-shrink: 0;
}


.hero-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(10,16,35,.55);
  border: 1px solid rgba(201,164,40,.4);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.hero-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hero-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hero-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hero-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav drawer — fixed, constrained to hero-bg column width */
.hero-nav-drawer {
  position: fixed;
  top: calc(var(--topbar-height) + 4.5rem); left: 0;
  width: 65%;
  z-index: 998;
  background: rgba(17,27,48,0.30);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--gold-dark);
  padding: .5rem 1.5rem;
}
.hero-nav-drawer[hidden] { display: none; }
/* When sticky bar is visible, drawer sits below it */
body.sticky-visible .hero-nav-drawer { top: calc(var(--topbar-height) + 62px); }

.hero-nav-drawer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}

.hero-nav-drawer a {
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  display: block;
  transition: color var(--transition), background var(--transition);
}
.hero-nav-drawer a:hover { color: var(--gold-light); background: rgba(255,255,255,.08); }


/* ══════════════════════════════════════════
   HERO — full-width photo, aspect-ratio locked
   to the source image's own proportions (2752×1147)
   so the logo and the entire photo (Mary, angels,
   the people below) are always fully visible —
   scaled proportionally, never cropped, never
   stretched — at any screen width.
══════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 2752 / 1147;
  margin-top: var(--topbar-height);
  border-top: 3px solid var(--gold);
  background:
    url('../images/hero-bg.jpg') center/contain no-repeat,
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

/* ══════════════════════════════════════════
   TAGLINE BAND — full width, directly under the hero
══════════════════════════════════════════ */
.hg-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  background: var(--navy);
  color: #fff;
  padding: .85rem 1.5rem;
  text-align: center;
}

.hg-tagline-icon {
  width: 26px;
  height: auto;
  flex-shrink: 0;
}

.hg-tagline-text {
  font-family: var(--font-body);
  font-size: clamp(.78rem, 1.35vw, 1rem);
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
  margin: 0;
}

/* ══════════════════════════════════════════
   QUICK INFO ROW — Mass Schedule, the three
   join actions, and Contact Us, all in one glance
══════════════════════════════════════════ */
.quick-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
}

/* Gold pill card-header, shared by all three cards */
.qir-pill {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .5rem 1.25rem;
  border-radius: 8px;
  text-align: center;
}
.qir-pill--full { display: block; width: 100%; box-sizing: border-box; }

/* Shared card look for the quick-info row. Add class="qir-card" to any
   new card's outer <div> to pick up this white/gold-border style —
   no CSS edits needed when adding or removing a card; the grid above
   (.quick-info-row, auto-fit columns) reflows on its own. */
.quick-info-row .qir-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem;
}

/* Short one-liner that fills leftover space at the bottom of a card
   so Join Us / Donate match the Mass Schedule card's height */
.qir-footnote {
  margin: auto 0 0;
  padding-top: .9rem;
  font-size: .85rem;
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
}

/* Mass Schedule — pill above, plain rows below (no nested border) */
.quick-info-row .hg-schedule-box {
  border: none;
  border-radius: 0;
  margin-top: 1rem;
  overflow: visible;
}

/* Join Us card — pill above, a row of three plain icon cells below */
.hg-join-cells {
  display: flex;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.quick-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  padding: 1.1rem .6rem;
  background: var(--cream);
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--cream-dark);
  transition: background var(--transition), transform var(--transition);
}
.hg-join-cells .quick-btn:last-child { border-right: none; }
.quick-btn[hidden] { display: none; }
.quick-btn:hover { background: var(--cream-dark); }
.quick-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }

.quick-btn-icon { font-size: 1.7rem; line-height: 1; color: var(--navy-dark); }
.quick-btn-icon .hg-wa-icon { width: 1.7rem; height: 1.7rem; color: #25d366; }
.quick-btn-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--navy-dark);
}

/* Donate card — pill above, QR left / text right */
.hg-donate-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hg-donate-qr {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.hg-donate-text-block {
  min-width: 0;
}
.hg-donate-text-block p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 .35rem;
  overflow-wrap: break-word;
}
.hg-donate-text-block p:last-child { margin-bottom: 0; }

/* Contact Us card — pill above, icon + tap-to-act rows below
   (address opens Google Maps directions, phone calls, email opens mail app) */
.hg-contact-rows {
  margin-top: 1rem;
}

.hg-contact-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .3rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.hg-contact-row:last-child { border-bottom: none; }
.hg-contact-row:hover { color: var(--gold-dark); }

.hg-contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}

.hg-contact-text {
  font-size: .88rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* ══════════════════════════════════════════
   LOWER GRID — Clergy & Calendar (left)
   Announcements & Parish Notices (right)
══════════════════════════════════════════ */
.lower-grid {
  display: flex;
  align-items: stretch;
}

.lg-left {
  flex: 65;
  display: flex;
  flex-direction: column;
}

.lg-right {
  flex: 35;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--gold);
}

/* ── Photo — bottom welcome overlay ── */
.hg-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2.5rem 1.75rem;
  background: linear-gradient(to top,
    rgba(10,16,35,0.88) 0%,
    rgba(10,16,35,0.45) 60%,
    transparent 100%);
  text-align: center;
}

.hg-photo-welcome {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .3rem;
}

.hg-photo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: .3rem;
}

.hg-photo-sub {
  font-family: var(--font-body);
  font-size: clamp(.78rem, 1.1vw, .95rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  letter-spacing: .06rem;
}

/* ── Right col — Mass Schedule ── */
.hg-schedule {
  background: var(--tint-schedule);
  padding: 1.25rem 1.75rem;
}

/* ── Right col — Announcements ── */
.hg-announce {
  background: var(--tint-announce);
  border-top: 1px solid rgba(201,164,40,.25);
  padding: 2rem 1.75rem;
}

/* ── Right col — Parish Posters carousel ── */
.hg-posters {
  background: var(--tint-schedule);
  border-top: 1px solid rgba(201,164,40,.25);
  padding: 1.5rem 1.75rem;
}

/* ── Right col — Donate (always shown, so this column is
   never fully empty when there are no announcements/posters) ── */
.hg-donate-side {
  background: var(--tint-announce);
  border-top: 1px solid rgba(201,164,40,.25);
  padding: 1.75rem 1.75rem 2rem;
}
.hg-donate-side .hg-donate-row { margin-top: 1.25rem; }

/* Carousel */
.poster-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.poster-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.poster-slide {
  flex: 0 0 100%;
  width: 100%;
}

.poster-slide img {
  width: 55%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  margin: 0 auto;
}

.poster-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,39,68,.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.poster-carousel-btn:hover { background: var(--navy); }
.poster-carousel-prev { left: 6px; }
.poster-carousel-next { right: 6px; }

.poster-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: .6rem;
}

.poster-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.poster-dot.active { background: var(--gold); }

/* Lightbox */
.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-lightbox[hidden] { display: none; }

.poster-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,16,35,.88);
}

.poster-lightbox-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 12px;
  width: min(480px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.poster-lightbox-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(26,39,68,.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.poster-lightbox-img {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
}

.poster-lightbox-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.poster-lightbox-date {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .3rem;
}

.poster-lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

.poster-lightbox-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   PARISH CALENDAR
══════════════════════════════════════════ */
.hg-events {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  padding: 1.5rem 1.75rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.cal-nav-btn {
  background: var(--navy);
  color: var(--gold-light);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.cal-nav-btn:hover { background: var(--navy-light); }

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: .75rem;
}

.cal-day-header {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: .35rem 0;
  background: var(--cream);
}

.cal-day {
  min-height: 54px;
  padding: .25rem .2rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition);
  overflow: hidden;
}
.cal-day:hover { background: var(--cream); }
.cal-day--empty { background: transparent; border-color: transparent; cursor: default; pointer-events: none; }

.cal-day-num {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy);
  width: 20px; height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: .1rem;
}

.cal-day--today .cal-day-num {
  background: var(--navy);
  color: var(--gold-light);
}

.cal-day--has-events { background: var(--tint-announce); }
.cal-day--has-events:hover { background: var(--cream-dark); }

.cal-event-pill {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 2px;
  padding: .08rem .25rem;
  margin-bottom: .08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-more {
  display: block;
  font-size: .55rem;
  color: var(--text-muted);
  font-weight: 700;
  padding-left: .15rem;
}

/* ── Day detail panel ── */
.cal-detail {
  background: var(--cream);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin-top: .5rem;
}
.cal-detail[hidden] { display: none; }

.cal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}

.cal-detail-date {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.cal-detail-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: var(--radius);
  line-height: 1;
}
.cal-detail-close:hover { color: var(--text); background: var(--cream-dark); }

.cal-detail-event {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  align-items: baseline;
  padding: .45rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.cal-detail-event:last-of-type { border-bottom: none; }

.cal-detail-event-time {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  flex-shrink: 0;
}

.cal-detail-event-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
}

.cal-detail-event-desc {
  font-size: .8rem;
  color: var(--text-muted);
  width: 100%;
  margin: .1rem 0 0;
}

.cal-detail-none {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: .25rem 0;
}

.cal-readings-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: .85rem 0 .4rem;
  padding-top: .75rem;
  border-top: 1px solid var(--cream-dark);
}

.cal-readings-status {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: .35rem;
}

.cal-reading {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.cal-reading:last-child { border-bottom: none; }

.cal-reading-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold-dark);
}

.cal-reading-ref {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
}

.cal-reading-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: .1rem;
}

.cal-readings-day {
  font-size: .82rem;
  color: var(--navy);
  font-style: italic;
  margin-bottom: .5rem;
}

/* ── Left col — Clergy & Staff ──
   Priest banner (big photo + bio) on top, four portrait cards underneath.
   ≤680px : priest banner stacks (centred), portrait cards go 2 across.
── */
.hg-clergy {
  flex: 0 0 auto;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  padding: 1.6rem 2rem 1.9rem;
}

.hg-clergy .hg-section-title { margin-bottom: .35rem; }

.hg-clergy-subtitle {
  font-size: .85rem;
  color: var(--text-light);
  margin: 0 0 1.1rem;
  font-style: italic;
  text-align: center;
}

.staff-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Priest — big photo on the left, name / role / bio on the right */
.staff-layout .staff-card--featured {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.5rem;
  align-content: center;
  align-items: start;
  text-align: left;
  padding: 1.1rem 1.4rem;
  max-width: none;
  width: auto;
  justify-self: stretch;
  grid-column: unset;
  background: var(--cream);
}

.staff-layout .staff-card--featured .staff-photo-wrap {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 140px;
  height: 140px;
  margin: 0;
}

.staff-layout .staff-card--featured .staff-name,
.staff-layout .staff-card--featured .staff-role,
.staff-layout .staff-card--featured .staff-bio { grid-column: 2; }

.staff-layout .staff-card--featured .staff-name { font-size: 1.3rem; margin: 0 0 .15rem; }
.staff-layout .staff-card--featured .staff-role { font-size: .78rem; margin: 0 0 .55rem; }
.staff-layout .staff-card--featured .staff-bio  { font-size: .92rem; line-height: 1.6; margin: 0; }

/* Staff — four portrait cards: photo on top, name + role centred beneath */
.staff-others {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.staff-card-compact {
  background: var(--cream);
  border-radius: 8px;
  padding: 1rem .6rem .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.staff-card-compact:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.staff-card-compact .staff-photo-wrap {
  width: 104px;
  height: 104px;
  margin: 0 0 .6rem;
  border-width: 3px;
}

.staff-card-compact .staff-name {
  font-size: .92rem;
  line-height: 1.25;
  margin: 0 0 .15rem;
}

.staff-card-compact .staff-role {
  font-size: .7rem;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin: 0;
}

/* Narrower left column (side-by-side tablet layout and phones): banner stacks, cards go 2 across */
@media (max-width: 1000px) {
  .staff-layout { gap: .7rem; }
  .staff-layout .staff-card--featured { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.1rem 1rem 1.2rem; }
  .staff-layout .staff-card--featured .staff-photo-wrap { grid-row: auto; grid-column: 1; width: 120px; height: 120px; margin: 0 0 .65rem; }
  .staff-layout .staff-card--featured .staff-name,
  .staff-layout .staff-card--featured .staff-role,
  .staff-layout .staff-card--featured .staff-bio { grid-column: 1; text-align: center; }
  .staff-layout .staff-card--featured .staff-name { font-size: 1.15rem; }
  .staff-layout .staff-card--featured .staff-bio { font-size: .86rem; }
  .staff-others { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .staff-card-compact { padding: .85rem .4rem .8rem; }
  .staff-card-compact .staff-photo-wrap { width: 96px; height: 96px; }
  .staff-card-compact .staff-name { font-size: .84rem; }
  .staff-card-compact .staff-role { font-size: .68rem; }
}
@media (max-width: 680px) {
  .staff-card-compact .staff-photo-wrap { width: 88px; height: 88px; }
  .staff-card-compact .staff-name { font-size: .84rem; }
  .staff-card-compact .staff-role { font-size: .66rem; }
}

/* Donate card styling now lives with the quick-info-row rules above (.hg-donate-row, .hg-donate-qr, .hg-donate-text-block) */

/* Standalone donate section — shown on mobile only */
.donate-mobile { display: none; }

/* ── Shared: section title inside cells ── */
.hg-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hg-section-title h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--navy);
  margin: .3rem 0 0;
  line-height: 1.2;
}

.hg-ornament {
  display: block;
  color: var(--gold);
  letter-spacing: .4rem;
  font-size: .75rem;
}

/* ── Mass schedule box ── */
.hg-schedule-box {
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .25rem;
}

/* ── Mass schedule rows ── */
.hg-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--cream-dark);
}

.hg-row:last-child { border-bottom: none; }

.hg-row-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.hg-row-label em {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.hg-row-time {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.hg-row-time-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  flex-shrink: 0;
}

.hg-row-freq {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* ── Join Us (WhatsApp group + parish registration) ── */
.hg-wa-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Join Us buttons are now the .quick-btn cards in the quick-info row (see above) */

/* A button switched off from the Settings sheet (empty link) — e.g. the Register Your Child button on the Religious Education page */
[data-cfg-link][hidden] { display: none !important; }

/* ── Announcements: highlight cards (inside hg-announce cell) ── */
.hg-announce[hidden] { display: none; }

.hg-announce-scroll {
  /* grows with the content; scrolls if the list gets long */
  max-height: 26rem;
  overflow-y: auto;
  position: relative;
  margin: 0 -.5rem;
  padding: .2rem .5rem .5rem;      /* room for the card shadows */
}

.hg-announce-track {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.hg-announce-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: #fff;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26,39,68,.12);
  padding: .85rem 1rem;
  flex-shrink: 0;
}

.hg-announce-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hg-announce-ico svg { width: 18px; height: 18px; fill: var(--gold-light); }

.hg-announce-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.55;
  padding-top: .3rem;
  white-space: pre-line;          /* keep line breaks typed in the sheet cell */
  overflow-wrap: anywhere;        /* long words never push the box wider */
}

/* Links in announcements (cards and pop-up) look like small gold buttons */
.ann-link {
  display: inline-block;
  margin: .15rem .1rem;
  padding: .28rem .85rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  transition: background var(--transition), transform var(--transition);
}
.ann-link::after { content: " \2192"; }
.ann-link:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }
.ann-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ── Urgent announcement pop-up ── */
.ann-modal {
  position: fixed;
  inset: 0;
  z-index: 8900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ann-modal[hidden] { display: none; }
.ann-modal-backdrop { position: absolute; inset: 0; background: rgba(8,12,24,.72); }
.ann-modal-box {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border-top: 6px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  animation: annPop .35s ease-out;
}
.ann-modal-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ann-modal-ico svg { width: 28px; height: 28px; fill: var(--gold-light); }
.ann-modal-title { font-size: 1.35rem; color: var(--navy); margin: 0 0 .8rem; }
.ann-modal-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.4rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ann-modal-text .ann-link { font-size: .92rem; padding: .4rem 1.1rem; }
.ann-modal-close {
  position: absolute;
  top: .55rem;
  right: .6rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.ann-modal-close:hover { background: var(--cream); color: var(--navy); }
body.ann-modal-open { overflow: hidden; }

@keyframes annPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ann-modal-box { animation: none; }
  .ann-link { transition: none; }
}

.hg-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hg-stat { text-align: center; }

.hg-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.hg-stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: .25rem;
}

/* ── Compact event cards in grid ── */
.hg-event-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.hg-event-card:last-of-type { border-bottom: none; }

.hg-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 6px;
  min-width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.hg-event-month {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--gold-light);
  text-transform: uppercase;
  line-height: 1;
}

.hg-event-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
  line-height: 1;
}

.hg-event-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .15rem;
}

.hg-event-time {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .2rem;
}

.hg-event-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── btn-outline (kept for Contact Us btn) ── */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }


/* ══════════════════════════════════════════
   EVENTS
══════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 8px;
  flex-shrink: 0;
}

.event-month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.event-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
  line-height: 1;
}

.event-title {
  font-size: 1.05rem;
  margin-bottom: .3rem;
  color: var(--navy);
}

.event-time {
  font-size: .85rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .5rem;
}

.event-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--navy-light);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  font-size: 5rem;
  color: var(--gold);
}

.about-text {
  margin-bottom: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 700;
}


/* ══════════════════════════════════════════
   CLERGY / STAFF
══════════════════════════════════════════ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.staff-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.staff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.staff-card--featured {
  grid-column: 1 / -1;
  max-width: 340px;
  justify-self: center;
  width: 100%;
}

.staff-photo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--cream);
}

.staff-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  font-size: 2.5rem;
  color: var(--navy);
}

.staff-name {
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

.staff-role {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .75rem;
}

.staff-bio {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.staff-email {
  font-size: .8rem;
  color: var(--navy);
  word-break: break-all;
}
.staff-email:hover { color: var(--gold-dark); }


/* ══════════════════════════════════════════
   PRAYERS
══════════════════════════════════════════ */
.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.prayer-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,164,40,.3);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: background var(--transition);
}

.prayer-card:hover {
  background: rgba(255,255,255,.12);
}

.prayer-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
}

.prayer-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.prayer-text {
  color: rgba(248,244,237,.82);
  font-size: .925rem;
  line-height: 1.8;
  margin-bottom: .75rem;
  font-style: italic;
}

.prayer-text a.prayer-link { color: var(--gold-light); }

.prayer-mysteries {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .75rem;
  font-size: .82rem;
  color: rgba(248,244,237,.6);
}

.prayer-mysteries span::before { content: '· '; color: var(--gold); }

.prayer-scripture-ref {
  font-size: .82rem;
  color: var(--gold-light);
  font-weight: 700;
  font-style: normal;
  margin-top: -.4rem;
  margin-bottom: .75rem;
}


/* ══════════════════════════════════════════
   PARISH POSTERS
══════════════════════════════════════════ */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.poster-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}

.poster-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.poster-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream);
}

.poster-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-card-img-wrap img {
  transform: scale(1.03);
}

.poster-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 3px solid var(--gold);
}

.poster-card-date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .4rem;
}

.poster-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .5rem;
}

.poster-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   DONATIONS
══════════════════════════════════════════ */
.donate-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

.donate-cross {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: .75rem;
}

.donate-card h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.donate-text {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.donate-scripture {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2rem;
  text-align: left;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.donate-scripture strong {
  display: block;
  margin-top: .4rem;
  color: var(--navy);
  font-style: normal;
}

.donate-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.donate-qr {
  width: 260px;
  height: 260px;
  object-fit: contain;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: .4rem;
  background: var(--white);
}

.donate-qr-caption {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

.donate-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .75rem;
}



/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(248,244,237,.75);
  padding: 4rem 0 0;
  border-top: 3px solid var(--gold-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-cross {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .5rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .3rem;
}

.footer-tagline {
  font-size: .82rem;
  color: rgba(248,244,237,.5);
  font-style: italic;
}

.footer h4 {
  color: var(--gold-light);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-sacraments ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-nav a,
.footer-sacraments a {
  color: var(--cream);
  font-size: .875rem;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-sacraments a:hover { color: var(--gold-light); }

/* Sacraments are plain text (not links) */
.footer-sacraments li {
  color: var(--cream);
  font-size: .875rem;
  line-height: 1.94; /* same row height as the Quick Links */
}

.footer-contact p {
  font-size: .875rem;
  margin-bottom: .4rem;
}

.footer-contact a { color: var(--cream); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(248,244,237,.4);
}

.footer-credit { font-style: italic; }

/* Footer social icons */
.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border: 1px solid rgba(201,164,40,.45);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }


/* ══════════════════════════════════════════
   SUB-PAGE LAYOUT
══════════════════════════════════════════ */
body.subpage .sticky-bar {
  transform: translateY(0);
}

body.subpage {
  padding-top: calc(var(--topbar-height) + 62px);
}

.page-hero {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  font-size: .8rem;
  color: var(--gold-light);
  margin-bottom: .6rem;
  letter-spacing: .03em;
}

.page-breadcrumb a { color: var(--gold-light); }
.page-breadcrumb a:hover { color: #fff; }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: .4rem 0 .6rem;
}

.page-hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .04em;
}

/* ── Photo hero (Religious Education): full-bleed photo, text overlaid at the bottom ── */
.page-hero--photo {
  display: flex;
  align-items: flex-end;
  min-height: clamp(430px, 40vw, 520px);
  padding: 0;
  background: var(--navy-dark);
}

/* Blurred, zoomed copy of the same photo, filling the full hero behind
   the sharp (object-fit: contain) image below — so letterboxing shows a
   soft blur of the photo itself instead of the flat navy background.
   Photo source comes from the --pf-bg custom property (inline style, set
   in the markup for the static Religious Education hero, or by
   setHeroPhoto() in js/media.js for the dynamic Media page hero); when
   unset, this paints nothing and the plain navy shows through as before. */
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pf-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(24px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
  z-index: 0;
  opacity: 1;   /* override .page-hero::before's opacity: 0.12 (that rule is
                   for the plain hero's faint texture, not this backdrop) */
}

.page-hero--photo::after {                      /* dark fade: text at the bottom, breadcrumb at the top */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,16,35,.94) 0%, rgba(10,16,35,.72) 30%, rgba(10,16,35,0) 62%),
    linear-gradient(to bottom, rgba(10,16,35,.78) 0%, rgba(10,16,35,.35) 14%, rgba(10,16,35,0) 28%);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
/* The global `img { display: block }` reset (near the top of this file)
   otherwise overrides the browser's default [hidden] behavior — needed on
   media.html, where this image starts hidden until JS finds a photo. */
.page-hero-img[hidden] { display: none; }

.page-hero--photo .page-hero-top {
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: left;
}

.page-hero--photo .page-breadcrumb { margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

.page-hero--photo .page-hero-inner {
  z-index: 2;
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 2.1rem;
}

.page-hero--photo h1 { text-shadow: 0 2px 10px rgba(0,0,0,.55); margin-bottom: .35rem; }

.page-hero--photo .page-hero-sub {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.page-hero-cta { margin-top: 1.25rem; }

#registration { scroll-margin-top: calc(var(--topbar-height) + 80px); }

/* ── Sub-page content cards ── */
.sp-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  margin-bottom: 1.5rem;
}

.sp-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: .75rem;
}

.sp-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Schedule table ── */
.sp-schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
}

.sp-schedule th {
  background: var(--navy);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .6rem 1rem;
  text-align: left;
}

.sp-schedule td {
  padding: .65rem 1rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text);
}

.sp-schedule tr:last-child td { border-bottom: none; }
.sp-schedule tr:nth-child(even) td { background: var(--cream); }

/* ── Photo / media grid ── */
.sp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sp-media-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 2px dashed var(--cream-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .8rem;
}

.sp-media-placeholder span { font-size: 1.6rem; }

/* ── Timeline ── */
.sp-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.sp-timeline::before {
  content: '';
  position: absolute;
  left: .55rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: .4;
}

.sp-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.sp-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: .3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.sp-timeline-year {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-dark);
  margin-bottom: .2rem;
}

.sp-timeline-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .3rem;
}

.sp-timeline-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Past priests tile ── */
.sp-priests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sp-priest-tile {
  text-align: center;
}

.sp-priest-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto .6rem;
  display: block;
  background: var(--cream);
}

.sp-priest-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--cream);
  margin: 0 auto .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.sp-priest-name {
  font-family: var(--font-heading);
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: .15rem;
}

.sp-priest-years {
  font-size: .75rem;
  color: var(--text-muted);
}

@media (max-width: 680px) {
  body.subpage { padding-top: calc(var(--topbar-height) + 62px); }
  .sp-card { padding: 1.4rem 1.15rem; }
  .sp-media-grid { grid-template-columns: repeat(2, 1fr); }

  /* Past priests: 2 across, last odd tile centred */
  .sp-priests-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sp-priest-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sp-priest-photo,
  .sp-priest-placeholder { width: 84px; height: 84px; }
  .sp-priest-name { font-size: .85rem; }

  /* Class schedule: each row becomes a small card instead of a wide table */
  .sp-schedule,
  .sp-schedule tbody,
  .sp-schedule tr,
  .sp-schedule td { display: block; width: 100%; }
  .sp-schedule thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .sp-schedule tr {
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .75rem;
  }
  .sp-schedule td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .85rem;
    text-align: right;
  }
  .sp-schedule td:last-child { border-bottom: none; }
  .sp-schedule td::before {
    content: attr(data-label);
    flex-shrink: 0;
    padding-top: .12rem;
    text-align: left;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-dark);
  }

  /* Program director card: centred stack */
  .sp-director { flex-direction: column; align-items: center !important; text-align: center; }
}

/* ══════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   WHATSAPP JOIN MODAL
══════════════════════════════════════════ */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-modal[hidden] { display: none; }

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, .65);
  backdrop-filter: blur(3px);
}

.wa-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  width: min(480px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  border-top: 4px solid #25d366;
}

.wa-modal-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.wa-modal-close:hover { color: var(--text); background: var(--cream); }

.wa-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.wa-modal-icon {
  width: 48px;
  height: 48px;
  fill: #25d366;
  margin-bottom: .75rem;
}

.wa-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

.wa-modal-sub {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Form fields ── */
.wa-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}

.wa-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.wa-required { color: #c0392b; margin-left: .1rem; }

.wa-field input,
.wa-field textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: .55rem .75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.wa-field input:focus,
.wa-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,40,.18);
}

.wa-field input.invalid,
.wa-field textarea.invalid {
  border-color: #c0392b;
}

.wa-error {
  font-size: .78rem;
  color: #c0392b;
  display: none;
}
.wa-error.visible { display: block; }

.wa-required-note {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.wa-submit {
  width: 100%;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .75rem;
  cursor: pointer;
  transition: background var(--transition);
}
.wa-submit:hover { background: #1aab52; }
.wa-submit:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.wa-submit:disabled { opacity: .7; cursor: wait; }

/* spam trap — off-screen, never shown */
.wa-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wa-status {
  font-size: .85rem;
  line-height: 1.45;
  color: #7a1b15;
  background: #fdecea;
  border: 1px solid #f3b9b4;
  border-radius: 8px;
  padding: .6rem .75rem;
  margin: 0 0 .9rem;
}
.wa-status[hidden] { display: none; }
.wa-status a { color: #7a1b15; font-weight: 700; text-decoration: underline; }

.wa-thanks { text-align: center; padding: .5rem 0 .25rem; outline: none; }
.wa-thanks[hidden] { display: none; }
.wa-modal-header[hidden] { display: none; }
.wa-thanks-tick {
  width: 3.2rem; height: 3.2rem; margin: 0 auto .75rem;
  border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; font-weight: 700;
}
.wa-thanks h3 { font-family: var(--font-heading); color: var(--navy); font-size: 1.35rem; margin-bottom: .4rem; }
.wa-thanks p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.1rem; }

.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--navy-light);
  color: var(--gold-light);
  transform: translateY(-3px);
}


/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Lower grid — slightly wider right column on tablet */
  .lg-left  { flex: 60; }
  .lg-right { flex: 40; }
  .hero-nav-drawer { width: 60%; }
  .hg-clergy { padding: 1.4rem 1.5rem 1.6rem; }
  .quick-info-row { grid-template-columns: 1fr; }
  .hg-tagline-text { white-space: normal; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤680px)
══════════════════════════════════════════ */
@media (max-width: 680px) {
  :root { --topbar-height: 36px; }

  /* Topbar — tighter gap on mobile */
  .topbar-inner { padding: 0 1rem; }
  .topbar-social { gap: .75rem; }

  /* Sticky bar — slim on scroll, expanded on hamburger tap */
  .sticky-nav-links { display: none; }

  .sticky-bar--menu-open { height: auto; }
  .sticky-bar--menu-open .sticky-bar-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    height: auto;
    padding: .6rem 1.25rem .75rem;
    gap: 1rem;
  }
  .sticky-bar--menu-open .sticky-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
    flex-shrink: 0;
  }
  .sticky-bar--menu-open .sticky-nav-links a {
    padding: .5rem .65rem;
    font-size: .85rem;
    white-space: nowrap;
    text-align: right;
  }
  .sticky-bar--menu-open .sticky-nav-donate {
    margin-top: .25rem;
  }

  .hero-nav-drawer { width: 100%; background: rgba(17,27,48,0.92); }
  /* Hero header — tighter on mobile */
  .hero-logo { width: 40px; height: 40px; }
  .hero-name { font-size: .85rem; }
  .hero-name-sub { font-size: .62rem; }

  /* Tagline — allow wrap to two lines instead of forcing one on narrow phones */
  .hg-tagline-text { white-space: normal; }

  /* Quick info row — single column, Mass Schedule first (already first in source order) */
  .quick-info-row { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }

  /* Lower grid — single column: Clergy + Calendar, then Announcements + Posters */
  .lower-grid { flex-direction: column; }
  .lg-left, .lg-right { flex: 0 0 auto; }
  .lg-right { border-left: none; border-top: 4px solid var(--gold); }
  .hg-clergy { border-top: 1px solid var(--cream-dark); padding: 1.4rem 1.1rem 1.5rem; }
  .hg-events { border-top: 4px solid var(--gold); }

  .section { padding: 3.5rem 0; }

  /* Hero */
  .hero-cta { flex-direction: column; align-items: center; }

  /* Events */
  .events-grid { grid-template-columns: 1fr; }

  /* About stats */
  .about-stats { justify-content: center; gap: 1.5rem; }

  /* Posters — 2 columns on tablet */
  .posters-grid { grid-template-columns: repeat(2, 1fr); }

  /* Staff — keep 4 columns at tablet, only stack on mobile */
  .staff-grid { grid-template-columns: repeat(4, 1fr); }

  /* Donate */
  .donate-card { padding: 2.5rem 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Posters — single column on mobile */
  .posters-grid { grid-template-columns: 1fr; }

  /* Staff — 2 columns on mobile */
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .page-hero--photo { min-height: 440px; }
  .page-hero--photo .page-hero-inner { padding-top: 4rem; padding-bottom: 1.5rem; }
  .page-hero--photo .ornament { display: none; }
  .page-hero--photo .page-hero-sub { font-size: .92rem; }
  .page-hero-cta { margin-top: 1rem; }
}

@media (max-width: 400px) {
  .mass-grid { grid-template-columns: 1fr; }
  .prayers-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════
   MEDIA — videos & photos
   (home bands + media.html + player/lightbox)
══════════════════════════════════════════ */

/* Anchors land below the fixed top + sticky bars */
#videos, #photos { scroll-margin-top: calc(var(--topbar-height) + 70px); }
.pl-section[hidden] { display: none; }

.pl-more { text-align: center; margin-top: 2.25rem; }

/* ── Video thumbnail + play button ── */
.pl-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.pl-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.pl-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(201,164,40,.96);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.pl-play::before {
  content: '';
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--navy-dark);
}
a:hover > .pl-thumb img { transform: scale(1.04); }
a:hover > .pl-thumb .pl-play { transform: scale(1.1); background: var(--gold-light); }

.pl-video-title,
.pl-video-date { display: block; }
.pl-video-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
}
.pl-video-date {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Home: "Watch With Us" (dark band) ── */
.pl-video-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.pl-video-card { display: block; color: #fff; text-decoration: none; }
.pl-video-card .pl-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.pl-video-card .pl-play::before { border-width: 14px 0 14px 23px; margin-left: 5px; }
.pl-video-card .pl-video-title { font-size: 1.3rem; color: #fff; margin: 1rem 0 .3rem; }
.pl-video-card .pl-video-date  { color: var(--gold-light); }

.pl-video-list { display: flex; flex-direction: column; gap: .9rem; }
.pl-video-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: .95rem;
  align-items: center;
  padding: .6rem;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,164,40,.18);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.pl-video-row:hover { background: rgba(255,255,255,.12); border-color: rgba(201,164,40,.5); }
.pl-video-row .pl-thumb { box-shadow: none; border-radius: 6px; }
.pl-video-row .pl-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.pl-video-row .pl-play::before { border-width: 7px 0 7px 11px; margin-left: 2px; }
.pl-video-row .pl-video-title { font-size: .95rem; color: #fff; margin: 0 0 .3rem; }
.pl-video-row .pl-video-date  { color: var(--gold-light); font-size: .7rem; }

/* ── Home: photo slideshow (full-width, auto-advancing) ── */
.pl-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.pl-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 1;
}
.pl-slide.active { opacity: 1; z-index: 2; }
.pl-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.pl-slide:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; z-index: 3; }
.pl-slide-dots {
  position: absolute;
  bottom: .9rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 3;
}
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pl-dot.active { background: #fff; }

/* Blurred, zoomed copy of the same photo, filling the slide/tile behind
   the sharp (object-fit: contain) image — same treatment as the photo
   hero above (.page-hero--photo::before). Photo source comes from the
   --pf-bg custom property, set inline by js/media.js on each slide/tile/
   cover as it's built; when unset, this paints nothing. */
.pl-slide::before,
.pl-tile::before,
.album-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pf-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) brightness(0.6) saturate(1.15);
  transform: scale(1.15);
  z-index: 0;
}

/* ── Shared photo tile (media.html album grid) ── */
.pl-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cream-dark);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
}
.pl-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
  transition: transform .45s ease;
}
.pl-tile:hover img, .pl-tile:focus-visible img { transform: scale(1.06); }
.pl-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── media.html ── */
.media-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  background: var(--cream);
  border-radius: 8px;
  padding: 2rem 1.25rem;
}
.section-cream .media-note { background: var(--white); }

.media-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.media-video-card {
  display: block;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.media-video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.media-video-card .pl-thumb { border-radius: 0; box-shadow: none; }
.pl-video-body { display: block; padding: .9rem 1.1rem 1.15rem; }
.media-video-card .pl-video-title { font-size: 1.02rem; color: var(--navy); margin: 0 0 .35rem; }
.media-video-card .pl-video-date  { color: var(--gold-dark); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.album-grid[hidden], #albumDetail[hidden] { display: none; }
.album-card {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  font: inherit;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.album-card:hover, .album-card:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.album-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  overflow: hidden;
}
.album-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
  transition: transform .45s ease;
}
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-info { display: block; padding: .85rem 1.1rem 1.05rem; border-top: 3px solid var(--gold); }
.album-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}
.album-count { display: block; font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }

.album-toolbar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.album-toolbar h3 { font-size: 1.5rem; }
.album-toolbar .album-count { margin-top: 0; }
.album-toolbar .btn { padding: .55rem 1.2rem; font-size: .8rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .7rem;
}

/* ── Video player + photo lightbox ── */
.pl-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.pl-modal[hidden] { display: none; }
.pl-modal-backdrop { position: absolute; inset: 0; background: rgba(8,12,24,.96); }
.pl-modal-box { position: relative; width: min(980px, 100%); }
.pl-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.pl-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-modal-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  margin-top: .9rem;
}
.pl-modal-yt { text-align: center; margin-top: .35rem; font-size: .82rem; }
.pl-modal-yt a { color: var(--gold-light); }

.pl-modal-close, .pl-nav-btn {
  position: absolute;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.pl-modal-close:hover, .pl-nav-btn:hover { background: rgba(201,164,40,.85); color: var(--navy-dark); }
.pl-modal-box > .pl-modal-close { top: -3.4rem; right: 0; }
.pl-lightbox > .pl-modal-close { top: .9rem; right: .9rem; }
.pl-nav-btn { top: 50%; margin-top: -22px; font-size: 1.9rem; padding-bottom: 4px; }
.pl-nav-prev { left: .9rem; }
.pl-nav-next { right: .9rem; }
.pl-nav-btn[hidden] { display: none; }

.pl-lightbox-figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.pl-lightbox-img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 7.5rem);
  object-fit: contain;
  border-radius: 4px;
  background: #0d1424;
  transition: opacity .2s ease;
}
.pl-lightbox-cap {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  margin-top: .8rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .pl-thumb img, .pl-tile img, .album-cover img, .pl-play { transition: none; }
}

/* ── Media: tablet & mobile ── */
@media (max-width: 900px) {
  .pl-video-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pl-slideshow { aspect-ratio: 4 / 3; }
  .pl-video-card .pl-video-title { font-size: 1.12rem; }
  .pl-video-row { grid-template-columns: 38% 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .album-info { padding: .7rem .8rem .85rem; }
  .album-name { font-size: .95rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .pl-nav-btn { width: 40px; height: 40px; }
  .pl-nav-prev { left: .35rem; }
  .pl-nav-next { right: .35rem; }
  .pl-modal-box > .pl-modal-close { top: -3.1rem; }
}
