:root {
  --ui-scale: 0.88;
  --bg: #fdfcfa;
  --ink: #0e0f10;
  --muted: rgba(14, 15, 16, 0.72);
  --tan: #c7aa88;
  --tan-2: #ccbaa2;
  --card: #d6d8cc;
  --card-2: #cfcfc7;
  --shadow: 0 calc(22px * var(--ui-scale)) calc(60px * var(--ui-scale))
    rgba(14, 15, 16, 0.14);
  --radius: calc(38px * var(--ui-scale));
  --radius-sm: calc(22px * var(--ui-scale));
  --container: calc(1080px * var(--ui-scale));
  --header-h: calc(76px * var(--ui-scale));
  --editor-h: 0px;

  --font-sans: "League Spartan", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Lucida Calligraphy", cursive;
}

/* Hide content until JS loads it - prevents flash of old/placeholder content */
body:not(.content-loaded) main {
  opacity: 0;
}

body.content-loaded main {
  opacity: 1;
  transition: opacity 0.15s ease-out;
}

@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&family=Pinyon+Script&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: calc(16px * var(--ui-scale));
  background: var(--bg);
  position: relative;
  padding-top: var(--header-h);
}

body.editor-on {
  padding-top: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/images/texture.png");
  background-repeat: repeat;
  background-size: 920px auto;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.container {
  width: min(
    var(--container),
    calc(100% - calc(32px * var(--ui-scale)))
  );
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: calc(16px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  background: var(--bg);
  border-radius: calc(12px * var(--ui-scale));
  box-shadow: var(--shadow);
  z-index: 9999;
}

.skip-link:focus {
  left: calc(16px * var(--ui-scale));
}

.site-header {
  position: fixed;
  top: var(--editor-h);
  left: 0;
  right: 0;
  z-index: 50;
  padding: calc(12px * var(--ui-scale)) 0;
  background: rgba(253, 252, 250, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 15, 16, 0.08);
}

body.editor-on .site-header {
  position: sticky;
  top: var(--editor-h);
  padding: calc(4px * var(--ui-scale)) 0;
}

body.editor-on .site-logo {
  display: none;
}

body.editor-on .site-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: calc(6px * var(--ui-scale));
  overflow-x: auto;
  white-space: nowrap;
}

body.editor-on .nav-link {
  font-size: calc(12px * var(--ui-scale));
  padding: calc(6px * var(--ui-scale)) calc(8px * var(--ui-scale));
}

body.editor-on .header-inner {
  flex-wrap: nowrap;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: calc(14px * var(--ui-scale));
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-logo-img {
  height: calc(46px * var(--ui-scale));
  width: auto;
}

.site-nav {
  display: flex;
  gap: calc(4px * var(--ui-scale));
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-link {
  font-size: calc(15px * var(--ui-scale));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: calc(10px * var(--ui-scale)) calc(10px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(14, 15, 16, 0.06);
}

.nav-link[aria-current] {
  border-color: rgba(14, 15, 16, 0.18);
  background: rgba(199, 170, 136, 0.18);
}

@media (max-width: 1100px) {
  body:not(.editor-on) .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(6px * var(--ui-scale));
    row-gap: calc(6px * var(--ui-scale));
  }

  body:not(.editor-on) .nav-link {
    font-size: calc(13px * var(--ui-scale));
    padding: calc(8px * var(--ui-scale)) calc(8px * var(--ui-scale));
  }
}


section,
.site-footer,
#location {
  scroll-margin-top: calc(var(--header-h) + calc(16px * var(--ui-scale)));
}

.hero {
  padding: calc(18px * var(--ui-scale)) 0 calc(6px * var(--ui-scale));
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 15, 16, 0.08);
  aspect-ratio: 16 / 9;
}

.hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
      1200px 500px at 22% 86%,
      rgba(14, 15, 16, 0.55),
      transparent 60%
    ),
    linear-gradient(to top, rgba(14, 15, 16, 0.36), transparent 55%);
}

.hero-content {
  position: absolute;
  left: calc(22px * var(--ui-scale));
  bottom: calc(18px * var(--ui-scale));
  max-width: min(70%, calc(680px * var(--ui-scale)));
  color: white;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.46);
  z-index: 3;
}

