:root {
  --maroon: #5c1818;
  --maroon-dark: #3b0e0e;
  --maroon-subtle: #732222;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #b8972e;
  --cream: #fbf9f4;
  --cream-card: #ffffff;
  --cream-alt: #f3ece1;
  --ink: #221c19;
  --muted: #6b5f58;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(40, 10, 10, 0.06);
  --shadow-md: 0 10px 30px rgba(40, 10, 10, 0.12);
  --shadow-lg: 0 20px 45px rgba(40, 10, 10, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Ethiopic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:lang(ti) body, html[lang="ti"] body { font-family: "Noto Sans Ethiopic", "Inter", sans-serif; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Noto Sans Ethiopic", serif;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--maroon); font-weight: 600; }
h3 { font-size: 1.5rem; color: var(--maroon-dark); font-weight: 600; }
a { color: inherit; transition: color 0.2s ease; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.center { text-align: center; }
.narrow { max-width: 740px; margin-inline: auto; }
.note { color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(59, 14, 14, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow-sm);
}

.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.9; }
.brand strong { display: block; font-family: "Cormorant Garamond", "Noto Sans Ethiopic", serif; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand small { display: block; font-size: .8rem; color: var(--gold-light); letter-spacing: 0.05em; text-transform: uppercase; font-family: "Inter", sans-serif; font-weight: 500; }

.cross {
  color: var(--gold);
  font-size: 2.2rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; transition: opacity 0.2s, color 0.2s; }
.nav a:hover { color: var(--gold-light); opacity: 1; }

.lang {
  display: flex; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 999px; overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
.lang button {
  background: none; border: 0; color: #fff; padding: 7px 14px; cursor: pointer;
  font: 600 .82rem "Inter", "Noto Sans Ethiopic", sans-serif;
  transition: background 0.2s, color 0.2s;
}
.lang button.active { background: var(--gold); color: var(--maroon-dark); }

.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid; align-items: center;
  background: url("images/church.webp") center 35% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 8, 8, 0.4) 0%, rgba(35, 10, 10, 0.75) 70%, rgba(30, 8, 8, 0.95) 100%);
}
.hero-content {
  position: relative; text-align: center; padding-block: 90px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.eyebrow {
  color: var(--gold-light); letter-spacing: .25em; text-transform: uppercase;
  font-weight: 600; font-size: 0.85rem; margin: 0 0 16px;
}
html[lang="ti"] .eyebrow { letter-spacing: .04em; }

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  max-width: 960px; margin-inline: auto; margin-bottom: 20px;
  font-weight: 600;
}
.lead {
  font-size: 1.2rem; max-width: 680px; margin: 0 auto 36px;
  opacity: .95; font-weight: 300; line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
  cursor: pointer; font-size: 0.95rem;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--maroon-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); }

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.8); color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

/* Sections */
.section { padding-block: 100px; }
.section.alt { background: var(--cream-alt); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.photo { margin: 0; position: relative; }
.photo::before {
  content: ""; position: absolute; inset: -10px; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--gold); opacity: 0.3; pointer-events: none; z-index: 1;
}
.photo img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover; aspect-ratio: 4/3;
}
.photo figcaption {
  color: var(--muted); font-size: 0.9rem; margin-top: 14px; text-align: center;
  font-style: italic;
}

