:root {
  --navy: #0d2240;
  --navy-deep: #091a2f;
  --gold: #d4af62;
  --gold-soft: #ebd7a6;
  --gold-deep: #8a650c;
  --ivory: #f7f3eb;
  --white: #ffffff;
  --text: #1f2a37;
  --muted: #5f6d7c;
  --shadow: 0 18px 40px rgba(13, 34, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(13, 34, 64, 0.95);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  padding: 0.25rem;
}

.brand-name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.language-toggle {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(235, 215, 166, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  min-width: 180px;
  padding: 0.75rem 0.45rem 0.45rem;
  background: var(--navy-deep);
  border: 1px solid rgba(235, 215, 166, 0.25);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a {
  padding: 0.6rem 0.8rem;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-soft);
}

.hero {
  background: linear-gradient(135deg, rgba(9, 26, 47, 0.96), rgba(13, 34, 64, 0.82)),
    url("https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 0.74rem;
}

.section-tag {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-deep);
  line-height: 1.05;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.9rem, 5vw, 5rem);
  margin-bottom: 1rem;
}

.lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 22px rgba(212, 175, 98, 0.28);
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.card-badge {
  display: inline-block;
  background: rgba(212, 175, 98, 0.15);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 98, 0.25);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.8rem;
}

.day,
.time,
.card-note {
  color: var(--white);
}

.card-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: 5rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-content {
  display: grid;
  gap: 2rem;
}

.about-copy {
  max-width: 760px;
}

.youth-intro {
  display: grid;
  gap: 3rem;
  max-width: 900px;
  text-align: center;
}

.youth-intro-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.youth-intro-copy > * {
  position: relative;
  z-index: 1;
}

.youth-intro-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--white);
}

.youth-intro-copy .section-tag,
.page-hero .section-tag {
  color: var(--gold-soft);
}

.youth-intro-copy::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(9, 26, 47, 0.68), rgba(9, 26, 47, 0.78));
  content: "";
}

.youth-slideshow-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.7s ease;
}

.youth-slideshow-image.is-changing {
  opacity: 0;
}


.youth-intro-copy p:not(.section-tag) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.youth-schedule {
  width: min(100%, 700px);
  margin: 0 auto;
  text-align: left;
}

