/* Mar Abraham Chaldean Catholic Church - site stylesheet
   Palette & type matched from the live site (marabrahamcc.org / eCatholic theme):
   rose #A05A5A (nav / accent), dark plum #361F28 (headings / buttons),
   body copy in a Crimson Pro serif, display headings in a bold serif (Bayley substitute). */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --rose: #a05a5a;
  --rose-dark: #874a4a;
  --rose-light: rgba(160, 90, 90, 0.1);
  --dark: #361f28;
  --text: #2b2726;
  --muted: #69615d;
  --bg: #ffffff;
  --border: #e7e1dc;
  --heading-font: 'Fraunces', 'Georgia', serif;
  --body-font: 'Crimson Pro', 'Georgia', serif;
  --footer-maroon: #6b2c2c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.15rem;
}

p { text-align: justify; }

a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--dark); }

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.15;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: #fff;
  padding: 0;
  border-top: 4px solid var(--dark);
  text-align: center;
}
.header-inner {
  display: block;
  padding: 18px 24px 16px;
}
.site-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.site-title h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.4px;
}
.site-title::before,
.site-title::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: var(--border);
  align-self: center;
}
.site-title p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--body-font);
}
.site-title a { color: inherit; }
.site-title-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

/* Nav */
nav.main-nav {
  background: var(--rose);
}
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
nav.main-nav > .container > ul > li {
  position: relative;
}
nav.main-nav a,
nav.main-nav .nav-label {
  display: block;
  color: #fff;
  padding: 15px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--body-font);
}
nav.main-nav a:hover {
  background: rgba(0,0,0,0.1);
}
/* Category label for a dropdown that isn't itself a page (e.g. "About
   Us" now just groups Mar Abraham Parish / Parish Registration Form /
   30 Years of Memories) — no hover highlight, since it's not clickable. */
nav.main-nav .nav-label {
  cursor: default;
}
nav.main-nav .has-sub:hover .sub-menu {
  display: block;
}
nav.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  min-width: 260px;
  z-index: 50;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
nav.main-nav .has-sub-sub { position: relative; }
nav.main-nav .has-sub-sub:hover .sub-sub-menu { display: block; }
nav.main-nav .sub-sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--dark);
  min-width: 220px;
  z-index: 60;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