/* Cards & Layouts */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card {
  background: var(--cream-card); border-radius: var(--radius); padding: 36px 30px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .time { color: var(--maroon); font-weight: 700; font-size: 1.05rem; margin: -6px 0 14px; }
.card p { margin: 0 0 8px; color: var(--muted); }

.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  background: var(--cream-card); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 999px;
  padding: 10px 20px; font-size: .95rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s;
}
.chips li:hover { border-color: var(--gold); background: #fff; }

.give-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin: 40px 0 24px; text-align: left; }
.give-card {
  display: flex; flex-direction: column; background: var(--cream-card);
  padding: 36px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.give-card .btn { margin-top: auto; align-self: flex-start; }
.give-card p { margin-bottom: 24px; color: var(--muted); }

.btn-outline {
  border: 2px solid var(--maroon); color: var(--maroon); background: transparent;
}
.btn-outline:hover { background: var(--maroon); color: #fff; box-shadow: 0 4px 15px rgba(92, 24, 24, 0.25); }

#manageLink {
  display: inline-block; margin-left: 6px; color: var(--maroon);
  font-weight: 600; font-style: normal; text-decoration: underline;
}

/* Member account page */
.nav-member {
  border: 1px solid var(--gold); border-radius: 999px; padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
}
.account-page main { min-height: 65vh; padding-block: 40px; }
.account-wrap { max-width: 580px; }
.account-card {
  background: var(--cream-card); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-md); margin-bottom: 28px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.account-card h3 { margin-top: 18px; }

.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid #e8decb; }
.tab {
  flex: 1; white-space: nowrap;
  background: none; border: 0; padding: 12px 16px; cursor: pointer;
  font: 600 1rem "Inter", "Noto Sans Ethiopic", sans-serif; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab.active { color: var(--maroon); border-bottom-color: var(--gold); }
.tab:hover:not(.active) { color: var(--ink); }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%; padding: 12px 16px; border: 1px solid #dcd0b2; border-radius: var(--radius-sm);
  font: inherit; background: var(--cream-card); color: var(--ink);
  transition: border-color 0.2s, outline 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.hint { color: var(--muted); font-size: 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; }
.btn-outline.btn-block { border: 2px solid var(--maroon); background: none; }

button.btn { cursor: pointer; font: 600 1rem "Inter", "Noto Sans Ethiopic", sans-serif; border: 0; }
button.btn-outline { border: 2px solid var(--maroon); background: none; }
.btn:disabled { opacity: .6; cursor: wait; transform: none !important; box-shadow: none !important; }

.link-btn {
  background: none; border: 0; color: var(--maroon);
  font: 600 .95rem "Inter", "Noto Sans Ethiopic", sans-serif;
  cursor: pointer; padding: 10px 0; text-decoration: underline;
}
.link-btn:hover { color: var(--maroon-subtle); }

.form-msg { min-height: 1.4em; margin: 6px 0 14px; color: #2e6930; font-weight: 600; font-size: 0.95rem; }
.form-msg.error { color: #b3261e; }

.divider { display: flex; align-items: center; gap: 16px; color: var(--muted); margin: 16px 0 20px; font-size: 0.9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #e5d6b8; }
#givingReady .btn { margin: 8px 10px 8px 0; }

.address { font-size: 1.15rem; margin-bottom: 28px; font-weight: 500; }
.map iframe {
  width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}


/* About Us Section Photo Fix */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.photo {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo::before {
  content: ""; 
  position: absolute; 
  inset: -10px; 
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--gold); 
  opacity: 0.3; 
  pointer-events: none; 
  z-index: 1;
}

.photo img {
  width: 100%;
  height: auto;
  max-height: 450px; /* መጠንቁ ክሳዕ ክንደይ ክነውሕ ከምዝኽእል ይቆጻጸሮ */
  object-fit: cover; /* ስእሊ ከይተቐረጸ ብመጠኑ ንኽምዕብሎ ይሕግዝ */
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.photo figcaption {
  color: var(--muted); 
  font-size: 0.9rem; 
  margin-top: 14px; 
  text-align: center;
  font-style: italic;
}

/* ናይ ሞባይል ስክሪን ምስ ዝጸብብ */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .photo img {
    max-height: 380px;
  }
}
/* Footer */
.footer {
  background: var(--maroon-dark); color: #f3e9d6; text-align: center;
  padding-block: 60px; border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer p { margin: 6px 0; }
.footer .big { font-size: 2.8rem; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.footer .small { font-size: .85rem; opacity: .7; margin-top: 16px; }

/* Mobile Menu & Responsiveness */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--maroon-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08); width: 100%; }
  .nav a.nav-member { border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; color: var(--gold-light); background: rgba(0,0,0,0.1); }
  .brand small { display: none; }
  .brand strong { font-size: 1.1rem; line-height: 1.15; }
  .tab { font-size: .9rem; padding: 10px 8px; }
  .account-card { padding: 24px 20px; }
  .cross { font-size: 1.8rem; }
  .topbar-inner { gap: 12px; min-height: 68px; }
  .lang { flex-shrink: 0; }
  .lang button { padding: 5px 10px; font-size: .78rem; }
  .brand { min-width: 0; }
  .split, .cards, .beliefs { grid-template-columns: 1fr; gap: 36px; }
  .section { padding-block: 64px; }
}

/* Gallery Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 40px;
  min-width: 0; /* Crucial to prevent grid items from overflowing parent container */
}

.gallery-category {
  min-width: 0; /* Prevents flex/grid blowouts */
  background: var(--cream-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-category h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

/* Horizontal Scrollable Container */
.scrollable-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--cream-alt);
  width: 100%;
  max-width: 100%;
}

/* Custom Scrollbar for Chrome/Safari/Edge */
.scrollable-container::-webkit-scrollbar {
  height: 8px;
}
.scrollable-container::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.15);
  border-radius: 999px;
}
.scrollable-container::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

/* Individual Photo Cards inside the scroll track */
.photo-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* Responsive: stack to 1 column on mobile */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .photo-card {
    flex: 0 0 220px;
  }
}