.youth-schedule > .section-tag {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.youth-schedule h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.youth-schedule-times,
.youth-schedule-details {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.youth-schedule-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.youth-schedule-times li {
  padding: 1rem;
  border-left: 3px solid var(--gold);
  background: #f7f3eb;
  font-weight: 600;
}

.youth-schedule-details {
  margin-top: 1.25rem;
}

.youth-story-section {
  background: #efe6d4;
}

.youth-story-list {
  display: grid;
  gap: 4rem;
}

.youth-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.youth-story-image {
  order: 2;
}

.youth-story-copy {
  order: 1;
}

.youth-story-reversed .youth-story-image {
  order: 1;
}

.youth-story-reversed .youth-story-copy {
  order: 2;
}

.youth-story-image {
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.youth-story-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.youth-story-copy h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.youth-story-copy p:not(.section-tag) {
  max-width: 490px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-section h2,
.cta-box h2,
.page-hero h1 {
  color: var(--navy-deep);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.about-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.info-panel {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-panel h3 {
  color: var(--navy-deep);
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.info-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.highlight-section {
  background: #f0e7d4;
}

.story-section-content {
  max-width: 1120px;
}

.story-list {
  display: grid;
  gap: 4rem;
  margin-top: 2rem;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story-image {
  order: 2;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.story-copy {
  order: 1;
}

.story-row-reversed .story-image {
  order: 1;
}

.story-row-reversed .story-copy {
  order: 2;
}

.story-copy h2 {
  color: var(--navy-deep);
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.story-copy p:not(.section-tag) {
  max-width: 490px;
  color: var(--muted);
  font-size: 1.05rem;
}

.centered {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card,
.ministry-card,
.event-card,
.contact-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.feature-card h3,
.ministry-card h2,
.event-card h2,
.contact-card h2 {
  color: var(--navy-deep);
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.feature-card p,
.ministry-card p,
.event-card p,
.contact-card p,
.contact-list {
  color: var(--muted);
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: 28px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
}

.cta-box .section-tag,
.cta-box h2 {
  color: var(--white);
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-title {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.3rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.page-hero {
  background: linear-gradient(135deg, rgba(13, 34, 64, 0.96), rgba(13, 34, 64, 0.8));
  color: var(--white);
  padding: 4rem 0 3rem;
}

.small-hero h1 {
  color: var(--white);
  margin-top: 0.5rem;
}

.ministry-grid,
.events-list,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.ministry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.events-list {
  grid-template-columns: 1fr;
}

.schedule-section {
  background: #efe6d4;
}

.schedule-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.schedule-intro h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.schedule-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.schedule-list {
  display: grid;
  gap: 1rem;
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) 1.45fr;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.schedule-card-featured {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 1));
  border-left-color: var(--gold-deep);
  box-shadow: 0 18px 35px rgba(17, 30, 52, 0.14);
}

.schedule-card-heading {
  padding: 0.4rem 1.5rem 0.4rem 0.5rem;
  border-right: 1px solid rgba(13, 34, 64, 0.14);
}

.schedule-day {
  margin: 0 0 0.35rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.schedule-time {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.schedule-highlight {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f5d98d);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

.schedule-status {
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.schedule-status-error,
.form-status.is-error {
  color: #9d2f2f;
}

.dashboard-section {
  min-height: calc(100vh - 82px);
  background: linear-gradient(135deg, #efe6d4 0%, #f7f3eb 55%, #e5edf0 100%);
}

.dashboard-layout {
  display: grid;
  gap: 1.5rem;
}

.dashboard-heading h1 {
  max-width: 700px;
  margin: 0.35rem 0 0;
}

.dashboard-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 34, 64, 0.1);
  box-shadow: var(--shadow);
}

.dashboard-panel[hidden] {
  display: none;
}

.dashboard-form {
  display: grid;
  gap: 0.9rem;
}

.dashboard-form h2,
.dashboard-form h3 {
  margin: 0;
}

.dashboard-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-form input,
.dashboard-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(13, 34, 64, 0.2);
  border-radius: 0.2rem;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.dashboard-form input:focus,
.dashboard-form textarea:focus {
  outline: 3px solid rgba(212, 175, 98, 0.35);
  border-color: var(--gold-deep);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-row + .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 0.55rem !important;
}

.checkbox-label input {
  width: auto;
}

.form-actions,
.dashboard-toolbar,
.entry-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-toolbar {
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dashboard-toolbar h2 {
  margin: 0;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.entry-list {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.entry-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(13, 34, 64, 0.12);
  border-left: 4px solid var(--gold);
  background: var(--white);
}

.entry-item h3,
.entry-item p {
  margin: 0;
}

.entry-date,
.entry-item p {
  color: var(--muted);
  font-size: 0.86rem;
}

.entry-badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.45rem;
  background: #eceff1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-badge.is-published {
  background: #e3f0e7;
  color: #28633a;
}

.text-button,
.danger-button {
  padding: 0.35rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-button {
  color: #9d2f2f;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: #28633a;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .schedule-intro,
  .dashboard-toolbar,
  .entry-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row,
  .form-row + .form-row,
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .entry-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.schedule-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  align-content: center;
}

.schedule-field {
  min-width: 0;
}

.schedule-field dt {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-field dd {
  margin: 0.15rem 0 0;
  color: var(--navy-deep);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.event-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 1.5rem;
}

.event-date {
  background: linear-gradient(135deg, var(--gold), #f2d58a);
  color: var(--navy-deep);
  border-radius: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.event-date .month {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date .day {
  font-size: 1.35rem;
  margin-top: 0.25rem;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.photo-section {
  background: #efe6d4;
}

.photo-section .container {
  max-width: 1120px;
}

.photo-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.photo-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.photo-heading p {
  max-width: 600px;
  color: var(--muted);
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.photo-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-card button:hover img,
.photo-card button:focus-visible img {
  transform: scale(1.04);
}

.photo-card figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--navy-deep);
  font-weight: 700;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-item:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-item:nth-child(4) {
  transition-delay: 0.3s;
}

.photo-link {
  margin-top: 1.5rem;
}

.gallery-intro {
  max-width: 700px;
}

.gallery-slideshow-section {
  padding: 0;
  background: var(--navy-deep);
}

.gallery-slideshow {
  position: relative;
  width: 100%;
  min-height: clamp(260px, 48vw, 620px);
  overflow: hidden;
  background: var(--navy-deep);
}

.gallery-slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.gallery-slideshow-set {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  opacity: 0;
  transition: opacity 0.7s ease;
}

.gallery-slideshow-set.is-active {
  opacity: 1;
}

.gallery-slideshow-set img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.album-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0;
}

.album-filter button {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(13, 34, 64, 0.2);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.album-filter button.active,
.album-filter button:hover,
.album-filter button:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(9, 26, 47, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  width: min(900px, 100%);
}

.lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox-caption {
  margin: 0.7rem 0 0;
  color: var(--white);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(9, 26, 47, 0.75);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close {
  top: -0.75rem;
  right: -0.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 820px) {
  .hero-inner,
  .two-col,
  .story-row,
  .youth-story,
  .feature-grid,
  .photo-grid,
  .ministry-grid,
  .contact-layout,
  .event-card {
    grid-template-columns: 1fr;
  }

  .schedule-intro {
    display: grid;
    align-items: start;
  }

  .schedule-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .schedule-card-heading {
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(13, 34, 64, 0.14);
  }

  .schedule-details {
    gap: 1rem;
  }

  .nav-wrap,
  .footer-wrap,
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .language-toggle {
    flex-shrink: 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
  }

  .dropdown-menu {
    left: 0;
    transform: translateY(-0.35rem);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: translateY(0);
  }

  .hero {
    padding-top: 4rem;
  }

  .youth-story-image,
  .youth-story-copy,
  .youth-story-reversed .youth-story-image,
  .youth-story-reversed .youth-story-copy {
    order: initial;
  }

  .story-image,
  .story-copy,
  .story-row-reversed .story-image,
  .story-row-reversed .story-copy {
    order: initial;
  }

  .story-image,
  .story-image img {
    min-height: 240px;
  }

  .youth-story-image,
  .youth-story-image img {
    min-height: 240px;
  }

  .youth-schedule-times {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .gallery-slideshow-set {
    grid-template-columns: 1fr;
  }

  .gallery-slideshow-set img:not(:first-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .youth-slideshow-image,
  .gallery-slideshow-set {
    transition: none;
  }
}

/* ==========================================================================
   Bible Passage Lookup Styles
   ========================================================================== */

.bible-lookup-section {
  min-height: calc(100vh - 280px);
  background: linear-gradient(135deg, #efe6d4 0%, #f7f3eb 55%, #e5edf0 100%);
}

.bible-lookup-container {
  max-width: 820px;
  display: grid;
  gap: 2rem;
}

.bible-search-card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 34, 64, 0.08);
}

.bible-search-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
}

.bible-input-group {
  display: flex;
  gap: 0.75rem;
}

.bible-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(13, 34, 64, 0.2);
  border-radius: 999px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bible-input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(212, 175, 98, 0.25);
  background: var(--white);
}

.bible-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.bible-examples-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.bible-chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(13, 34, 64, 0.15);
  border-radius: 999px;
  background: #f7f4ee;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bible-chip:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.bible-status {
  margin-top: 1.25rem;
  font-weight: 600;
}

.bible-result-card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
  border-top: 1px solid rgba(13, 34, 64, 0.08);
  border-right: 1px solid rgba(13, 34, 64, 0.08);
  border-bottom: 1px solid rgba(13, 34, 64, 0.08);
}

.bible-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(13, 34, 64, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.bible-result-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy-deep);
}

.bible-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bible-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(13, 34, 64, 0.06);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.bible-version-badge {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  background: rgba(212, 175, 98, 0.18);
  border: 1px solid rgba(212, 175, 98, 0.4);
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bible-text-wrapper {
  margin: 1.5rem 0;
}

.bible-text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.6;
  color: var(--navy-deep);
  font-style: normal;
}

.bible-result-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 34, 64, 0.08);
}

.bible-copyright {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.bible-mode-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(13, 34, 64, 0.06);
  border-radius: 999px;
  padding: 0.35rem;
}

.bible-mode-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.bible-mode-tab.active {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}

.bible-mode-tab:not(.active):hover {
  color: var(--gold-deep);
}

.bible-mode-panel {
  display: grid;
  gap: 2rem;
}

.bible-mode-panel[hidden] {
  display: none;
}

.bible-semantic-results {
  display: grid;
  gap: 1.25rem;
}

.bible-semantic-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
  border-top: 1px solid rgba(13, 34, 64, 0.08);
  border-right: 1px solid rgba(13, 34, 64, 0.08);
  border-bottom: 1px solid rgba(13, 34, 64, 0.08);
}

.bible-semantic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bible-semantic-ref {
  margin: 0;
  font-size: 1.3rem;
  color: var(--navy-deep);
}

.bible-semantic-text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--navy-deep);
  font-style: normal;
}

@media (max-width: 600px) {
  .bible-input-group {
    flex-direction: column;
  }
  .bible-result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bible-mode-tabs {
    flex-direction: column;
  }
  .bible-semantic-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

