/* ============================================================
   Lesseyton Methodist Church — shared styles
   Palette: MCSA brand — white, black, red (#FF0000)
   Type: Bricolage Grotesque (display) + Inter Tight (body)
   ============================================================ */

:root {
  /* MCSA brand palette: white / red #FF0000 / black */
  --paper: #ffffff;
  --paper-deep: #f1f1ef;
  --ink: #111111;
  --ink-soft: #4a4a47;
  --stone: #ff0000;      /* brand red — graphic accents (rules, borders) */
  --brick: #d40000;      /* darkened brand red for text & links (WCAG AA) */
  --brick-dark: #a80000;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--brick);
  flex: none;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 44px;
  align-items: center;
}
.brand .brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .brand-est {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  font: 600 0.85rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem var(--pad) 1rem; }
  .site-nav a { display: block; padding: 0.85rem 0.25rem; font-size: 1.05rem; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
}
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.section.tinted { background: var(--paper-deep); }
.section.dark {
  background: var(--ink);
  color: var(--paper);
}
.section.dark .eyebrow { color: var(--stone); }
.section.dark .eyebrow::before { background: var(--stone); }
.section.dark a { color: var(--paper); }
.section.dark p { color: rgba(255, 255, 255, 0.87); }
.section.dark .eyebrow, .section.dark .quote-attrib { color: #ff4d4d; }
.section.dark .eyebrow::before { background: #ff4d4d; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(3rem, 9vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--brick);
}

.hero-aside {
  border-top: 3px solid var(--brick);
  background: var(--paper-deep);
  padding: 1.5rem 1.5rem 1.75rem;
}
.hero-aside h2 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-aside dl { margin: 0; }
.hero-aside dt {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.9rem;
}
.hero-aside dd {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--brick);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  min-height: 44px;
}
.btn:hover { background: var(--brick-dark); color: var(--paper); }
.btn.ghost {
  background: transparent;
  color: var(--brick);
  border: 1.5px solid var(--brick);
}
.btn.ghost:hover { background: rgba(140, 47, 36, 0.08); }

/* ---------- Photo hero (Home) ---------- */

.hero-photo {
  background:
    linear-gradient(rgba(10, 10, 10, 0.66), rgba(10, 10, 10, 0.66)),
    url("assets/photos/church-02.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-photo h1 { color: #fff; }
.hero-photo .lede { color: rgba(255, 255, 255, 0.9); }
.hero-photo .eyebrow { color: #ff4d4d; }
.hero-photo .eyebrow::before { background: #ff4d4d; }
.hero-photo .hero-aside {
  background: #fff;
  border-top-color: var(--stone);
}
.hero-photo .btn.ghost {
  color: #fff;
  border-color: #fff;
}
.hero-photo .btn.ghost:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Two-column editorial block ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
}

/* ---------- Timeline (Our History) — horizontal ---------- */

.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0 0 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 1fr);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.timeline li {
  position: relative;
  border-top: 2px solid var(--stone);
  padding: 1.6rem 2.25rem 0 0;
  scroll-snap-align: start;
}
.timeline li:last-child { padding-right: 0.5rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick);
  border: 2px solid var(--paper);
}
.timeline .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brick);
  display: block;
  margin-bottom: 0.35rem;
}
.timeline p { margin-bottom: 0; font-size: 0.97rem; }
.timeline:focus-visible { outline: 3px solid var(--brick); outline-offset: 4px; }
/* slim scrollbar as a subtle scroll cue */
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb { background: rgba(17, 17, 17, 0.25); border-radius: 3px; }
.timeline-hint {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}
@media (min-width: 1100px) { .timeline-hint { display: none; } }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-top: 3px solid var(--stone);
  padding: 1.5rem;
}
.section.tinted .card { background: var(--paper); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 0; }
.card .card-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.6rem;
}

/* ---------- Events list ---------- */

.event-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.event-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}
.event-list li:first-child { border-top: 1px solid rgba(17, 17, 17, 0.16); }
.event-date {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brick);
  line-height: 1.3;
}
.event-body h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.event-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 540px) {
  .event-list li { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- Tables (service times) ---------- */

.times-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.98rem;
}
.times-table th, .times-table td {
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  vertical-align: top;
}
.times-table th {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.times-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details dt {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-top: 1.4rem;
}
.contact-details dd { margin: 0.25rem 0 0; }

form .field { margin-bottom: 1.25rem; }
form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
form input, form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 3px;
}
form input:focus, form textarea:focus {
  outline: 3px solid var(--brick);
  outline-offset: 1px;
  border-color: var(--brick);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.75rem var(--pad);
  font-size: 0.92rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer .foot-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--paper);
}
.site-footer a { color: var(--paper); }
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-footer nav a { text-decoration: none; padding: 0.5rem 0; display: inline-block; }
.site-footer nav a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */

.note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--stone);
  padding-left: 1rem;
  max-width: var(--measure);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  max-width: 30ch;
  margin: 0;
}
.quote-attrib {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
}

/* ---------- Inline photo figure ---------- */

.photo-figure { margin: 2rem 0 0; }
.photo-figure img {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.2);
}
.photo-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.section.dark .photo-figure img { border-color: rgba(255, 255, 255, 0.3); }
.section.dark .photo-figure figcaption { color: rgba(255, 255, 255, 0.75); }

/* ---------- Vertical photo timeline (Heritage) ---------- */