/* Logo Styling in Top Bar */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  transition: opacity 0.2s;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain; /* Keeps the logo proportions correct without cropping */
  border-radius: 50%;   /* Optional: remove this line if your logo is square/rectangular */
  display: block;
}

/* Mobile size adjustment */
@media (max-width: 860px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
}

/* About Section Split Rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Adds breathing room between Row 1 and Row 2 */
.section-spacer {
  height: 80px;
}

/* Photo shrink-wrap container to match the photo size precisely */
.photo {
  margin: 0 auto;
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.photo figcaption {
  color: var(--muted); 
  font-size: 0.9rem; 
  margin-top: 12px; 
  text-align: center;
  font-style: italic;
  width: 100%;
}

/* Mobile responsiveness: stack rows cleanly */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-spacer {
    height: 40px;
  }
  /* On mobile, make sure text comes before or after consistently */
  .photo img {
    max-width: 100%;
  }
}


/* ===== CHURCH PHOTO GALLERY ===== */
.gallery-section {
  padding-top: 90px;
  padding-bottom: 100px;
}

.gallery-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.gallery-heading h2 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.gallery-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted, #777);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-category {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 340px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #17251f;
  color: #fff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.gallery-category::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(10, 17, 14, .35) 48%,
    rgba(10, 17, 14, .92) 100%
  );
}

.gallery-category > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.gallery-category:hover > img,
.gallery-category:focus-visible > img {
  transform: scale(1.06);
}

.gallery-category:focus-visible,
.gallery-close:focus-visible,
.album-grid button:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid #d9b76b;
  outline-offset: 4px;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
}

.gallery-card-label {
  margin: 0;
  color: #dfc27d;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.gallery-card-overlay strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.gallery-card-link {
  margin-top: 4px;
  font-size: .88rem;
  color: #f4e8ca;
}

/* Album viewer */
.gallery-modal[hidden],
.lightbox[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 12, 10, .88);
  backdrop-filter: blur(8px);
}

.gallery-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 18px;
  background: #fff;
  color: #202820;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.gallery-modal-header h2 {
  margin: 8px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.gallery-modal-header p:last-child {
  color: #70756f;
  font-size: .9rem;
}

.gallery-close,
.lightbox-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 28px;
  cursor: pointer;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-grid button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #eee;
  cursor: zoom-in;
  text-align: left;
}

.album-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}

.album-grid button:hover img {
  transform: scale(1.04);
}

.album-grid button span {
  display: block;
  padding: 10px 12px;
  background: #fff;
  color: #303830;
  font-size: .85rem;
}

/* Enlarged photo */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 65px 20px 25px;
  background: rgba(0, 0, 0, .96);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(900px, 78vw);
  max-height: 85vh;
  margin: 0;
}

.lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  font-size: .9rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.lightbox-nav {
  flex-shrink: 0;
  width: 46px;
  height: 56px;
  border: 1px solid #555;
  border-radius: 10px;
  background: #202020;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

/* Prevent background scrolling while an overlay is open */
body.gallery-open {
  overflow: hidden;
}

@media (max-width: 650px) {
  .gallery-section {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-category {
    height: 280px;
  }

  .gallery-card-overlay {
    padding: 22px;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-modal {
    padding: 8px;
  }

  .gallery-modal-panel {
    max-height: 96vh;
    padding: 18px;
  }

  .lightbox {
    gap: 8px;
    padding: 65px 8px 20px;
  }

  .lightbox figure {
    max-width: calc(100vw - 100px);
  }

  .lightbox-nav {
    width: 32px;
    height: 44px;
  }
}

/* ========================================
   CHURCH PHOTO GALLERY
======================================== */

.gallery-section {
  padding-block: 90px 100px;
}

.gallery-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.gallery-heading h2 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.gallery-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted, #777);
  line-height: 1.8;
}

/* Gallery category cards */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-category {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-width: 0;
  height: 340px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #17251f;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.gallery-category::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgb(10 17 14 / 35%) 48%,
    rgb(10 17 14 / 92%) 100%
  );
  content: "";
  pointer-events: none;
}

.gallery-category > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-category:hover > img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
}

.gallery-card-label {
  margin: 0;
  color: #dfc27d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.gallery-card-overlay strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.gallery-card-link {
  margin-top: 4px;
  color: #f4e8ca;
  font-size: 0.88rem;
}

/* Shared keyboard focus styles */

.gallery-category:focus-visible,
.gallery-close:focus-visible,
.album-grid button:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid #d9b76b;
  outline-offset: 4px;
}

