/* Steps of Joy: full marketing site */
:root {
  --color-bg: #f8f6f2;
  --color-bg-alt: #f0ebe3;
  --color-surface: #ffffff;
  --color-ink: #1c2b33;
  --color-ink-muted: #4a5d66;
  --color-accent: #2d8a8a;
  --color-accent-hover: #247070;
  --color-accent-soft: #e8f4f4;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow-soft: 0 4px 24px rgba(28, 43, 51, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 140px;
  --space: clamp(1rem, 3vw, 2rem);
  --max-readable: 40rem;
  --max-width: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

/* In-page links (#services, etc.): keep section titles below the sticky header */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(45, 138, 138, 0.1), transparent),
    var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--max-width), 100% - 2 * var(--space));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--max-readable);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 43, 51, 0.08);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.85rem;
  min-height: var(--header-h);
  gap: 1rem 1.5rem;
  padding-block: 0.65rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

/* Header asset trims top/bottom of the full logo; display size matches pre-shrink bar */
.site-header .logo-img {
  display: block;
  width: auto;
  height: clamp(6rem, 18vw, 11rem);
  max-width: min(52rem, 85vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(45, 138, 138, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(28, 43, 51, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: rgba(45, 138, 138, 0.45);
  background: var(--color-accent-soft);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--color-ink);
  border-radius: 1px;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-bar {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  width: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 138, 138, 0.14);
  box-shadow: 0 1px 10px rgba(28, 43, 51, 0.05);
}

.nav-links a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--color-ink-muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-accent);
  background: rgba(45, 138, 138, 0.1);
}

.nav-links a:focus-visible {
  color: var(--color-accent);
  background: rgba(45, 138, 138, 0.12);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-cta:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 112, 112, 0.35);
  box-shadow: 0 2px 10px rgba(45, 138, 138, 0.28);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

@media (min-width: 769px) {
  /* Same width as .container (inherits) so logo lines up with page content.
     Tight column-gap between logo and menu. */
  .site-header .header-inner {
    flex-wrap: nowrap;
    gap: 1rem 0.45rem;
  }

  .site-header .logo-img {
    height: clamp(4.5rem, 11vw, 7rem);
    max-width: min(24rem, 42vw);
  }

  /* flex-start + margin-left:auto: pill aligns right when it fits; scroll
     shows “About” first if the row still overflows. */
  .site-nav {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-inline: 0;
    margin-inline: 0;
  }

  .nav-links {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.2rem;
    gap: 0.2rem 0.15rem;
  }

  .nav-links li {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 108px;
  }

  .site-header .logo-img {
    height: clamp(4.75rem, 20vw, 7rem);
    max-width: calc(100vw - 3.75rem);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex: none;
    width: 100%;
    max-width: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      var(--color-bg) 18%
    );
    padding: 1.75rem var(--space) 2.5rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    border-top: 1px solid rgba(45, 138, 138, 0.12);
    box-shadow: -6px 0 28px rgba(28, 43, 51, 0.08);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 138, 138, 0.12);
    box-shadow: var(--shadow-soft);
  }

  .nav-links a {
    font-size: 1.0625rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    white-space: normal;
  }

  .nav-cta {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1.0625rem;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links a:not(.nav-cta) {
    font-size: 0.875rem;
    padding: 0.4rem 0.55rem;
  }

  .nav-links .nav-cta {
    font-size: 0.875rem;
    padding: 0.5rem 0.95rem;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-ink-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(28, 43, 51, 0.2);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-on-cta {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn-on-cta:hover {
  background: #f0faf9;
  color: var(--color-accent-hover);
  border-color: #f0faf9;
}

.btn-on-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 138, 138, 0.15);
}

.hero-media-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 58%;
}

.hero-media .photo-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  margin: 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.35;
}

.hero-media .photo-credit a {
  color: #fff;
  font-weight: 600;
}

.hero-media .photo-credit a:hover {
  color: #e0f7f7;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  margin: 0 0 1rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--color-ink-muted);
  margin: -0.35rem 0 2rem;
}

.narrow p:last-child {
  margin-bottom: 0;
}

.fees-contact-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.fees-contact-link:hover {
  color: var(--color-accent-hover);
}

.area-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  font-weight: 500;
}