.photo-timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-left: 2px solid var(--stone);
  max-width: 42rem;
}
.photo-timeline li {
  position: relative;
  padding: 0 0 3rem 2rem;
}
.photo-timeline li:last-child { padding-bottom: 0.5rem; }
.photo-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brick);
  border: 2px solid var(--paper);
}
.photo-timeline .photo-figure { margin: 0.75rem 0 0; }
.photo-timeline .photo-figure + .photo-figure { margin-top: 1.5rem; }

/* ---------- Photo gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}
.gallery-grid .photo-figure { margin: 0; }
.gallery-grid .photo-figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.stage-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.6rem;
}

/* ---------- Gallery: chaptered photo-essay ---------- */

/* Chapter index (gallery hero) */
.toc { list-style: none; margin: 2.25rem 0 0; padding: 0; max-width: 46rem; }
.toc a {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.toc li:first-child a { border-top: 1px solid rgba(17, 17, 17, 0.16); }
.toc-num { font-family: var(--font-display); font-weight: 700; color: var(--stone); }
.toc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.toc-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
.toc a:hover .toc-title { color: var(--brick); }
@media (max-width: 540px) {
  .toc a { grid-template-columns: 2.2rem 1fr; }
  .toc-meta { grid-column: 2; text-align: left; }
}

/* Chapter sections */
.chapter { overflow-x: clip; scroll-margin-top: 1.5rem; }
.chap-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 820px) {
  .chap-head { grid-template-columns: 1fr; align-items: start; gap: 0.75rem; }
}
.chap-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--stone);
  margin-bottom: 0.45rem;
}
.chapter h2 { margin-bottom: 0.35rem; }
.chap-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chap-head p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.section.dark .chap-meta { color: rgba(255, 255, 255, 0.72); }

/* Film strip */
.strip-wrap { margin-inline: calc(-1 * var(--pad)); }
.strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(var(--pad), calc((100vw - 72rem) / 2)) 1rem;
  scroll-padding-inline: max(var(--pad), calc((100vw - 72rem) / 2));
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: rgba(17, 17, 17, 0.25); border-radius: 3px; }
.section.dark .strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }
.strip:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

.frame {
  flex: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: var(--paper-deep);
  cursor: zoom-in;
  scroll-snap-align: start;
  overflow: hidden;
}
.frame img {
  height: clamp(14rem, 36vw, 24rem);
  width: auto;
  max-width: 82vw;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.frame:hover, .frame:focus-visible { border-color: var(--stone); }
.frame:hover img { transform: scale(1.03); }
.section.dark .frame { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.section.dark .frame:hover { border-color: var(--stone); }

.strip-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.strip-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid rgba(17, 17, 17, 0.3);
  background: none;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
}
.strip-btn:hover { border-color: var(--brick); color: var(--brick); }
.section.dark .strip-btn { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.section.dark .strip-btn:hover { border-color: var(--stone); color: var(--stone); }
.strip-count {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section.dark .strip-count { color: rgba(255, 255, 255, 0.75); }

/* ---------- Before / after slider ---------- */
.ba {
  position: relative;
  width: 100%;
  max-width: 56rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.2);
  touch-action: pan-y;
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.ba-divider::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ba-tag {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 17, 17, 0.6);
  pointer-events: none;
}
.ba-tag-before { left: 0.75rem; }
.ba-tag-after { right: 0.75rem; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3rem;
  height: 100%;
  cursor: ew-resize;
}
.ba-range::-moz-range-thumb {
  width: 3rem;
  height: 100%;
  border: none;
  background: transparent;
  cursor: ew-resize;
}
.ba-range:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

/* ---------- Heritage hero background ---------- */
.heritage-hero {
  background:
    linear-gradient(rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.62)),
    url("assets/gallery/old-01.jpg") center / cover no-repeat;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 70rem);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox .lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox .lb-btn, .lightbox .lb-close {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1.6rem;
}
.lightbox .lb-btn:hover, .lightbox .lb-close:hover { background: var(--brick); }
.lightbox .lb-prev { position: absolute; left: 1rem; }
.lightbox .lb-next { position: absolute; right: 1rem; }
.lightbox .lb-caption {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
@media (max-width: 540px) {
  .lightbox .lb-prev { left: 0.4rem; }
  .lightbox .lb-next { right: 0.4rem; }
  .lightbox img { max-width: 96vw; }
}

/* ---------- Video embed ---------- */

.video-embed {
  max-width: 56rem;
  margin: 2rem 0 2.5rem;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 17, 17, 0.2);
  display: block;
}
.video-embed figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Virtual tour walkthrough (Plan a Tour) ---------- */

.walkthrough { max-width: 56rem; margin-top: 2.25rem; }
.walk-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.walk-track::-webkit-scrollbar { display: none; }
.walk-stop {
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.walk-stop img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #171717;
  border: 1px solid rgba(17, 17, 17, 0.2);
}
.walk-stop figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.walk-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.3rem;
}
.walk-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.walk-count {
  margin-left: auto;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 540px) {
  .walk-stop img { aspect-ratio: 4 / 3; }
}

/* ---------- Slideshow (Home) ---------- */

.slideshow {
  position: relative;
  max-width: 56rem;
  margin: 2.5rem auto 0;
}
.slideshow .slide {
  display: none;
  margin: 0;
}
.slideshow .slide.active { display: block; }
.slideshow .slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(17, 17, 17, 0.2);
}
.slideshow figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.slide-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.slide-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 3px;
  font: 600 1rem var(--font-body);
  padding: 0.6rem 1rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.slide-btn:hover { background: var(--brick); }
.slide-dots { display: flex; gap: 0.5rem; margin-left: auto; }
.slide-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: var(--stone); border-color: var(--stone); }
@media (max-width: 540px) {
  .slide-dots button { width: 12px; height: 12px; }
}