/* ========================================
   ALBUM MODAL
======================================== */

.gallery-modal[hidden],
.lightbox[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(7 12 10 / 88%);
  backdrop-filter: blur(8px);
}

.gallery-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  padding: clamp(20px, 4vw, 40px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  color: #202820;
  overscroll-behavior: contain;
}

.gallery-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.gallery-modal-header h2 {
  margin: 8px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.gallery-modal-header p:last-child {
  color: #70756f;
  font-size: 0.9rem;
}

.gallery-close,
.lightbox-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 28px;
  cursor: pointer;
}

/* Album thumbnails */

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-grid button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #eee;
  text-align: left;
  cursor: zoom-in;
}

.album-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-grid button:hover img {
  transform: scale(1.04);
}

.album-grid button span {
  display: block;
  padding: 10px 12px;
  background: #fff;
  color: #303830;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* ========================================
   FULL-SIZE PHOTO VIEWER
======================================== */

.lightbox {
  position: fixed;
  z-index: 1002;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 65px 20px 25px;
  background: rgb(0 0 0 / 96%);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(900px, 78vw);
  max-height: 85vh;
  margin: 0;
}

.lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox figcaption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.lightbox-nav {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 56px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 10px;
  background: #202020;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: #353535;
}

/* Prevent background scrolling while overlays are open */

body.gallery-open {
  overflow: hidden;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .gallery-category > img,
  .album-grid img {
    transition: none;
  }

  .gallery-category:hover > img,
  .album-grid button:hover img {
    transform: none;
  }
}

/* ========================================
   RESPONSIVE LAYOUT
======================================== */

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-category {
    height: 300px;
  }
}