.hero-title {
  font-size: clamp(
    calc(32px * var(--ui-scale)),
    calc(5vw * var(--ui-scale)),
    calc(56px * var(--ui-scale))
  );
  line-height: 1;
  margin: 0 0 calc(8px * var(--ui-scale));
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(
    calc(18px * var(--ui-scale)),
    calc(2.6vw * var(--ui-scale)),
    calc(30px * var(--ui-scale))
  );
  margin: 0 0 calc(6px * var(--ui-scale));
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-meta {
  font-size: clamp(
    calc(13px * var(--ui-scale)),
    calc(1.7vw * var(--ui-scale)),
    calc(20px * var(--ui-scale))
  );
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-crest {
  position: absolute;
  right: calc(28px * var(--ui-scale));
  bottom: calc(28px * var(--ui-scale));
  width: clamp(
    calc(120px * var(--ui-scale)),
    calc(20vw * var(--ui-scale)),
    calc(260px * var(--ui-scale))
  );
  height: auto;
  filter: drop-shadow(
    0 calc(14px * var(--ui-scale)) calc(28px * var(--ui-scale))
      rgba(0, 0, 0, 0.45)
  );
  opacity: 0.98;
  z-index: 3;
}

.hero-quote {
  margin: calc(16px * var(--ui-scale)) auto 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(
    calc(18px * var(--ui-scale)),
    calc(2.6vw * var(--ui-scale)),
    calc(36px * var(--ui-scale))
  );
  line-height: 1.2;
  max-width: calc(980px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.82);
}

.hero-quote p {
  margin: 0;
}

.hero-quote cite {
  display: block;
  margin-top: calc(8px * var(--ui-scale));
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(
    calc(14px * var(--ui-scale)),
    calc(2vw * var(--ui-scale)),
    calc(20px * var(--ui-scale))
  );
  opacity: 0.85;
}

.section {
  padding: calc(26px * var(--ui-scale)) 0;
}

.grid-2 {
  display: grid;
  gap: calc(18px * var(--ui-scale));
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.card {
  border-radius: var(--radius);
  padding: calc(22px * var(--ui-scale));
  border: 1px solid rgba(14, 15, 16, 0.08);
  box-shadow: 0 calc(18px * var(--ui-scale)) calc(50px * var(--ui-scale))
    rgba(14, 15, 16, 0.09);
}

.card-muted {
  background: color-mix(in srgb, var(--card), white 8%);
}

.card-tan {
  background: color-mix(in srgb, var(--tan), white 12%);
}

.section-title {
  margin: 0 0 calc(12px * var(--ui-scale));
  font-size: clamp(
    calc(28px * var(--ui-scale)),
    calc(3.2vw * var(--ui-scale)),
    calc(42px * var(--ui-scale))
  );
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 800;
}

.center {
  text-align: center;
}

.body-text {
  margin: 0;
  font-size: calc(18px * var(--ui-scale));
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(14, 15, 16, 0.86);
}

.leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(14px * var(--ui-scale));
}

.leaders .leader:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.leader {
  margin: 0;
  text-align: center;
}

.leader img {
  width: calc(110px * var(--ui-scale));
  height: calc(110px * var(--ui-scale));
  object-fit: cover;
  border-radius: 999px;
  border: calc(6px * var(--ui-scale)) solid rgba(253, 252, 250, 0.65);
  box-shadow: 0 calc(18px * var(--ui-scale)) calc(40px * var(--ui-scale))
    rgba(14, 15, 16, 0.18);
  margin: 0 auto calc(10px * var(--ui-scale));
  cursor: zoom-in;
}

.leader-kicker {
  margin: 0;
  font-size: calc(12px * var(--ui-scale));
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(14, 15, 16, 0.62);
}

.leader-name {
  margin: calc(6px * var(--ui-scale)) 0 calc(6px * var(--ui-scale));
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: calc(15px * var(--ui-scale));
  line-height: 1.15;
}

.leader-role {
  margin: 0;
  font-size: calc(12px * var(--ui-scale));
  line-height: 1.25;
  color: rgba(14, 15, 16, 0.7);
}

.events-stack {
  display: grid;
  gap: calc(18px * var(--ui-scale));
}

.flyer-card {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1385 / 1004;
}

.flyer-picture {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(253, 252, 250, 0.22);
}

.flyer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notice-grid {
  display: grid;
  gap: calc(16px * var(--ui-scale));
  margin-top: calc(14px * var(--ui-scale));
}

@media (min-width: 860px) {
  .notice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.notice-item {
  background: rgba(253, 252, 250, 0.35);
  border: 1px solid rgba(14, 15, 16, 0.1);
  border-radius: var(--radius-sm);
  padding: calc(16px * var(--ui-scale)) calc(16px * var(--ui-scale))
    calc(14px * var(--ui-scale));
}

.notice-title {
  margin: 0 0 calc(10px * var(--ui-scale));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: calc(16px * var(--ui-scale));
}

.notice-list {
  margin: 0;
  padding-left: calc(18px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.82);
  line-height: 1.35;
}

.notice-list li + li {
  margin-top: calc(8px * var(--ui-scale));
}

.notice-empty {
  list-style: none;
  color: rgba(14, 15, 16, 0.5);
  font-style: italic;
}

.notice-action {
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(18, 82, 152, 0.35);
  background: rgba(18, 82, 152, 0.12);
  color: #0b3d6e;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.notice-action:hover {
  background: rgba(18, 82, 152, 0.2);
}

.notice-action:focus-visible {
  outline: 2px solid rgba(18, 82, 152, 0.6);
  outline-offset: 2px;
}

body.editor-on .notice-action.is-empty {
  border-style: dashed;
  background: rgba(18, 82, 152, 0.08);
  color: rgba(11, 61, 110, 0.6);
}

body.editor-on .notice-action.is-empty::before {
  content: attr(data-edit-placeholder);
}

.section-bar {
  background: color-mix(in srgb, var(--tan), white 18%);
  border-radius: calc(16px * var(--ui-scale));
  border: 1px solid rgba(14, 15, 16, 0.1);
  padding: calc(14px * var(--ui-scale)) calc(16px * var(--ui-scale));
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: calc(18px * var(--ui-scale));
}

.org-stack {
  display: grid;
  gap: calc(14px * var(--ui-scale));
}

.community-stack {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14, 15, 16, 0.12);
  box-shadow: 0 calc(18px * var(--ui-scale)) calc(50px * var(--ui-scale))
    rgba(14, 15, 16, 0.14);
}

.community-stack .org-stack {
  gap: 0;
}

.community-stack .org-banner,
.community-stack .banner {
  margin-top: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  height: clamp(
    calc(360px * var(--ui-scale)),
    calc(48vw * var(--ui-scale)),
    calc(560px * var(--ui-scale))
  );
}

.community-stack .org-banner img,
.community-stack .banner img {
  object-fit: cover;
  object-position: center;
}


.community-stack [data-sunday-school] img {
  object-position: center 20%;
}

.community-stack .org-stack > * + * {
  border-top: 1px solid rgba(14, 15, 16, 0.12);
}

.community-stack [data-sunday-school] {
  border-top: 1px solid rgba(14, 15, 16, 0.12);
}

.community-stack .org-overlay,
.community-stack .banner-overlay {
  place-content: start center;
  justify-items: center;
  gap: calc(10px * var(--ui-scale));
  padding: calc(20px * var(--ui-scale));
  text-transform: none;
  text-shadow: none;
  background: transparent;
}

.org-banner,
.banner {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14, 15, 16, 0.12);
  box-shadow: 0 18px 50px rgba(14, 15, 16, 0.14);
}

.org-banner img,
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-overlay,
.banner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: calc(18px * var(--ui-scale));
  color: white;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.46);
  background: linear-gradient(
    to bottom,
    rgba(14, 15, 16, 0.32),
    rgba(14, 15, 16, 0.32)
  );
}

