/* =========================================================
   Harvest Time International Church — site styles
   One stylesheet for every page. Edit the colors here.
   ========================================================= */
:root {
  --navy: #1B2A41;
  --navy-2: #24364F;
  --gold: #C9A23F;
  --gold-deep: #9C7A22;
  --wheat: #F5EFDF;
  --ink: #1F2733;
  --muted: #5B6573;
  --line: #E4E0D5;
  --white: #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--sans);
  padding: .95em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D8B354; color: var(--navy); }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.on-dark .btn-line { color: #fff; }
.on-dark .btn-line:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 60px; width: auto; max-width: 240px; object-fit: contain; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-parent {
  display: block; padding: 10px 12px; border-radius: 8px;
  font: 600 .98rem/1.2 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-parent:hover { color: var(--gold-deep); background: var(--wheat); }
.nav a[aria-current="page"], .nav .is-current > .nav-parent { color: var(--gold-deep); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav .nav-give { background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 18px; margin-left: 6px; }
.nav .nav-give:hover { background: var(--navy-2); color: #fff; }
.nav .nav-give[aria-current="page"] { box-shadow: none; border-radius: 999px; color: var(--gold); }

.has-sub { position: relative; }
.nav-parent::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; box-shadow: 0 14px 30px rgba(27,42,65,.14);
  display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.sub a { font-weight: 500; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .brand img { height: 50px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; z-index: 60; border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 40px; overflow-y: auto;
    display: none;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button.nav-parent { padding: 16px 4px; font-size: 1.15rem; width: 100%; text-align: left; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 10px 14px; }
  .sub a { padding: 10px 4px; font-size: 1.05rem; }
  .nav .nav-give { margin: 18px 0 0; text-align: center; border-radius: 999px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero: the latest service ---------- */
.hero {
  background: var(--navy);
  color: #E9EDF3;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before { /* faint rows of a planted field */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: repeating-linear-gradient(170deg, transparent 0 22px, rgba(201,162,63,.07) 22px 23px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lede { font-size: 1.2rem; color: #C9D2DE; max-width: 34ch; margin-bottom: 1.6em; }
.hero-times { list-style: none; margin: 0 0 2em; padding: 0; display: grid; gap: 10px; }
.hero-times li { display: flex; align-items: baseline; gap: 14px; }
.hero-times strong { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--gold); min-width: 4.4ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.player-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; color: #C9D2DE; font-size: .98rem; }
.player-label b { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #0E1726; border-radius: 6px; overflow: hidden;
}
.hero .frame { box-shadow: 0 0 0 1px rgba(201,162,63,.45), 0 30px 60px rgba(0,0,0,.35); }
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #C9D2DE; }
.frame-empty a { color: var(--gold); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-player { order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-wheat { background: var(--wheat); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Our week (a real sequence, Sunday → Wednesday) ---------- */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.week li { padding: 26px 24px 8px 0; position: relative; }
.week li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.week .day { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.week .time { color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; display: block; }
.week h3 { font-size: 1.2rem; margin-bottom: .4em; }
.week p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr 1fr; }
  .week li:nth-child(3) { padding-left: 0; border-left: 0; }
  .week li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .week { grid-template-columns: 1fr; }
  .week li, .week li + li { padding: 22px 0 6px; border-left: 0; }
  .week li + li { border-top: 1px solid var(--line); }
}

/* ---------- Media pair (Wednesday + podcast) ---------- */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.media-pair h3 { margin-bottom: .2em; }
.media-pair .meta { color: var(--muted); margin-bottom: 14px; }
.podcast-frame { width: 100%; height: 393px; border: 0; border-radius: 6px; display: block; }
@media (max-width: 860px) { .media-pair { grid-template-columns: 1fr; } }

/* ---------- Start here videos ---------- */
.intro-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.intro-video {
  position: relative; display: flex; align-items: flex-end;
  min-height: 220px; padding: 22px; border-radius: 10px; overflow: hidden;
  color: #fff; text-decoration: none; background: var(--navy) center/cover no-repeat;
  border: 0; text-align: left; cursor: pointer; font: inherit;
}
.intro-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,65,.1) 20%, rgba(27,42,65,.88)); }
.intro-video span { position: relative; display: block; }
.intro-video .t { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.intro-video .p { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--gold); font-weight: 600; }
.intro-video .p svg { width: 18px; height: 18px; }
.intro-video:hover .p { text-decoration: underline; }
@media (max-width: 860px) { .intro-videos { grid-template-columns: 1fr; } .intro-video { min-height: 170px; } }

/* ---------- Scripture band ---------- */
.verse { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.verse blockquote { margin: 0 auto; max-width: 820px; }
.verse p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35; margin-bottom: .7em; }
.verse cite { font-style: normal; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.verse-slides { display: grid; }
.verse-slides > * { grid-area: 1 / 1; transition: opacity .6s; }
.verse-slides > [hidden] { display: block; opacity: 0; visibility: hidden; }

/* ---------- Ministries / features ---------- */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 18px; background: var(--wheat); }
.feature h3 { margin-bottom: .2em; }
.feature .when { color: var(--gold-deep); font-weight: 700; display: block; margin-bottom: 10px; }
.feature p { color: var(--muted); }
@media (max-width: 860px) { .feature-list { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Visit band ---------- */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.visit address { font-style: normal; font-size: 1.25rem; font-family: var(--serif); color: var(--navy); margin-bottom: 1em; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Interior page header ---------- */
.page-head { background: var(--navy); color: #C9D2DE; padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: repeating-linear-gradient(170deg, transparent 0 22px, rgba(201,162,63,.07) 22px 23px); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { font-size: 1.2rem; max-width: 52ch; margin: 0; }
.page-head .crumbs { margin-bottom: 14px; font-size: .95rem; }
.page-head .crumbs a { color: var(--gold); }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { font-size: 1.12rem; line-height: 1.7; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }

/* About */
.pastor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pastor figure { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.pastor figure img { width: 100%; border-radius: 10px; background: var(--wheat); }
.pastor figcaption { margin-top: 12px; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.pastor figcaption span { display: block; font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.signoff { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
@media (max-width: 760px) { .pastor { grid-template-columns: 1fr; } .pastor figure { position: static; max-width: 260px; } }

.callout { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 1.6em 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--navy); }
.callout cite { display: block; font: 600 1rem var(--sans); color: var(--gold-deep); margin-top: 8px; font-style: normal; }

/* ---------- Sermon library ---------- */
.library { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.now { margin-top: 16px; }
.now h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .15em; }
.now p { color: var(--muted); margin: 0; }
.now .links { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }

.browse { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.browse-top { padding: 16px; border-bottom: 1px solid var(--line); background: var(--wheat); }
.browse-top label { font-weight: 600; display: block; margin-bottom: 8px; color: var(--navy); }
.search { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #CFC8B6; border-radius: 8px; background: #fff; }
.search:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { font: 600 .92rem/1 var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid #CFC8B6; background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.sermon-list { list-style: none; margin: 0; padding: 0; max-height: min(620px, 70vh); overflow-y: auto; }
.month { position: sticky; top: 0; background: #fff; padding: 12px 16px 6px; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); border-bottom: 1px solid var(--line); z-index: 1; }
.sermon {
  display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center;
  width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
}
.sermon:hover { background: #FBF8EF; }
.sermon[aria-current="true"] { background: var(--wheat); box-shadow: inset 4px 0 var(--gold); }
.sermon .d { text-align: center; line-height: 1; }
.sermon .d b { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--navy); }
.sermon .d small { font-size: .78rem; color: var(--muted); }
.sermon .tt { display: block; font-weight: 600; line-height: 1.3; }
.sermon .sub2 { display: block; font-size: .9rem; color: var(--muted); }
.sermon .new { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--gold); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.empty-note { padding: 24px 16px; color: var(--muted); }
@media (max-width: 900px) { .library { grid-template-columns: 1fr; } .browse { position: static; } .sermon-list { max-height: 460px; } }

/* ---------- Podcast page ---------- */
.listen-on { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.listen-on img { height: 56px; width: auto; }

/* ---------- Embeds (calendar, map, donate) ---------- */
.embed-wide { width: 100%; border: 1px solid var(--line); border-radius: 10px; display: block; background: #fff; }
.cal { height: 720px; }
@media (max-width: 700px) { .cal { height: 620px; } }
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.info-row h3 { font-size: 1.1rem; margin-bottom: .3em; }
.info-row p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .info-row { grid-template-columns: 1fr; } }

.give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 500px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.give-form { width: 100%; }
.give-form iframe { width: 100%; min-width: 250px; height: 900px; border: 0; display: block; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }

/* ---------- Missions ---------- */
.trips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.trip {
  position: relative; display: flex; align-items: flex-end; min-height: 320px; padding: 26px;
  border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none;
  background: var(--navy) center/cover no-repeat;
}
.trip:nth-child(1) { grid-column: span 4; }
.trip:nth-child(2) { grid-column: span 2; }
.trip:nth-child(3) { grid-column: span 6; min-height: 280px; }
.trip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,65,0) 35%, rgba(27,42,65,.9)); transition: background .2s; }
.trip:hover::before { background: linear-gradient(180deg, rgba(27,42,65,.15) 20%, rgba(27,42,65,.95)); }
.trip span { position: relative; }
.trip .t { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.trip .p { color: var(--gold); font-weight: 600; }
.trip:hover .t, .trip:focus-visible .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 760px) { .trips { grid-template-columns: 1fr; } .trip:nth-child(n) { grid-column: auto; min-height: 240px; } }

.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--wheat); cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.support { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 48px; padding: 28px; background: var(--wheat); border-radius: 10px; }
.support h2 { font-size: 1.6rem; margin: 0 0 .2em; }
.support p { margin: 0; color: var(--muted); }
.support .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Salvation ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 8px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { padding-top: 8px; }
.prayer { background: var(--navy); color: #fff; border-radius: 12px; padding: clamp(28px, 5vw, 56px); margin: 40px 0; }
.prayer h2 { color: var(--gold); font-size: 1.4rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.prayer blockquote { margin: 0; }
.prayer p { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.55; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--navy); }
.form input, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #CFC8B6; border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form .note { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Modal (video + photos) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,26,.92); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.modal.open { display: flex; }
.modal-body { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.modal-body img { max-height: 80vh; width: auto; border-radius: 6px; }
.modal-body .frame { width: 100%; }
.modal-cap { color: #D9DFE7; margin-top: 12px; text-align: center; max-width: 70ch; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.modal-nav.prev { left: 12px; } .modal-nav.next { right: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #142033; color: #AFBACA; padding: 64px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-family: var(--serif); color: #fff; font-size: 1.3rem; font-weight: 500; margin-bottom: .7em; }
.site-footer a { color: #DCE3EC; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.6; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 20px; height: 20px; }
.times dt { color: #fff; font-weight: 600; }
.times dd { margin: 0 0 10px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Single page-load moment: hero copy settles in */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }

/* ---------- Home announcements (edited in admin.php) ---------- */
.announce { background: var(--wheat); border-bottom: 1px solid var(--line); padding: clamp(24px, 4vw, 40px) 0; }
.announce[hidden] { display: none; }
.announce-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.announce-track { display: grid; }
.announce-track > .announce-slide { grid-area: 1 / 1; }
.announce-slide[hidden] { display: grid; visibility: hidden; }
.announce-slide.no-img { grid-template-columns: 1fr; max-width: 760px; }
.announce-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #E9E1CC; }
.announce-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .35em; }
.announce-copy p { font-size: 1.1rem; color: var(--ink); max-width: 56ch; }
.announce-copy .announce-when { color: var(--gold-deep); font-weight: 700; margin-bottom: .4em; }
.announce-actions { margin: 1.2em 0 0; }
.announce-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.announce-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #CFC8B6; background: #fff; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; }
.announce-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.announce-dots { display: flex; gap: 8px; }
.announce-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--navy); background: transparent; cursor: pointer; }
.announce-dot[aria-current="true"] { background: var(--navy); }
@media (max-width: 760px) { .announce-slide { grid-template-columns: 1fr; } }