@media (max-width: 650px) {
  .gallery-section {
    padding-block: 60px 65px;
  }

  .gallery-heading {
    margin-bottom: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-category {
    height: 280px;
  }

  .gallery-card-overlay {
    padding: 22px;
  }

  .gallery-modal {
    padding: 8px;
  }

  .gallery-modal-panel {
    max-height: 96vh;
    padding: 18px;
  }

  .gallery-modal-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .album-grid {
    gap: 10px;
  }

  .album-grid button span {
    padding: 8px;
    font-size: 0.8rem;
  }

  .lightbox {
    gap: 8px;
    padding: 65px 8px 20px;
  }

  .lightbox figure {
    max-width: calc(100vw - 100px);
  }

  .lightbox-nav {
    width: 32px;
    height: 44px;
    font-size: 26px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}


/* ============================================
   ABUNE GEBRE MENFES QDUS — MODERN CHURCH FOOTER
   Matches: .church-footer HTML structure
   ============================================ */

.church-footer {
  --footer-bg: #102a22;
  --footer-deep: #091c16;
  --footer-gold: #dfbf70;
  --footer-text: #e8eee9;
  --footer-muted: #b8c8bd;

  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  box-sizing: border-box;
}

.church-footer *,
.church-footer *::before,
.church-footer *::after {
  box-sizing: border-box;
}

.church-footer .wrap {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

/* Main four-column layout */

.church-footer .footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr;
  gap: 38px;
  align-items: start;
  margin: 0;
  padding: 72px 0 55px;
}

/* Brand and logo */

.church-footer .footer-brand {
  min-width: 0;
}

.church-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  color: #fff;
  text-decoration: none;
}

.church-footer .footer-logo img {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.church-footer .footer-logo span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.church-footer .footer-logo strong {
  display: block;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
}

.church-footer .footer-logo small {
  display: block;
  color: var(--footer-gold);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Description */

.church-footer .footer-description {
  max-width: 340px;
  margin: 0 0 24px;
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.95;
}

/* Column headings */

.church-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
}

.church-footer .footer-column h3 {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgb(223 191 112 / 35%);
  color: var(--footer-gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* General footer links */

.church-footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.church-footer .footer-column > a:not(.footer-direction-btn) {
  display: inline-block;
  max-width: 100%;
  color: #d2ddd5;
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.church-footer .footer-column > a:not(.footer-direction-btn):hover,
.church-footer .footer-text-link:hover,
.church-footer .footer-socials a:hover {
  color: var(--footer-gold);
}

/* Paragraphs inside columns */

.church-footer .footer-column p {
  margin: 0;
  color: #d2ddd5;
  font-size: 0.88rem;
  line-height: 1.8;
}

.church-footer .footer-column .footer-small {
  margin-top: 2px;
  color: var(--footer-muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

/* Social links */

.church-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.church-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 5px;
  background: rgb(255 255 255 / 4%);
  color: #e3e9e4;
  font-size: 0.76rem;
}

.church-footer .footer-socials a:hover {
  border-color: var(--footer-gold);
  background: rgb(223 191 112 / 10%);
}

/* Directions button */

.church-footer .footer-direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  max-width: 100%;
  margin: 3px 0 5px;
  padding: 10px 16px;
  border: 1px solid var(--footer-gold);
  border-radius: 5px;
  background: var(--footer-gold);
  color: #17281f;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.church-footer .footer-direction-btn:hover {
  transform: translateY(-2px);
  background: #f0d99b;
  border-color: #f0d99b;
  color: #17281f;
}

/* Text links */

.church-footer .footer-text-link {
  display: inline-block;
  margin-top: 3px;
  color: var(--footer-gold);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.7;
}

/* Bible verse */

.church-footer .footer-verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 25px 16px 29px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: #f1e5c6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.church-footer .footer-verse span {
  color: var(--footer-gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Copyright row */

.church-footer .footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  width: 100%;
  margin: 0;
  padding: 23px 0;
  border: 0;
  background: var(--footer-deep);
}

.church-footer .footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.77rem;
  line-height: 1.8;
}

.church-footer .footer-bottom a {
  flex-shrink: 0;
  color: var(--footer-gold);
  font-size: 0.8rem;
  font-weight: 600;
}

.church-footer .footer-bottom a:hover {
  color: #fff;
}

/* Keyboard accessibility */

.church-footer a:focus-visible {
  outline: 2px solid var(--footer-gold);
  outline-offset: 5px;
}

/* Tablet */

@media (max-width: 1000px) {
  .church-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 36px;
    padding-top: 55px;
    padding-bottom: 45px;
  }

  .church-footer .footer-brand {
    padding-right: 12px;
  }
}

/* Mobile */

@media (max-width: 560px) {
  .church-footer .wrap {
    width: calc(100% - 36px);
  }

  .church-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .church-footer .footer-brand {
    padding-right: 0;
  }

  .church-footer .footer-logo img {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
  }

  .church-footer .footer-logo strong {
    font-size: 1.3rem;
  }

  .church-footer .footer-column h3 {
    margin-bottom: 8px;
  }

  .church-footer .footer-socials {
    gap: 8px;
  }

  .church-footer .footer-verse {
    padding: 23px 8px;
  }

  .church-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 0;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .church-footer *,
  .church-footer *::before,
  .church-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}



/* =================================
   ABOUT OUR FAITH — READ MORE
================================= */

.faith-section {
  max-width: 1000px;
  margin: 55px auto;
  padding-top: 20px;
  padding-bottom: 30px;
}

.faith-section h2 {
  margin-bottom: 22px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--heading, #183c2e);
}

.faith-content {
  color: var(--text, #444);
  font-size: 1rem;
  line-height: 1.9;
}

.faith-preview p,
.faith-full p {
  margin: 0 0 18px;
}

.faith-full[hidden] {
  display: none !important;
}

.faith-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 20px;
  border: 1px solid #c6a65b;
  border-radius: 5px;
  background: #173d2e;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faith-read-more:hover {
  background: #c6a65b;
  color: #172b20;
  transform: translateY(-2px);
}

.faith-read-more:focus-visible {
  outline: 3px solid #c6a65b;
  outline-offset: 4px;
}

.faith-read-more span {
  transition: transform 0.25s ease;
}

.faith-read-more[aria-expanded="true"] span {
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .faith-section {
    margin: 35px auto;
  }

  .faith-content {
    font-size: 0.94rem;
  }
}


/* CHURCH CALENDAR BUTTON */

.calendar-open-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  border: 1px solid #c6a65b;
  border-radius: 5px;
  background: #173d2e;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.calendar-open-btn:hover {
  background: #c6a65b;
  color: #172b20;
}

/* CALENDAR MODAL */

.church-calendar-modal[hidden] {
  display: none !important;
}

.church-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px);
}