.community-stack .org-name,
.community-stack .org-subtitle,
.community-stack .banner-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(8px * var(--ui-scale)) calc(18px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-shadow: 0 calc(10px * var(--ui-scale)) calc(24px * var(--ui-scale))
    rgba(0, 0, 0, 0.45);
}

.community-stack .org-name {
  font-size: clamp(
    calc(28px * var(--ui-scale)),
    calc(4.4vw * var(--ui-scale)),
    calc(44px * var(--ui-scale))
  );
  letter-spacing: 0.04em;
}

.community-stack .org-subtitle {
  margin: 0;
  font-size: clamp(
    calc(16px * var(--ui-scale)),
    calc(2.4vw * var(--ui-scale)),
    calc(24px * var(--ui-scale))
  );
  letter-spacing: 0.02em;
  max-width: none;
  white-space: nowrap;
}

.community-stack .banner-title {
  font-size: clamp(
    calc(30px * var(--ui-scale)),
    calc(4.6vw * var(--ui-scale)),
    calc(52px * var(--ui-scale))
  );
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .community-stack .org-subtitle {
    white-space: normal;
    max-width: min(92%, calc(520px * var(--ui-scale)));
  }
}

.org-banner--light .org-overlay,
.banner--light .banner-overlay {
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(14, 15, 16, 0.34),
    rgba(14, 15, 16, 0.2)
  );
}