.about-grid {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
  }
}

.about-media {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  align-self: start;
  overflow: visible;
  line-height: 0;
}

.about-media-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 138, 138, 0.12);
}

.about-media .photo-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  margin: 0;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.35;
}

.about-media .photo-credit a {
  color: #fff;
  font-weight: 600;
}

.about-media .photo-credit a:hover {
  color: #e0f7f7;
}

.about-copy {
  max-width: 38rem;
}

.about-copy .area-callout {
  margin-bottom: 0;
}

.about-video {
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  line-height: 0;
}

.about-video-open {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: min(13.5rem, 64vw);
  color: var(--color-ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.about-video-open:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.about-video-poster {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 138, 138, 0.12);
}

.about-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(28, 43, 51, 0.22);
  transition: background 0.15s ease;
}

.about-video-open:hover .about-video-play,
.about-video-open:focus-visible .about-video-play {
  background: rgba(28, 43, 51, 0.34);
}

.about-video-play-icon {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.about-video-caption {
  margin: 0.65rem 0 0;
  max-width: min(22rem, 90vw);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-ink-muted);
  text-align: center;
}

/* Welcome video lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 51, 0.78);
  cursor: pointer;
}

.video-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(30rem, 92vw);
  max-height: 92vh;
}

.video-lightbox-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}

.video-lightbox-close:hover,
.video-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.video-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.video-lightbox-video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(85vh, 52rem);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--color-ink);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 2px 12px rgba(28, 43, 51, 0.06);
  border: 1px solid rgba(28, 43, 51, 0.06);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-ink-muted);
}

.split {
  display: grid;
  gap: 2rem;
}

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

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 138, 138, 0.2);
}

/* Fees strip */
.fees-strip {
  max-width: var(--max-readable);
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(28, 43, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.fees-strip p {
  margin: 0 0 0.75rem;
  color: var(--color-ink-muted);
}

.fees-strip p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  max-width: 38rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid rgba(28, 43, 51, 0.08);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(28, 43, 51, 0.04);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact CTA */
.section-cta {
  background: linear-gradient(160deg, var(--color-accent) 0%, #236f6f 100%);
  color: #fff;
}

.section-cta .section-title {
  color: #fff;
}

.section-cta > .container > .section-title {
  margin-bottom: 1.75rem;
}

.section-cta a {
  color: #fff;
  font-weight: 600;
}

.section-cta a:hover {
  color: #e0f7f7;
}

.section-cta .btn-on-cta {
  color: var(--color-accent);
  font-weight: 600;
}

.section-cta .btn-on-cta:hover {
  color: var(--color-accent-hover);
}

.contact-box {
  display: grid;
  gap: 2rem 2.5rem;
}

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

.contact-block-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.96);
}

.contact-block-lead {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.contact-book .contact-block-lead {
  margin-bottom: 1rem;
}

#book-online {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.contact-details {
  margin: 0;
}

.contact-details > div {
  margin-bottom: 1.25rem;
}

.contact-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-size: 1.05rem;
}

/* Photo gallery */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

@media (min-width: 640px) {
  .gallery-grid {
    gap: 1.1rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(45, 138, 138, 0.12);
  background: var(--color-bg-alt);
  aspect-ratio: 1;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}

.gallery-thumb-inner {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  line-height: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.28s ease;
  pointer-events: none;
}

.gallery-thumb:hover .gallery-thumb-inner img,
.gallery-thumb:focus-visible .gallery-thumb-inner img {
  transform: scale(1.05);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: 3rem;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 51, 0.9);
  cursor: pointer;
}

.gallery-lightbox-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 56rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.65rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.32);
}

.gallery-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: rgba(255, 255, 255, 0.36);
}

.gallery-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-nav-prev {
  left: 0.25rem;
}

.gallery-nav-next {
  right: 0.25rem;
}

.gallery-lightbox-figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 880px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-caption {
  margin: 0.75rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  max-width: 40rem;
}

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

@media (max-width: 520px) {
  .gallery-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.5rem;
  }

  .gallery-nav-prev {
    left: 0.1rem;
  }

  .gallery-nav-next {
    right: 0.1rem;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(28, 43, 51, 0.08);
  background: var(--color-bg);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}