.church-calendar-panel {
  width: min(850px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 16px;
  background: #fffdf8;
  color: #25352c;
}

.church-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.calendar-eyebrow {
  color: #ad8a42;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.church-calendar-header h2 {
  margin: 7px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
}

.church-calendar-header p {
  color: #777;
  font-size: .85rem;
}

.calendar-close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  font-size: 28px;
  cursor: pointer;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.calendar-controls button {
  padding: 9px 13px;
  border: 1px solid #d8c69d;
  border-radius: 5px;
  background: #fff;
  color: #284435;
  cursor: pointer;
}

#calendarMonthTitle {
  font-weight: 700;
  text-align: center;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  font-size: .78rem;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.calendar-legend i {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 3px;
}

.legend-feast {
  background: #d6b35e;
}

.legend-fast {
  background: #b8d6c2;
}

.legend-today {
  border: 2px solid #315e43;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
}

.calendar-days button {
  min-width: 0;
  min-height: 75px;
  padding: 7px 3px;
  border: 1px solid #e8e4da;
  border-radius: 7px;
  background: white;
  color: #26392e;
  cursor: pointer;
}

.calendar-days button:hover,
.calendar-days button.selected {
  border-color: #b99851;
  background: #f6edda;
}

.calendar-days button.feast {
  background: #fff3d2;
}

.calendar-days button.fast {
  background: #eaf3ec;
}

.calendar-days button.today {
  outline: 2px solid #315e43;
  outline-offset: -2px;
}

.calendar-days .day-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.calendar-days .day-gregorian {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: .65rem;
}

.calendar-day-details {
  margin-top: 22px;
  padding: 20px;
  border-left: 4px solid #c6a65b;
  border-radius: 5px;
  background: #f5f1e7;
  font-size: .9rem;
  line-height: 1.8;
}

.calendar-day-details h3 {
  margin: 0 0 8px;
  color: #244332;
}

.calendar-footer-note {
  margin-top: 18px;
  color: #888;
  font-size: .75rem;
  line-height: 1.6;
}

@media(max-width: 550px) {
  .church-calendar-panel {
    padding: 17px;
  }

  .church-calendar-header h2 {
    font-size: 1.7rem;
  }

  .calendar-controls {
    flex-wrap: wrap;
  }

  #calendarMonthTitle {
    order: -1;
    width: 100%;
  }

  .calendar-days {
    gap: 3px;
  }

  .calendar-days button {
    min-height: 58px;
    padding: 4px 1px;
  }

  .calendar-days .day-number {
    font-size: .9rem;
  }

  .calendar-days .day-gregorian {
    font-size: .55rem;
  }
}

body.calendar-open {
  overflow: hidden;
}


/* FOUR LARGE GALLERY COVER PHOTOS */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-category {
  position: relative;
  display: block;
  width: 100%;
  height: 340px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #17251f;
  color: white;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.gallery-category > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-category:hover > img {
  transform: scale(1.06);
}

.gallery-category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 15%,
    rgba(0,0,0,.85) 100%
  );
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
}

.gallery-card-label {
  color: #dfc27d;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.gallery-card-overlay strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.gallery-card-link {
  color: #f4e8ca;
  font-size: .9rem;
}

/* ALBUM POPUP */

.gallery-modal[hidden],
.lightbox[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7,12,10,.9);
  backdrop-filter: blur(8px);
}

.gallery-modal-panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 35px;
  border-radius: 18px;
  background: white;
  color: #202820;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.gallery-modal-header h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
}

.gallery-close,
.lightbox-close {
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  color: #222;
  font-size: 28px;
  cursor: pointer;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.album-grid button {
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
  text-align: left;
}

.album-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.album-grid button span {
  display: block;
  padding: 10px;
  color: #303830;
}

/* FULL PHOTO VIEWER */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 65px 20px 25px;
  background: rgba(0,0,0,.96);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 78vw;
  margin: 0;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 12px;
  color: white;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.lightbox-nav {
  width: 46px;
  height: 56px;
  border: 1px solid #555;
  border-radius: 10px;
  background: #222;
  color: white;
  font-size: 34px;
  cursor: pointer;
}

body.gallery-open {
  overflow: hidden;
}

.gallery-category:focus-visible,
.gallery-close:focus-visible,
.album-grid button:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid #d9b76b;
  outline-offset: 4px;
}

@media(max-width:650px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-category {
    height: 280px;
  }

  .gallery-modal {
    padding: 8px;
  }

  .gallery-modal-panel {
    padding: 18px;
    max-height: 96vh;
  }

  .album-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .lightbox {
    gap: 8px;
    padding: 65px 8px 20px;
  }

  .lightbox figure {
    max-width: calc(100vw - 100px);
  }

  .lightbox-nav {
    width: 32px;
    height: 44px;
  }
}


/* INLINE EXPANDABLE GALLERY */

.inline-album[hidden],
.lightbox[hidden] {
  display: none !important;
}

.inline-album {
  margin-top: 35px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8e4da;
  animation: albumReveal .35s ease;
}

@keyframes albumReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-album-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 15px;
}

.inline-album-header h3 {
  margin: 5px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: #243d30;
}

.inline-photo-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 5px 3px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #b89b60 #eee9df;
}

.inline-photo-scroll button {
  flex: 0 0 270px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f0e9;
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: left;
}

.inline-photo-scroll img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .3s ease;
}