.community-stack .org-banner--light .org-overlay,
.community-stack .banner--light .banner-overlay {
  background: transparent;
  color: #4a4a4a;
}

.org-name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(
    calc(40px * var(--ui-scale)),
    calc(5vw * var(--ui-scale)),
    calc(68px * var(--ui-scale))
  );
  letter-spacing: 0.02em;
}

.org-subtitle {
  margin: calc(6px * var(--ui-scale)) 0 0;
  font-weight: 700;
  font-size: clamp(
    calc(14px * var(--ui-scale)),
    calc(2vw * var(--ui-scale)),
    calc(20px * var(--ui-scale))
  );
  letter-spacing: 0.1em;
  max-width: 42ch;
}

.banner {
  margin-top: calc(16px * var(--ui-scale));
}

.banner-link {
  display: block;
  text-decoration: none;
}

.banner-link:focus-visible {
  outline: calc(4px * var(--ui-scale)) solid rgba(14, 15, 16, 0.28);
  outline-offset: calc(4px * var(--ui-scale));
  border-radius: var(--radius);
}

.committee-button {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 999px;
  width: min(100%, calc(860px * var(--ui-scale)));
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.committee-button img {
  height: auto;
  object-fit: contain;
}

.banner-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(
    calc(40px * var(--ui-scale)),
    calc(6vw * var(--ui-scale)),
    calc(74px * var(--ui-scale))
  );
  letter-spacing: 0.06em;
}

.committee-card {
  margin-top: calc(16px * var(--ui-scale));
}

.gallery-card {
  margin-top: calc(16px * var(--ui-scale));
}

.gallery-subtitle {
  margin-top: calc(-6px * var(--ui-scale));
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12px * var(--ui-scale));
  margin-top: calc(6px * var(--ui-scale));
  flex-wrap: wrap;
}

.gallery-cover {
  margin-top: calc(14px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  overflow: hidden;
  background: rgba(253, 252, 250, 0.6);
  box-shadow: 0 calc(12px * var(--ui-scale)) calc(30px * var(--ui-scale))
    rgba(14, 15, 16, 0.12);
  aspect-ratio: 16 / 9;
}

.gallery-cover picture,
.gallery-cover img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-cover img {
  object-fit: cover;
}

.gallery-current {
  margin: 0;
  font-size: calc(14px * var(--ui-scale));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(14, 15, 16, 0.7);
}

.gallery-section-title {
  margin: calc(16px * var(--ui-scale)) 0 0;
  font-size: calc(18px * var(--ui-scale));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-albums {
  margin-top: calc(10px * var(--ui-scale));
  display: grid;
  gap: calc(14px * var(--ui-scale));
  --album-min: calc(200px * var(--ui-scale));
  --album-max: calc(320px * var(--ui-scale));
  grid-template-columns: repeat(auto-fit, minmax(var(--album-min), var(--album-max)));
  justify-content: center;
}

.gallery-album {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(14, 15, 16, 0.12);
  background: transparent;
  box-shadow: 0 calc(10px * var(--ui-scale)) calc(24px * var(--ui-scale))
    rgba(14, 15, 16, 0.08);
}

.gallery-album[aria-current="page"] {
  border-color: rgba(120, 90, 60, 0.5);
  box-shadow: 0 calc(12px * var(--ui-scale)) calc(28px * var(--ui-scale))
    rgba(84, 52, 22, 0.18);
}

.gallery-album__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: transparent;
}

.gallery-album__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-album__body {
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  text-align: center;
}

.gallery-album__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: calc(14px * var(--ui-scale));
}