nav.main-nav .sub-sub-menu a {
  padding: 12px 20px;
  font-weight: 400;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
nav.main-nav .sub-menu a {
  padding: 12px 20px;
  font-weight: 400;
  border-top: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--body-font);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Fixed social rail (matches the live site's right-edge icon column) */
.social-rail {
  position: fixed;
  top: 190px;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.social-rail a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.social-rail a:hover { background: var(--dark); color: #fff; }
.social-rail a svg { width: 18px; height: 18px; }

/* Call button: mobile only, hidden on desktop since tap-to-call isn't useful there */
.mobile-call-btn {
  display: none;
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.mobile-call-btn:hover { background: var(--rose); }

/* Floating call-to-action (matches "Mass Times & Directions" pill) */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  background: var(--dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 40px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.floating-cta:hover { background: var(--rose); color: #fff; }
@media (max-width: 700px) {
  .social-rail { display: none; }
  .floating-cta { padding: 12px 16px; font-size: 0.85rem; }
  .mobile-call-btn { display: flex; }
}

.spotify-embed {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin-top: 6px;
}

/* Hero */
.hero-image {
  width: 100%;
  height: 60vh;
  min-height: 340px;
  max-height: 560px;
  object-fit: cover;
  display: block;
}
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-intro {
  padding: 56px 0 20px;
  text-align: left;
}
.hero-intro h2 {
  font-size: 2.6rem;
  margin: 0 0 12px;
}
.hero-intro p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 640px;
  text-align: left;
}

/* Schedule rows (matches live site's Mass schedule typography) */
.schedule-group {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.schedule-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.schedule-group h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.schedule-group .event-name {
  font-weight: 700;
  font-style: italic;
  margin: 0 0 8px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 160px 105px 1fr;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0 0 14px;
  text-align: left;
}
.schedule-row .day-label {
  font-weight: 700;
  white-space: nowrap;
}
.schedule-row .time {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.schedule-row .detail {
  color: var(--muted);
}
.schedule-row .detail.full {
  grid-column: 2 / 4;
}

/* Page title (plain, matches live site's simple underlined heading) */
.page-banner {
  background: none;
  padding: 48px 0 20px;
  text-align: left;
}
.page-banner h2 {
  margin: 0 0 18px;
  font-size: 2.75rem;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark);
}

/* Sections */
section.block {
  padding: 46px 0;
}
section.block.alt { background: #faf8f6; }

.section-title {
  color: var(--dark);
  font-family: var(--heading-font);
  font-size: 2.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.social-embeds { margin-top: 24px; }
.social-embed-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--dark);
  margin: 0 0 14px;
}
.social-embed-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-embed-box .fb-page,
.social-embed-box iframe { max-width: 100%; }

/* Instagram's embed script doesn't always successfully hydrate the
   blockquote into a rich post card (common for visitors with ad blockers,
   tracking protection, or who aren't logged into Instagram) — when it
   doesn't, it leaves just a plain text link. These rules override
   Instagram's inline styles on that fallback so it reads as an
   intentional, branded button instead of a bare, broken-looking link.
   They have no effect once the embed successfully hydrates, since
   Instagram replaces the blockquote's contents with its own iframe. */
.instagram-media {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
.instagram-media a {
  display: inline-block;
  background: var(--dark);
  color: #fff !important;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
}
.instagram-media a:hover { background: var(--rose); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card h4 {
  margin: 14px 0 10px;
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--dark);
}
.video-card .btn-outline { margin: 4px 6px 4px 0; }

.lesson-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.lesson-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.lesson-slider-track::-webkit-scrollbar { display: none; }
.lesson-slider-track .video-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.lesson-slider-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-slider-btn:hover { background: var(--dark); color: #fff; }
.video-slider-status { color: var(--muted); padding: 20px 0; }
.playlist-embed {
  width: 100%;
  max-width: 640px;
  margin-top: 24px;
}
.playlist-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 4px;
  display: block;
}
@media (max-width: 700px) {
  .playlist-embed iframe { height: 280px; }
}
@media (max-width: 700px) {
  .lesson-slider-track .video-card { flex-basis: 260px; }
}

.sacraments-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--border);
  background: #fff;
}
.sacraments-sidebar {
  background: #eee;
  border-right: 1px solid var(--border);
}
.sac-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  background: #eee;
  border: none;
  border-bottom: 1px solid #ddd;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1rem;
  cursor: pointer;
}
.sac-tab.active {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
}
.sacraments-content {
  padding: 36px;
}
.sac-panel p { margin: 0 0 18px; }
.sac-panel .btn { display: inline-block; margin-bottom: 24px; }
.sac-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}
.sac-doc-links .btn-outline,
.sac-doc-links .btn { margin: 0; align-self: center; }
.sac-panel img {
  width: 100%;
  max-width: 640px;
  border-radius: 4px;
  display: block;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .sacraments-layout { grid-template-columns: 1fr; }
  .sacraments-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .sacraments-content { padding: 24px; }
}

.about-img {
  max-width: 100%;
  border-radius: 4px;
  margin: 0 0 20px;
  display: block;
}
.about-img-float {
  max-width: 220px;
  float: left;
  margin: 4px 24px 16px 0;
}
@media (max-width: 700px) {
  .about-img-float { float: none; max-width: 100%; margin: 0 0 20px; }
}
#fb-embed-placeholder {
  display: block;
  height: 500px;
  overflow-y: auto;
  align-items: stretch;
}
/* Instagram's embed, unlike Facebook's, often only renders a plain
   fallback button (see .instagram-media rules above) instead of a full
   post card. A fixed height here left a large empty gap below the
   button, since block/stretch layout doesn't center short content
   vertically. Auto height + centering lets the box fit whatever it
   actually renders — a short fallback button or a full hydrated post. */
#ig-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

/* Cards - flattened to match the site's plain, borderless content blocks */
.card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: 22px 0 0;
}
.card h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin-top: 0;
}
.card p { text-align: left; }
.card ul { padding-left: 20px; margin: 10px 0; }
.card li { margin-bottom: 8px; }

.card-image {
  position: relative;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(54,31,40,0.85) 0%, rgba(54,31,40,0.25) 50%, rgba(54,31,40,0) 70%);
}
.card-image-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.35rem;
}
.card-image.tall {
  height: 420px;
  margin-bottom: 0;
}
a.card.image-card {
  display: block;
  padding: 0;
  border: none;
}

.btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 10px;
}
.btn:hover { background: var(--rose); color: #fff; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 4px 6px 4px 0;
}
.btn-outline:hover { background: var(--dark); color: #fff; }

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  border-bottom: 1px solid var(--border);
}
.link-list a {
  display: block;
  padding: 14px 4px;
  color: var(--dark);
  font-weight: 600;
}
.link-list a:hover { color: var(--rose); }

.event-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
}
.event-date {
  min-width: 210px;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--body-font);
}

/* Events page: stacked list + calendar toggle (matches live site) */
.page-banner-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark);
}
.page-banner-flex h2 {
  margin: 0;
  padding: 0;
  border: none;
}
.calendar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--rose-dark);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.calendar-toggle-btn:hover { color: var(--dark); }

.event-list {
  max-width: 760px;
}
.event-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-when {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.event-title {
  font-family: var(--body-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px 6px 0 0;
}
.cal-toolbar h3 {
  margin: 0;
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 220px;
  text-align: center;
}
.cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.cal-nav:hover { color: var(--rose); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-nav:disabled:hover { color: #fff; }

.cal-month-table {
  border: 1px solid var(--border);
  border-top: none;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--rose-light);
}
.cal-dow-row span {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  border-right: 1px solid var(--border);
}
.cal-dow-row span:last-child { border-right: none; }

.cal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-cell {
  min-height: 110px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell-num {
  display: block;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cal-cell.other-month .cal-cell-num { color: #c9c1ba; font-weight: 400; }
.cal-cell-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-event {
  display: block;
  font-size: 0.78rem;
  color: var(--rose-dark);
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.cal-event-time { font-weight: 700; }
.cal-event-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}
.cal-event-note {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 700px) {
  .cal-cell { min-height: 70px; font-size: 0.85rem; }
  .cal-event { font-size: 0.7rem; }
  .cal-toolbar h3 { min-width: 0; font-size: 0.85rem; }
}

/* Mass Times & Directions modal (triggered by the floating pill on every page) */
.mt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mt-modal-overlay[hidden] { display: none; }
.mt-modal {
  background: #fff;
  width: 100%;
  max-width: 1000px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.mt-modal-header {
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-shrink: 0;
}
.mt-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}
.mt-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.mt-modal-close:hover { color: var(--rose); }
.mt-modal-tabs {
  display: flex;
  background: var(--dark);
  flex-shrink: 0;
}
.mt-tab {
  flex: 1;
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  border: none;
  padding: 14px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.mt-tab.active { background: #fff; color: var(--rose-dark); }
.mt-modal-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding: 28px;
  overflow-y: auto;
}
@media (max-width: 800px) {
  .mt-modal-body { grid-template-columns: 1fr; }
}
.mt-tab-panel h4 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}
.mt-tab-panel h4:first-child { margin-top: 0; }
.mt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.mt-row:last-child { border-bottom: none; }
.mt-day {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 0.85rem;
  flex: 0 0 130px;
}
.mt-time { font-weight: 700; color: var(--text); white-space: nowrap; }
.mt-detail {
  color: var(--muted);
  font-style: italic;
  text-align: left;
  flex-basis: 100%;
  margin-left: 130px;
  margin-top: 3px;
}
.mt-event-name { font-weight: 700; font-style: italic; margin: 0 0 6px; }
.mt-note { margin-top: 14px; color: var(--text); }
.mt-schedule-btn { display: inline-block; margin-top: 18px; }
.mt-modal-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mt-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.mt-modal-actions .btn,
.mt-modal-actions .btn-outline {
  margin-top: 0;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.mt-modal-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.mt-modal-note a { font-weight: 600; }

.figure {
  margin: 0 0 20px;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}

.parish-form {
  max-width: 780px;
  margin-top: 30px;
}
.parish-form h3 {
  margin: 34px 0 14px;
  font-size: 1.3rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.parish-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}
.parish-form legend {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  padding: 0;
}
.req { color: var(--rose-dark); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.form-grid-2 .form-row,
.form-grid-3 .form-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
.radio-label, .checkbox-label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  cursor: pointer;
}
.radio-label.inline, .checkbox-label.inline {
  display: inline-block;
  margin-right: 18px;
}
.radio-label input, .checkbox-label input { margin-right: 6px; }
.dependent-row {
  display: grid;
  grid-template-columns: 1fr 1fr 140px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .dependent-row { grid-template-columns: 1fr; }
}
.dependent-row .form-row { margin-bottom: 0; }
.remove-dependent-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--rose-dark);
  padding: 9px 12px;
  cursor: pointer;
  font-family: var(--body-font);
}
.remove-dependent-btn:hover { background: var(--rose-light); }
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 20px 0 4px;
}
.fc-schedule {
  margin: 8px 0 4px;
  border-top: 1px solid var(--border);
}
.fc-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.fc-schedule-center {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 0.8rem;
  flex: 0 0 120px;
}
.fc-schedule-time { font-weight: 700; color: var(--text); white-space: nowrap; }
.fc-schedule-detail { color: var(--muted); font-style: italic; }
.parish-form button[type="submit"] { margin-top: 10px; }
.form-status {
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0 0;
}
.form-status.success { background: #e9f3e9; color: #2b6b2b; }
.form-status.error { background: #fbe9e9; color: #a3312c; }

.callout {
  background: #faf3f1;
  border-left: 3px solid var(--rose);
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { text-align: left; }
.callout-list {
  margin: 0 0 14px;
  padding-left: 20px;
}
.callout-list:last-child { margin-bottom: 0; }
.callout-list li {
  text-align: left;
  margin-bottom: 8px;
  line-height: 1.55;
}
.callout-list li:last-child { margin-bottom: 0; }

table.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-family: var(--body-font);
}
table.schedule th, table.schedule td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
table.schedule th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--body-font);
  font-size: 1.1rem;
}
.faq p { margin: 12px 0 0; text-align: left; }

/* Footer */
footer.site-footer {
  background: var(--footer-maroon);
  color: rgba(255,255,255,0.85);
  padding: 44px 0 24px;
  font-size: 0.92rem;
  font-family: var(--body-font);
}
.footer-logo {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { text-align: left; }
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}
@media (max-width: 800px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}
footer.site-footer h4 {
  color: #fff;
  font-family: var(--heading-font);
  margin-top: 0;
  font-size: 1.05rem;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
  .site-title h1 { font-size: 1.3rem; }
  .site-title::before, .site-title::after { display: none; }
  .header-logo { width: 42px; height: 42px; }
  nav.main-nav .container > ul { display: none; flex-direction: column; }
  nav.main-nav .container > ul.open { display: flex; }
  nav.main-nav .sub-menu { position: static; display: block; box-shadow: none; }
  nav.main-nav .sub-sub-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
  .nav-toggle { display: block; }
  .hero-intro h2, .page-banner h2 { font-size: 1.9rem; }
}
.give-dots {
  text-align: center;
  color: var(--rose);
  letter-spacing: 10px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.scripture-quote {
  border-left: 3px solid var(--rose);
  padding: 4px 24px;
  margin: 24px 0;
}
.scripture-quote p {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
}
.scripture-quote cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--rose-dark);
}

.membership-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin: 32px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--dark);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}
.membership-info h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 8px;
}
.membership-info p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 480px;
}
.membership-action {
  text-align: center;
  flex-shrink: 0;
}
.membership-price {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.membership-price span { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.membership-submit-btn {
  background: #fff;
  color: var(--dark);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.membership-submit-btn:hover { background: var(--rose); color: #fff; }
.membership-submit-btn:disabled { opacity: 0.6; cursor: default; }
#membershipStatus { margin-top: 10px; text-align: left; }
@media (max-width: 700px) {
  .membership-box { flex-direction: column; align-items: stretch; text-align: center; }
  .membership-info p { max-width: none; }
}

.donate-box {
  width: 100%;
  margin: 32px 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #faf8f6;
  box-shadow: 0 2px 10px rgba(54, 31, 40, 0.06);
}
.donate-box h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}
.donate-col { min-width: 0; }
@media (max-width: 700px) {
  .donate-grid { grid-template-columns: 1fr; gap: 0; }
  .donate-col:first-child { margin-bottom: 20px; }
}
.donate-toggle {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.donate-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 40px;
  border: 1.5px solid var(--dark);
  background: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.donate-toggle-btn.active { background: var(--dark); color: #fff; }
.donate-frequency {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.donate-frequency[hidden] { display: none; }
.donate-freq-btn {
  padding: 9px 6px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.donate-freq-btn:hover { border-color: var(--rose); }
.donate-freq-btn.active { border-color: var(--dark); background: var(--dark); color: #fff; }
@media (max-width: 480px) {
  .donate-frequency { grid-template-columns: repeat(2, 1fr); }
}
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.donate-amount-btn {
  padding: 12px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.donate-amount-btn:hover { border-color: var(--rose); }
.donate-amount-btn.active { border-color: var(--dark); background: var(--dark); color: #fff; }
.donate-custom-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.donate-custom-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  margin-bottom: 6px;
}
.donate-dollar { color: var(--muted); font-weight: 700; margin-right: 4px; }
.donate-custom-row input {
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1rem;
  width: 100%;
  background: none;
}
.donate-submit-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 16px;
}
.donate-submit-btn:disabled { opacity: 0.6; cursor: default; }
.donate-secure-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* "Cover the processing fee" checkbox, used in both the light donate box
   and the dark membership box — base styles target the light context,
   the .membership-box override below adjusts colors for the dark one. */
.fee-cover-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 16px;
  cursor: pointer;
  background: #fff;
}
.fee-cover-box:hover { border-color: var(--rose); }
.fee-cover-box:has(input:checked) {
  border-color: var(--rose);
  background: #faf3f1;
}
.fee-cover-box input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--rose-dark);
  cursor: pointer;
}
.fee-cover-text { display: flex; flex-direction: column; gap: 2px; }
.fee-cover-label { font-weight: 700; font-size: 0.92rem; color: var(--dark); }
.fee-cover-note { font-size: 0.8rem; color: var(--muted); }

.membership-box .fee-cover-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  margin-top: 14px;
  text-align: left;
}
.membership-box .fee-cover-box:hover { border-color: #fff; }
.membership-box .fee-cover-box:has(input:checked) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.membership-box .fee-cover-label { color: #fff; }
.membership-box .fee-cover-note { color: rgba(255, 255, 255, 0.7); }
.give-secondary-grid { margin-top: 8px; }
.mail-address {
  line-height: 1.7;
  border-left: 2px solid var(--rose);
  padding-left: 14px;
  margin-top: 12px;
}
.mail-address strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--dark);
}
.card-phone-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rose-dark);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
}
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.gallery-grid-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.gallery-grid-item:hover img { transform: scale(1.05); }
#viewAlbumBtn { margin-top: 20px; }
@media (max-width: 900px) {
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}

.gallery-slideshow {
  max-width: 820px;
  margin: 24px auto 0;
}
.gallery-slideshow-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0ece4;
}
.gallery-slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-slideshow-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.gallery-slideshow-prev { left: 12px; }
.gallery-slideshow-next { right: 12px; }
.gallery-cta { text-align: center; margin-top: 20px; }
@media (max-width: 640px) {
  .gallery-slideshow-arrow { width: 36px; height: 36px; font-size: 1.6rem; }
}

.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 20px 0;
}
@media (max-width: 1000px) {
  .gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid-full { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 14, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-overlay[hidden] { display: none; }
.gallery-lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-lightbox-content img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-lightbox-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  color: #fff;
}
.gallery-lightbox-bar .btn { padding: 8px 18px; font-size: 0.9rem; }
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.gallery-lightbox-prev { left: 18px; }
.gallery-lightbox-next { right: 18px; }
@media (max-width: 640px) {
  .gallery-lightbox-nav { width: 42px; height: 42px; font-size: 2rem; }
  .gallery-lightbox-prev { left: 6px; }
  .gallery-lightbox-next { right: 6px; }
  .gallery-lightbox-close { top: 10px; right: 14px; }
}