.inline-photo-scroll button:hover img {
  transform: scale(1.04);
}

.inline-photo-scroll button span {
  display: block;
  padding: 12px;
  color: #303830;
  font-size: .9rem;
}

/* CATEGORY ACTIVE STATE */

.gallery-category.active {
  outline: 3px solid #c5a45e;
  outline-offset: 4px;
}

.gallery-category.active .gallery-card-link {
  color: #dfc27d;
}

/* FULL SIZE PHOTO VIEWER */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 65px 20px 25px;
  background: rgba(0,0,0,.96);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 78vw;
  margin: 0;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 12px;
  color: white;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.lightbox-nav {
  width: 46px;
  height: 56px;
  border: 1px solid #555;
  border-radius: 10px;
  background: #222;
  color: white;
  font-size: 34px;
  cursor: pointer;
}

@media(max-width:650px) {
  .inline-album {
    padding: 16px;
  }

  .inline-photo-scroll button {
    flex-basis: 230px;
  }

  .inline-photo-scroll img {
    height: 165px;
  }

  .lightbox {
    gap: 8px;
    padding: 65px 8px 20px;
  }

  .lightbox figure {
    max-width: calc(100vw - 100px);
  }

  .lightbox-nav {
    width: 32px;
    height: 44px;
  }
}


/* GALLERY SCROLL ARROWS */

.gallery-scroll-wrapper {
  position: relative;
  width: 100%;
}

.inline-photo-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  scrollbar-width: thin;
}

.gallery-scroll-btn {
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9c18b;
  border-radius: 50%;
  background: #243d30;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: .25s ease;
}

.gallery-scroll-btn:hover {
  background: #c5a45e;
  color: #17251f;
  transform: scale(1.08);
}

.gallery-scroll-btn.left {
  left: -18px;
}

.gallery-scroll-btn.right {
  right: -18px;
}

.gallery-scroll-btn:disabled {
  opacity: .3;
  cursor: default;
  transform: none;
}

@media(max-width:650px) {
  .gallery-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .gallery-scroll-btn.left {
    left: -8px;
  }

  .gallery-scroll-btn.right {
    right: -8px;
  }
}
/* Footer social icons: YouTube and Instagram */
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.footer-socials .social-icon { width: 18px; height: 18px; flex: 0 0 18px; display: inline-block; }

*  ============================================================
   These styles affect the announcements section on index.html.
   They reuse the church's maroon, gold, and cream theme.
   ============================================================ */

/* Heading above the announcements list. */
.announcement-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.announcement-heading p {
  color: var(--muted);
}

/* Responsive grid containing published announcement cards. */
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Individual announcement card. */
.announcement-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--cream-card);
  box-shadow: var(--shadow-sm);
}

.announcement-card h3 {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Event or posting date displayed above each announcement. */
.announcement-date {
  margin-bottom: 12px;
  color: var(--maroon);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Empty-state message when no announcements are published. */
.announcement-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}


/* ============================================================
   CHURCH ANNOUNCEMENTS — ADMINISTRATOR DASHBOARD
   ============================================================
   These styles are used by announcements-admin.html.
   They are scoped to .announcement-admin-page so that
   existing forms elsewhere on the website are not changed.
   ============================================================ */

/* Main content container. */
.announcement-admin-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 55px 0 90px;
}

.announcement-admin-shell > header {
  margin-bottom: 30px;
}

.announcement-admin-shell > header h1 {
  color: var(--maroon);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.announcement-admin-shell > header a {
  color: var(--maroon);
  font-weight: 600;
}

/* Messages for sign-in, saving, and errors. */
.announcement-admin-status {
  margin: 18px 0 0;
  color: var(--maroon);
  font-weight: 600;
}

/* White panels for the sign-in form, editor, and list. */
.announcement-admin-panel {
  margin: 0 0 28px;
  padding: 32px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  background: var(--cream-card);
  box-shadow: var(--shadow-sm);
}

.announcement-admin-panel h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

/* Form labels and input fields. */
.announcement-admin-page form label {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-weight: 600;
}

.announcement-admin-page form input:not([type="checkbox"]),
.announcement-admin-page form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #dcd0b2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.announcement-admin-page form textarea {
  min-height: 140px;
  resize: vertical;
}

.announcement-admin-page form input:focus-visible,
.announcement-admin-page form textarea:focus-visible,
.announcement-admin-page button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.65);
  outline-offset: 2px;
}

/* Buttons below the forms and beside announcements. */
.announcement-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.announcement-admin-page button {
  padding: 11px 20px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font: 600 0.95rem "Inter", "Noto Sans Ethiopic", sans-serif;
  cursor: pointer;
}