.gallery-album__count {
  margin: calc(4px * var(--ui-scale)) 0 0;
  font-size: calc(12px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.6);
}

.gallery-grid {
  margin-top: calc(18px * var(--ui-scale));
  display: grid;
  gap: calc(14px * var(--ui-scale));
  --gallery-min: calc(220px * var(--ui-scale));
  --gallery-max: calc(360px * var(--ui-scale));
  grid-template-columns: repeat(auto-fit, minmax(var(--gallery-min), var(--gallery-max)));
  justify-content: center;
}

.gallery-grid[data-layout="compact"] {
  --gallery-min: calc(180px * var(--ui-scale));
  --gallery-max: calc(280px * var(--ui-scale));
}

.gallery-grid[data-layout="large"] {
  --gallery-min: calc(260px * var(--ui-scale));
  --gallery-max: calc(520px * var(--ui-scale));
}

.gallery-grid[data-layout="full"] {
  grid-template-columns: repeat(auto-fit, minmax(var(--gallery-min), 1fr));
  justify-content: stretch;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(253, 252, 250, 0.5);
  border: 1px solid rgba(14, 15, 16, 0.1);
  box-shadow: 0 calc(10px * var(--ui-scale)) calc(24px * var(--ui-scale))
    rgba(14, 15, 16, 0.08);
}

.gallery-grid .editor-add-row {
  grid-column: 1 / -1;
}

.gallery-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(253, 252, 250, 0.22);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
  font-size: calc(14px * var(--ui-scale));
  line-height: 1.35;
  color: rgba(14, 15, 16, 0.82);
}

.gallery-caption.is-empty {
  display: none;
}

body.editor-on .gallery-caption.is-empty {
  display: block;
  min-height: calc(18px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.55);
}

body.editor-on .gallery-caption.is-empty::before {
  content: "Add caption...";
}

.orthodox-layout {
  display: grid;
  gap: calc(18px * var(--ui-scale));
  align-items: start;
}

