/* Free Evangelical Church of Heraklion — light-blue edition */
:root {
  color-scheme: light;
  --ink: #18334b;
  --muted: #526b80;
  --paper: #f3f9fe;
  --paper-2: #e7f2fb;
  --white: #fff;
  --accent: #3a94c2;
  --accent-deep: #186791;
  --navy: #163951;
  --navy-dark: #0f2b43;
  --line: rgba(31, 80, 112, .14);
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(31, 87, 124, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.68 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
p { margin: 0 0 1.15rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.13; letter-spacing: -.028em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); max-width: 980px; letter-spacing: -.048em; }
h2 { font-size: clamp(2.05rem, 4.1vw, 3.85rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.56rem); }
.container { width: min(calc(100% - 2.7rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(3.8rem, 6vw, 5.8rem) 0; }
.section--white { background: var(--white); }
.section--soft { background: var(--paper-2); }
.section--dark { color: #eff9ff; background: linear-gradient(125deg, var(--navy), #22587a); }
.eyebrow { color: var(--accent-deep); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .79rem; margin-bottom: .75rem; }
.section--dark .eyebrow { color: #a6defa; }
.lead { color: #405e75; font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.section--dark .lead { color: #d8effc; }
:focus-visible { outline: 3px solid #3f9fd0; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .75rem 1rem; z-index: 100; border-radius: 9px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

/* Header / navigation */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248, 252, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 5px 24px rgba(31, 87, 124, .07); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; gap: .8rem; align-items: center; line-height: 1.15; text-decoration: none; margin-right: auto; font-weight: 800; font-size: .95rem; }
.brand-mark { flex: none; display: block; width: 48px; height: 48px; padding: 3px; object-fit: contain; border-radius: 12px; background: #fffaf0; border: 1px solid #decead; box-shadow: 0 2px 8px rgba(92, 78, 44, .12); }
.brand-text small { display: block; font-size: .72rem; margin-top: .2rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
.nav-links a { text-decoration: none; color: #34536a; font-size: .88rem; font-weight: 750; transition: color .18s; }
.nav-links a:hover { color: var(--accent-deep); }
.nav-links .language-link { border: 1px solid #b5d5e9; background: #e9f5fc; border-radius: 999px; padding: .45rem .8rem; color: var(--accent-deep); }
.menu-button { display: none; border: 0; background: transparent; padding: .5rem; cursor: pointer; }
.menu-button span { display: block; height: 2px; width: 26px; background: var(--ink); margin: 5px 0; }

/* First screen: understated AI-created Mediterranean photo, not a real photo of the church. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.4rem, 7vw, 6.8rem) 0 clamp(3.7rem, 6.2vw, 5.5rem);
  background: linear-gradient(110deg, #f9fcff 5%, #e7f4fd 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  background: url('/assets/images/hero-mediterranean-illustrative.webp?v=20261022-2') center / cover no-repeat;
  opacity: .86;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(249,252,255,.76) 0%, rgba(247,251,255,.68) 27%, rgba(239,248,254,.20) 62%, rgba(232,246,253,.04) 100%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 em { color: #237eae; font-style: normal; }
.hero-copy { color: #44627b; font-size: clamp(1.12rem, 1.9vw, 1.29rem); max-width: 750px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .72rem 1.2rem; border-radius: 999px; border: 1px solid #1d638a; font-weight: 800; font-size: .9rem; text-decoration: none; transition: transform .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: #1e6d96; border-color: #1e6d96; color: #fff; }
.btn--dark:hover { background: #164d70; border-color: #164d70; }
.btn--light { background: rgba(255, 255, 255, .63); color: #1b628b; }
.btn--light:hover { background: #fff; }
.fact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.8rem, 5vw, 4.1rem); background: rgba(255, 255, 255, .58); border: 1px solid #cee5f4; border-radius: 16px; overflow: hidden; }
.fact { padding: 1.2rem 1.35rem; border-right: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact strong { display: block; color: var(--ink); font-size: .97rem; }
.fact span { color: var(--muted); font-size: .85rem; }

/* About: shorten photo to match adjacent copy, not tall portrait */
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: clamp(1.75rem, 4vw, 3.6rem); align-items: center; }
.welcome-grid > div { min-width: 0; }
.welcome-grid > div p:last-child { margin-bottom: 0; }
.current-photo { margin: 0; overflow: hidden; align-self: center; border-radius: var(--radius); border: 1px solid #d3e7f4; background: var(--white); box-shadow: var(--shadow); }
.current-photo img { width: 100%; height: clamp(255px, 28vw, 355px); max-height: 355px; object-fit: cover; object-position: center 12%; }
.current-photo figcaption { padding: .95rem 1.15rem 1rem; font-size: .9rem; line-height: 1.55; color: #526c80; background: #f8fcff; }
.current-photo figcaption strong { color: var(--ink); display: block; margin-bottom: .15rem; font-size: .99rem; }
.current-photo figcaption span { display: block; }

/* Story / photo archive */
.section-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.8rem, 5vw, 5rem); margin-bottom: clamp(2.3rem, 4vw, 3.5rem); }
.section-intro .lead { margin: 0; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 111px; top: 0; bottom: 0; width: 2px; background: #cae5f3; }
.timeline-item { display: grid; grid-template-columns: 86px 1fr; gap: 50px; padding-bottom: 2.35rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year { color: var(--accent-deep); font-weight: 850; text-align: right; }
.timeline-copy { position: relative; max-width: 880px; }
.timeline-copy::before { content: ""; position: absolute; left: -31px; top: .36rem; width: 12px; height: 12px; border: 2px solid var(--accent); background: var(--paper); border-radius: 50%; }
.timeline-copy h3 { color: #1b5275; }
.history-gallery { margin-top: clamp(2.5rem, 5vw, 4.1rem); }
.gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.15rem; }
.gallery-intro h3, .gallery-intro p { margin: 0; }
.gallery-intro p { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-card, .gallery-card--wide { grid-column: auto; }
.gallery-card { display: flex; flex-direction: column; min-width: 0; margin: 0; border-radius: 16px; border: 1px solid #d4e8f5; overflow: hidden; background: var(--white); box-shadow: 0 9px 25px rgba(31, 87, 124, .06); }
.gallery-open { display: block; width: 100%; border: 0; background: #edf6fb; padding: 0; cursor: zoom-in; overflow: hidden; }
.gallery-open img { width: 100%; height: clamp(175px, 19vw, 245px); aspect-ratio: 1.55 / 1; object-fit: cover; object-position: center 42%; transition: transform .26s; }
.gallery-open:hover img { transform: scale(1.03); }
.gallery-card figcaption { padding: .8rem 1rem .95rem; color: #536e82; line-height: 1.48; font-size: .9rem; }
/* A small archive caption tile fills the final cell, avoiding a visually empty gallery row. */
.gallery-archive-note { display: flex; flex-direction: column; justify-content: center; border: 1px solid #cfe4f2; border-radius: 16px; padding: clamp(1.1rem, 2vw, 1.8rem); background: linear-gradient(135deg, #e0f2fc, #cce9f9); color: #225e82; }
.gallery-archive-note .archive-year { display: block; color: #176b99; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.1; font-weight: 850; letter-spacing: -.05em; }
.gallery-archive-note p { margin: .75rem 0 0; font-size: 1rem; font-weight: 700; }

/* Beliefs, meetings, online, and contact */
.beliefs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.belief-card { padding: clamp(1.5rem, 3vw, 2.2rem); background: #fff; border: 1px solid #d6e9f5; border-radius: 17px; }
.belief-card h3 { color: #225a7c; }
.belief-card p:last-child { margin: 0; }
.belief-card--wide { grid-column: 1/-1; }
.faith-note { margin-top: 1.3rem; border-left: 4px solid var(--accent); padding: 1.15rem 1.35rem; border-radius: 0 14px 14px 0; background: #d9edf9; font-weight: 800; }
.text-link { color: var(--accent-deep); text-underline-offset: 3px; font-weight: 750; }
.schedule-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "intro sunday" "intro wednesday" "online interpretation";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: .9rem;
  align-items: stretch;
}
.schedule-intro { grid-area: intro; align-self: start; min-width: 0; }
.schedule-card--sunday { grid-area: sunday; }
.schedule-card--wednesday { grid-area: wednesday; }
.schedule-card { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 1rem; border-radius: 16px; padding: 1.55rem; border: 1px solid rgba(206, 235, 250, .25); background: rgba(255, 255, 255, .08); }
.schedule-card .day { color: #a6defa; font-size: .8rem; letter-spacing: .1em; font-weight: 850; text-transform: uppercase; }
.schedule-card time { white-space: nowrap; display: block; font-size: 1.67rem; font-weight: 850; }
.schedule-card p { color: #e2f3fc; margin: 0; }

/* A possibility, not a promise: English interpretation at Sunday gatherings. */
.interpretation-note { grid-area: interpretation; display:flex; gap:.9rem; align-items:flex-start; padding:1.15rem 1.3rem; border-radius:16px; border:1px solid rgba(193,229,248,.4); background:rgba(217,242,255,.13); color:#eff9ff; }
.interpretation-symbol { display:grid; place-items:center; flex:0 0 auto; height:37px; width:37px; border-radius:11px; background:#d7f0ff; color:#1f5d83; font-size:.75rem; font-weight:900; letter-spacing:.06em; }
.interpretation-note strong { display:block; margin:0 0 .2rem; font-size:1rem; color:#fff; }
.interpretation-note p { margin:0; font-size:.93rem; line-height:1.55; color:#d8effc; }
/* Small, image-free YouTube card on the left, aligned with the EN notice on the right. */
.online-teaser {
  grid-area: online;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 1.15rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(179, 219, 240, .38);
  background: #102f49;
  color: #eff9ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.online-teaser-content { min-width: 0; width: 100%; }
.online-teaser-kicker { margin: 0 0 .28rem; color: #aee4ff; font-weight: 850; font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; }
.online-teaser-description { margin: 0 0 .75rem; color: #e0f3ff; font-size: .88rem; line-height: 1.48; }
.online-teaser-link { display: inline-flex; gap: .65rem; align-items: center; padding: .42rem .82rem .42rem .45rem; border-radius: 999px; background: #fff; color: #174c6f; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 4px 16px rgba(5,24,40,.18); font-size: .84rem; font-weight: 850; line-height: 1.35; text-decoration: none; transition: transform .2s, background .2s; }
.online-teaser-link:hover { transform: translateY(-2px); background: #e4f5ff; }
.online-play-icon { position: relative; display: block; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #e62117; transition: background .18s; }
.online-teaser-link:hover .online-play-icon { background: #c81811; }
.online-play-icon::after { content: ""; position: absolute; top: 9px; left: 12px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.online-external { opacity: .75; font-size: 1.1rem; }

/* Contact / visit invitation. The full-resolution exterior artwork is a separate local asset. */
.section--contact { background: linear-gradient(155deg, #eaf5fc 0%, #f4faff 63%, #eaf5fc 100%); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section--resources { padding-top: 0; }
.section--resources .contact-resources { margin-top: 0; }
.contact-heading { max-width: 810px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.contact-heading h2 { margin-bottom: 0; }
.contact-feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1px solid #c9e4f3; border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: 0 18px 46px rgba(20, 71, 107, .10); }
.contact-photo { position: relative; margin: 0; min-height: 480px; overflow: hidden; background: #d9edf9; }
.contact-photo::after { content: ""; position: absolute; inset: 55% 0 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(12, 39, 58, .48)); }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.contact-photo figcaption { position: absolute; z-index: 1; bottom: 1.25rem; left: 1.5rem; right: 1.5rem; color: #fff; font-size: .95rem; line-height: 1.4; font-weight: 750; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.contact-welcome { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.65rem, 3.6vw, 3.25rem); }
.contact-identity { display: flex; align-items: center; margin-bottom: .45rem; }
.contact-identity img { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 11px; }
.contact-kicker { color: var(--accent-deep); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 850; margin-bottom: .45rem; }
.contact-welcome h3 { color: #1b5275; font-size: clamp(1.65rem, 2.6vw, 2.4rem); margin-bottom: 1.25rem; }
.contact-welcome p:not(.contact-kicker) { color: #405e75; line-height: 1.7; margin-bottom: .95rem; }
.contact-welcome p:last-child { margin-bottom: 0; }
.contact-details { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: clamp(1.3rem, 3vw, 3.1rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.6rem, 3.2vw, 2.7rem); margin-top: 1.1rem; border: 1px solid #d0e6f4; border-radius: 20px; background: #fff; }
.contact-detail { min-width: 0; }
.contact-detail h3 { color: #37627c; text-transform: uppercase; letter-spacing: .08em; font-size: .77rem; margin-bottom: .5rem; }
.contact-detail address { font-style: normal; line-height: 1.55; font-weight: 650; }
.contact-mail { color: var(--accent-deep); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-detail--actions { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.contact-detail--actions .btn { white-space: nowrap; }
.contact-meetings { display: inline-flex; align-items: center; gap: .55rem; padding: .58rem .82rem; color: #185e85; background: #ecf7fe; border: 1px solid #b8dcee; border-radius: 999px; font-size: .87rem; line-height: 1.3; font-weight: 850; text-decoration: none; transition: transform .18s, background .18s, border-color .18s; }
.contact-meetings svg { flex: 0 0 auto; }
.contact-meetings-arrow { margin-left: .3rem; font-size: 1.08rem; }
.contact-meetings:hover { background: #d9f0fc; border-color: #88c4e1; transform: translateY(-2px); }
.contact-resources { margin-top: 1.15rem; padding: clamp(1.35rem, 2.5vw, 1.85rem); border: 1px solid #d0e6f4; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(20,71,107,.045); }
.contact-resources-heading { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.2rem; }
.contact-resources-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; background: #e4f3fc; border: 1px solid #cbe6f4; color: #216c95; border-radius: 12px; }
.contact-resources-label { margin: 0 0 .12rem; color: #224d6a; font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 850; letter-spacing: -.01em; }
.contact-resources-caption { margin: 0; font-size: .83rem; color: #58758a; line-height: 1.5; }
.contact-resource-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: .8rem; list-style: none; padding: 0; margin: 0; }
.contact-resource-list li { display: flex; min-width: 0; }
.contact-resource-list a { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: 1rem 1.05rem; border: 1px solid #d9e9f4; border-radius: 13px; background: #f4f9fe; color: #2c5978; font-size: .85rem; font-weight: 750; line-height: 1.45; text-decoration: none; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.contact-resource-list a:hover { background: #eaf6fe; border-color: #a4d3eb; box-shadow: 0 5px 14px rgba(31,87,124,.08); transform: translateY(-2px); }
.contact-resource-arrow { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #c6dfef; color: #276e98; background: #fff; font-size: 1.03rem; }
.site-footer { background: var(--navy-dark); color: #e3f3fc; padding: clamp(2.4rem, 4vw, 3.25rem) 0 1.45rem; }
.footer-top { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.footer-church-name { color: #fff; font-weight: 850; font-size: 1.05rem; line-height: 1.35; margin: 0 0 .42rem; }
.footer-location { color: #bcd9e9; font-size: .87rem; margin: 0; }
.footer-nav { display: flex; justify-content: flex-end; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; column-gap: clamp(1rem, 2.5vw, 1.6rem); row-gap: .65rem; }
.footer-nav a { color: #d4ebf8; text-decoration: none; font-size: .88rem; font-weight: 650; line-height: 1.5; border-bottom: 1px solid transparent; }
.footer-nav a:hover { color: #fff; border-bottom-color: #8fd4f6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(215,239,252,.20); margin-top: 2rem; padding-top: 1.25rem; }
.footer-bottom p { font-size: .82rem; color: #bad4e3; margin: 0; }
.footer-language { display: inline-flex; align-items: center; padding: .42rem .82rem; border: 1px solid rgba(188,224,244,.33); border-radius: 999px; color: #e5f7ff; font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.footer-language:hover { background: rgba(255,255,255,.12); border-color: rgba(188,224,244,.65); }

/* Click-to-expand archival photos */
.lightbox { border: 0; border-radius: 15px; padding: 0; max-height: 92vh; max-width: min(1100px, 94vw); color: #fff; background: #102d43; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(5, 22, 37, .86); }
.lightbox img { object-fit: contain; max-width: min(1100px, 94vw); max-height: 78vh; }
.lightbox p { padding: .75rem 1.2rem; font-size: .9rem; margin: 0; text-align: center; }
.lightbox-close { position: absolute; top: .6rem; right: .6rem; width: 39px; height: 39px; font-size: 1.7rem; border-radius: 99px; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }

@media (max-width: 1050px) {
  .contact-resource-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-resource-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .menu-button { display: block; }
  .nav-links { display: none; position: fixed; inset: 76px 0 auto; padding: 1.4rem 1.5rem 1.8rem; flex-direction: column; align-items: flex-start; gap: 1.1rem; background: #f5fbff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 25px rgba(20, 55, 78, .08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .schedule-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "sunday" "wednesday" "interpretation" "online";
    gap: 1rem;
  }
  .schedule-intro { margin-bottom: .35rem; }
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-nav { justify-content: flex-start; }
  .contact-feature { grid-template-columns: 1fr; }
  .contact-photo { min-height: 380px; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .contact-detail--actions { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; }

  .welcome-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .current-photo { width: 100%; max-width: none; }
  .current-photo img { height: clamp(270px, 43vw, 370px); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Preserve the complete archival photo on tablets and phones, rather than cropping it. */
  .gallery-open img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; }
  .gallery-open:hover img { transform: none; }
  .gallery-archive-note { min-height: 200px; }
}
@media (max-width: 680px) {
  .online-teaser { padding: 1.15rem 1.2rem; }
  .online-teaser-link { max-width: 100%; }
  .contact-resource-list { grid-template-columns: 1fr; }
  .contact-resource-list li:last-child:nth-child(odd) { grid-column: auto; }
  .contact-feature { border-radius: 18px; }
  .contact-photo { min-height: 260px; aspect-ratio: 16 / 10; }
  .contact-photo img { object-position: 53% center; }
  .contact-photo figcaption { left: 1.1rem; bottom: .9rem; }
  .contact-welcome { padding: 1.45rem; }
  .contact-details { grid-template-columns: 1fr; padding: 1.35rem; }
  .contact-detail--actions { grid-column: auto; flex-direction: column; align-items: flex-start; }

  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .brand { font-size: .86rem; }
  .brand-text { max-width: 235px; }
  .brand-text small { font-size: .65rem; }
  .hero { padding-top: 3.5rem; }
  .hero::before { width: 100%; opacity: .78; background-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, rgba(249,252,255,.82), rgba(249,252,255,.58)); }
  .fact-strip { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; }
  .fact:last-child { border: 0; }
  .timeline::before { left: 13px; }
  .timeline-item { grid-template-columns: 1fr; gap: .45rem; padding-left: 42px; }
  .timeline-year { text-align: left; }
  .timeline-copy::before { left: -35px; top: -1.65rem; }
  .current-photo img { height: 280px; object-position: center 10%; }
  .gallery-grid, .beliefs-grid, .contact-grid { grid-template-columns: 1fr; }
  .belief-card--wide { grid-column: auto; }
  .gallery-intro { display: block; }
  .gallery-intro p { margin-top: .45rem; }
  .gallery-archive-note { min-height: 165px; }
  .schedule-card { grid-template-columns: 1fr; gap: .4rem; }
  .schedule-card time { font-size: 1.5rem; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: .65rem .9rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