.announcement-admin-page button:hover {
  background: var(--maroon-dark);
}

.announcement-admin-page button.secondary {
  background: transparent;
  color: var(--maroon);
}

.announcement-admin-page button.secondary:hover {
  background: var(--cream-alt);
}

.announcement-admin-page button.danger {
  border-color: #9f2e2e;
  background: #9f2e2e;
}

/* Existing announcement entries displayed below the editor. */
.announcement-admin-item {
  padding: 22px 0;
  border-bottom: 1px solid #e8decb;
}

.announcement-admin-item:last-child {
  border-bottom: 0;
}

.announcement-admin-item h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.announcement-admin-item small {
  color: var(--maroon);
  font-weight: 700;
}

.announcement-admin-item p {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Reduce padding and stack controls on narrow phone screens. */
@media (max-width: 650px) {
  .announcement-admin-shell {
    width: min(100% - 28px, 900px);
    padding-top: 30px;
  }

  .announcement-admin-panel {
    padding: 22px 18px;
  }
  .announcement-card {
    padding: 24px;
  }
  .announcement-admin-actions {
    gap: 10px;
  }
}
/* ===== Floating announcements: scoped to the homepage hero ===== */
.announcement-float { position: absolute; top: 24px; right: 24px; z-index: 3; width: min(340px, calc(100% - 48px)); color: var(--ink); text-shadow: none; }
.announcement-panel { background: var(--cream-card); border-radius: var(--radius); border-top: 4px solid var(--gold); box-shadow: var(--shadow-lg); overflow: hidden; }
.announcement-panel-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 12px 18px; background:var(--maroon-dark); color:var(--gold-light); font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.announcement-float button { font:inherit; cursor:pointer; }
.announcement-panel-header button { border:1px solid #ffffff66; background:transparent; color:white; border-radius:50%; width:34px; height:34px; font-size:22px; line-height:1; }
.announcement-slide { padding:20px; max-height: min(340px, 45vh); overflow:auto; overflow-wrap:anywhere; }
.announcement-slide h3 { margin:8px 0; font-size:1.55rem; }
.announcement-slide p { color:var(--muted); font-size:.9rem; white-space:pre-wrap; margin:10px 0 16px; }
.announcement-slide .announcement-date { color:var(--maroon); font-size:.8rem; }
.announcement-category { display:inline-block; background:var(--cream-alt); color:var(--maroon); padding:3px 10px; border-radius:999px; font-size:.7rem; font-weight:700; text-transform:uppercase; }
.announcement-slide .btn { padding:9px 18px; font-size:.82rem; }
.announcement-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px; border-top:1px solid var(--cream-alt); }
.announcement-controls > button { border:1px solid #dcd0b2; border-radius:50%; background:white; color:var(--maroon); width:34px; height:34px; flex-shrink:0; }
.announcement-dots { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; }
.announcement-dots button { width:20px; height:24px; padding:0; border:0; background:transparent; display:grid; place-items:center; }
.announcement-dots button::after { content:""; width:8px; height:8px; border-radius:50%; background:#dcd0b2; }
.announcement-dots button[aria-current="true"]::after { background:var(--maroon); }
.announcement-reopen { display:block; margin-left:auto; background:var(--gold); color:var(--maroon-dark); border:0; padding:14px 9px; border-radius:10px 0 0 10px; writing-mode:vertical-rl; font-weight:700 !important; }
.announcement-float:has(.announcement-reopen:not([hidden])) { right:0; width:auto; }
.announcement-float button:focus-visible, .announcement-float a:focus-visible { outline:3px solid var(--gold-dark); outline-offset:2px; }
/* Reserve space for the panel rather than covering the church title. */
@media (min-width:1101px) {
  .hero:has(.announcement-panel:not([hidden])):has(.announcement-float:not([hidden])) .hero-content { width:100%; max-width:1160px; padding-right:390px; }
}
/* On smaller screens the panel sits above the title in normal flow. */
@media (max-width:1100px) {
  .hero:has(.announcement-float:not([hidden])) { align-content:center; }
  .announcement-float { position:relative; top:auto; right:auto; margin:20px auto 0; width:min(340px, calc(100% - 32px)); }
  .hero:has(.announcement-panel:not([hidden])):has(.announcement-float:not([hidden])) .hero-content { padding-block:35px 60px; }
  .announcement-float:has(.announcement-reopen:not([hidden])) { margin:12px 0 0 auto; }
}
.announcement-admin-page form select { display:block; width:100%; margin-top:7px; padding:12px 14px; border:1px solid #dcd0b2; border-radius:var(--radius-sm); background:white; color:var(--ink); font:inherit; }