@media (min-width: 860px) {
  .orthodox-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.orthodox-image {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(253, 252, 250, 0.4);
  border: 1px solid rgba(14, 15, 16, 0.08);
}

.orthodox-image img {
  width: 100%;
  height: auto;
  display: block;
}

.orthodox-body .body-text {
  font-size: calc(18px * var(--ui-scale));
  line-height: 1.6;
}

.orthodox-page {
  background: url("../assets/images/orthodox/background.jpg") center/cover no-repeat;
  padding: calc(26px * var(--ui-scale)) 0 calc(34px * var(--ui-scale));
}

.orthodox-container {
  display: grid;
  gap: calc(18px * var(--ui-scale));
  border-radius: calc(26px * var(--ui-scale));
  background: rgba(255, 245, 228, 0.86);
  border: 1px solid rgba(130, 94, 60, 0.35);
  box-shadow: 0 calc(20px * var(--ui-scale)) calc(60px * var(--ui-scale))
    rgba(84, 52, 22, 0.2);
  padding: calc(20px * var(--ui-scale));
}

.orthodox-panel {
  display: grid;
  gap: calc(12px * var(--ui-scale));
  align-items: center;
}

@media (min-width: 860px) {
  .orthodox-panel {
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  }
}

.orthodox-panel__icon {
  display: grid;
  justify-items: center;
  gap: calc(8px * var(--ui-scale));
  text-align: center;
}

.orthodox-panel__icon img {
  width: min(160px, 60vw);
  height: auto;
}

.orthodox-panel__title {
  margin: 0;
  text-transform: uppercase;
  font-size: calc(20px * var(--ui-scale));
  letter-spacing: 0.06em;
  color: #6a3a12;
}

.orthodox-panel__text {
  margin: 0;
  font-size: calc(16px * var(--ui-scale));
  line-height: 1.55;
  color: #402513;
  white-space: pre-line;
}

.orthodox-divider {
  height: 1px;
  background: rgba(130, 94, 60, 0.4);
  margin: calc(4px * var(--ui-scale)) 0;
}

.committee-header {
  margin: 0 auto calc(16px * var(--ui-scale));
  border-radius: calc(var(--radius) - calc(10px * var(--ui-scale)));
  overflow: hidden;
  border: 1px solid rgba(14, 15, 16, 0.12);
  background: color-mix(in srgb, var(--card), white 10%);
}

.committee-header img {
  width: 100%;
  height: auto;
  display: block;
}

.committee-years {
  display: grid;
  gap: calc(18px * var(--ui-scale));
  margin-top: calc(16px * var(--ui-scale));
}

.committee-year {
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
}

.committee-year + .committee-year {
  padding-top: calc(18px * var(--ui-scale));
  border-top: 1px solid rgba(14, 15, 16, 0.12);
}

.committee-year-bar {
  background: color-mix(in srgb, var(--tan-2), white 10%);
  text-align: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: calc(26px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  letter-spacing: 0.06em;
  border-radius: calc(18px * var(--ui-scale));
  margin-bottom: calc(12px * var(--ui-scale));
}

.committee-grid {
  padding: calc(18px * var(--ui-scale));
  display: grid;
  gap: calc(12px * var(--ui-scale));
  max-width: calc(620px * var(--ui-scale));
  margin: 0 auto;
}

@media (min-width: 740px) {
  .committee-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.committee-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(14px * var(--ui-scale));
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.committee-person.center {
  justify-content: flex-start;
  grid-template-columns: auto 1fr;
  justify-items: stretch;
}

.committee-person.center .committee-text {
  justify-self: start;
}

.committee-subhead {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-script);
  font-size: calc(30px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(10px * var(--ui-scale))
    calc(2px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.82);
}

.avatar {
  width: calc(88px * var(--ui-scale));
  height: calc(88px * var(--ui-scale));
  border-radius: calc(14px * var(--ui-scale));
  background: rgba(14, 15, 16, 0.1);
  border: 1px solid rgba(14, 15, 16, 0.12);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.avatar picture,
.avatar img {
  width: 100%;
  height: 100%;
}

.avatar img {
  object-fit: cover;
  display: block;
}

.committee-person .avatar {
  cursor: pointer;
}

.committee-text {
  display: inline-grid;
  gap: calc(2px * var(--ui-scale));
  padding: calc(12px * var(--ui-scale)) calc(22px * var(--ui-scale));
  border-radius: 999px;
  background: color-mix(in srgb, var(--tan-2), white 18%);
  border: 1px solid rgba(120, 90, 60, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  justify-items: center;
  text-align: center;
  width: clamp(
    calc(250px * var(--ui-scale)),
    calc(70vw * var(--ui-scale)),
    calc(360px * var(--ui-scale))
  );
  justify-self: start;
}

.committee-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: calc(19px * var(--ui-scale));
  line-height: 1.1;
}

.committee-role {
  margin: calc(2px * var(--ui-scale)) 0 0;
  color: rgba(14, 15, 16, 0.7);
  font-size: calc(14px * var(--ui-scale));
  letter-spacing: 0.02em;
  text-transform: none;
}

.committee-phone {
  margin: calc(2px * var(--ui-scale)) 0 0;
  color: rgba(14, 15, 16, 0.7);
  font-size: calc(12px * var(--ui-scale));
  letter-spacing: 0.02em;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(24px * var(--ui-scale));
  background: rgba(12, 12, 12, 0.78);
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(960px, 92vw);
  max-height: 86vh;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: calc(18px * var(--ui-scale));
  box-shadow: 0 calc(24px * var(--ui-scale)) calc(70px * var(--ui-scale))
    rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: calc(-14px * var(--ui-scale));
  right: calc(-14px * var(--ui-scale));
  width: calc(36px * var(--ui-scale));
  height: calc(36px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(14, 15, 16, 0.2);
  background: #fff;
  color: #111;
  font-size: calc(22px * var(--ui-scale));
  line-height: 1;
  cursor: pointer;
}

.notice-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(24px * var(--ui-scale));
  background: rgba(12, 12, 12, 0.78);
  z-index: 9999;
}

.notice-modal.is-open {
  display: flex;
}

.notice-modal__content {
  position: relative;
  max-width: min(720px, 92vw);
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.notice-modal__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(20px * var(--ui-scale)) calc(20px * var(--ui-scale))
    calc(18px * var(--ui-scale));
  padding-top: calc(46px * var(--ui-scale));
}

.notice-modal__title {
  margin: 0 0 calc(12px * var(--ui-scale));
  font-size: calc(22px * var(--ui-scale));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notice-modal__media {
  display: block;
  margin: 0 0 calc(12px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  overflow: hidden;
  border: 1px solid rgba(14, 15, 16, 0.12);
}

.notice-modal__image {
  width: 100%;
  height: auto;
  display: block;
}

.notice-modal__body {
  margin: 0;
  font-size: calc(16px * var(--ui-scale));
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notice-modal__link {
  display: inline-flex;
  margin-top: calc(12px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(12px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(18, 82, 152, 0.35);
  background: rgba(18, 82, 152, 0.12);
  color: #0b3d6e;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.notice-modal__link:hover {
  background: rgba(18, 82, 152, 0.2);
}

.notice-modal__close {
  position: absolute;
  top: calc(10px * var(--ui-scale));
  right: calc(10px * var(--ui-scale));
  width: calc(36px * var(--ui-scale));
  height: calc(36px * var(--ui-scale));
  border-radius: 999px;
  border: 1px solid rgba(14, 15, 16, 0.2);
  background: #fff;
  color: #111;
  font-size: calc(22px * var(--ui-scale));
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

body.lightbox-open {
  overflow: hidden;
}

.timings {
  display: grid;
  gap: calc(14px * var(--ui-scale));
  margin-top: calc(14px * var(--ui-scale));
}

@media (min-width: 740px) {
  .timings {
    grid-template-columns: 1fr 1fr;
  }
}

.timing-card {
  border-radius: var(--radius);
  padding: calc(18px * var(--ui-scale));
  background: color-mix(in srgb, var(--bg), var(--card-2) 22%);
  border: 1px solid rgba(14, 15, 16, 0.1);
  box-shadow: 0 calc(18px * var(--ui-scale)) calc(50px * var(--ui-scale))
    rgba(14, 15, 16, 0.08);
  text-align: center;
}

.timing-title {
  font-family: var(--font-script);
  font-size: calc(34px * var(--ui-scale));
  margin: 0;
}

.timing-meta {
  margin: calc(4px * var(--ui-scale)) 0 calc(10px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.72);
  font-style: italic;
  font-family: var(--font-serif);
}

.timing-time {
  margin: 0;
  font-size: calc(26px * var(--ui-scale));
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-grid {
  display: grid;
  gap: calc(18px * var(--ui-scale));
  margin-top: calc(12px * var(--ui-scale));
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-line {
  margin: calc(10px * var(--ui-scale)) 0;
  font-size: calc(18px * var(--ui-scale));
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: calc(8px * var(--ui-scale));
  flex-wrap: wrap;
  min-width: 0;
}

.label {
  display: inline-block;
  min-width: calc(104px * var(--ui-scale));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.contact-icon {
  font-size: calc(18px * var(--ui-scale));
  opacity: 0.8;
}

.contact-line a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-map {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-link {
  display: block;
  width: 100%;
}

.contact-map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 15, 16, 0.16);
  background: rgba(253, 252, 250, 0.45);
  box-shadow: 0 calc(18px * var(--ui-scale)) calc(44px * var(--ui-scale))
    rgba(14, 15, 16, 0.14);
}

.address {
  margin: calc(12px * var(--ui-scale)) 0 0;
  font-size: calc(16px * var(--ui-scale));
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.address-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(14, 15, 16, 0.35);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.address-link:hover {
  text-decoration-color: rgba(14, 15, 16, 0.6);
}

.prayer {
  margin-top: calc(18px * var(--ui-scale));
}

.prayer-title {
  margin: 0 0 calc(12px * var(--ui-scale));
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(
    calc(28px * var(--ui-scale)),
    calc(3.2vw * var(--ui-scale)),
    calc(42px * var(--ui-scale))
  );
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  background: color-mix(in srgb, var(--tan), white 12%);
  border-radius: 999px;
  border: 1px solid rgba(14, 15, 16, 0.12);
}

.prayer-form {
  display: grid;
  gap: calc(12px * var(--ui-scale));
  margin-top: calc(14px * var(--ui-scale));
}

.field {
  display: grid;
  gap: calc(6px * var(--ui-scale));
}

.field-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: calc(12px * var(--ui-scale));
  color: rgba(14, 15, 16, 0.7);
}

input,
textarea {
  width: 100%;
  border-radius: calc(14px * var(--ui-scale));
  border: 1px solid rgba(14, 15, 16, 0.16);
  padding: calc(12px * var(--ui-scale)) calc(12px * var(--ui-scale));
  font: inherit;
  background: rgba(214, 216, 204, 0.35);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: calc(12px * var(--ui-scale));
  flex-wrap: wrap;
  justify-content: center;
  margin-top: calc(8px * var(--ui-scale));
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: calc(12px * var(--ui-scale)) calc(18px * var(--ui-scale));
  background: rgba(14, 15, 16, 0.92);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.form-note {
  margin: 0;
  color: rgba(14, 15, 16, 0.7);
  font-size: calc(14px * var(--ui-scale));
}

.site-footer {
  padding: calc(26px * var(--ui-scale)) 0 calc(34px * var(--ui-scale));
  text-align: center;
  color: rgba(14, 15, 16, 0.72);
}

.footer-top {
  display: inline-block;
  margin-bottom: calc(8px * var(--ui-scale));
  text-decoration: none;
  border: 1px solid rgba(14, 15, 16, 0.14);
  border-radius: 999px;
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  background: rgba(253, 252, 250, 0.7);
}

.footer-top:hover {
  background: rgba(199, 170, 136, 0.18);
}

.footer-meta {
  margin: 0;
}

/* Mobile Header & Burger Menu */
html, body {
  overflow-x: hidden;
}

.site-title-mobile {
  display: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: calc(14px * var(--ui-scale));
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: calc(5px * var(--ui-scale));
  width: calc(36px * var(--ui-scale));
  height: calc(36px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale));
  background: transparent;
  border: 1px solid rgba(14, 15, 16, 0.16);
  border-radius: calc(8px * var(--ui-scale));
  cursor: pointer;
  flex-shrink: 0;
}

.burger-line {
  display: block;
  width: 100%;
  height: calc(2px * var(--ui-scale));
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(calc(7px * var(--ui-scale))) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(calc(-7px * var(--ui-scale))) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-title-mobile {
    display: block;
  }

  .burger {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: calc(4px * var(--ui-scale));
    padding: calc(12px * var(--ui-scale)) 0 calc(4px * var(--ui-scale));
    margin-top: calc(12px * var(--ui-scale));
    border-top: 1px solid rgba(14, 15, 16, 0.1);
    overflow: visible;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: calc(12px * var(--ui-scale)) calc(14px * var(--ui-scale));
    border-radius: calc(12px * var(--ui-scale));
    background: rgba(14, 15, 16, 0.03);
  }

  .nav-link:hover {
    background: rgba(14, 15, 16, 0.08);
  }

  body.editor-on .header-inner {
    flex-wrap: nowrap;
  }

  body.editor-on .site-nav {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin-top: 0;
    border-top: 0;
    overflow-x: auto;
  }

  body.editor-on .nav-link {
    background: transparent;
  }
}
