/* ==========================================================================
   Wedding site template
   --------------------------------------------------------------------------
   1. Tokens            6. Hero
   2. Reset & base      7. Sections
   3. Utilities         8. Gallery & lightbox
   4. Header & nav      9. Forms
   5. Buttons          10. Footer, motion, print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* A scrapbook page: pale warm stock, one terracotta ink, one sage accent.
     Terracotta (hsl 14 42% 54%) is the brand; sage is its warm/cool
     counterweight, and it carries only the decorative accents. The neutrals
     stay warm and near-neutral so body copy never turns muddy between them. */
  --paper: #fbf4ee;
  --paper-alt: #f4eae2;
  --paper-deep: #e9dcd2;
  --ink: #3d312b;
  --ink-soft: #6d5a51;
  --ink-faint: #978075;
  --clay: #bb6f58;
  /* The same hue, darkened just far enough to carry --paper as button text:
     white on the brand colour is only 3.8:1, under the 4.5:1 WCAG AA needs. */
  --clay-deep: #a65b44;
  --clay-dark: #8f4a34;
  --gold: #a3ab84;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);

  /* Bodoni Moda is the high-contrast serif for the announcement, League Script
     the script for the names, Montserrat the geometric sans for everything else.
     League Script ships at one weight only — see FONT_URL. */
  --font-display: 'Bodoni Moda', 'Bodoni MT', Didot, 'Playfair Display', serif;
  --font-script: 'League Script', 'Snell Roundhand', 'Segoe Script', cursive;
  --font-body: 'Montserrat', 'Futura', 'Century Gothic', system-ui, sans-serif;

  /* Montserrat is a wide face with a large x-height, so the text scale sits
     low and the measure is narrow — 68ch of a geometric sans is unreadable. */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  --step-2: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-3: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-4: clamp(1.9rem, 1.25rem + 2.8vw, 3.3rem);
  /* A script face is optically far smaller than a serif at the same size, so the
     names get their own step — and a smaller one than the announcement's, so
     the two fit on one row beside each other. */
  --step-names: clamp(1.3rem, 0.9rem + 1.2vw, 1.85rem);
  /* The event names on the schedule are the same face at a reading size. */
  --step-path: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem);

  --gutter: clamp(1.5rem, 6.5vw, 2.75rem);
  --measure: 56ch;
  --radius: 4px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent),
    0 4px 12px color-mix(in srgb, var(--ink) 6%, transparent);
  --shadow-lg: 0 18px 50px color-mix(in srgb, var(--ink) 16%, transparent);

  --transition: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --nav-height: 4.5rem;

  /* A fine pen, not a marker: the border should read as a drawn line over the
     print, not a frame drawn around it. */
  --wave-stroke: clamp(0.9px, 0.2vw, 1.9px);

  /* Film grain, generated rather than downloaded. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Reset & base ---------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

/**
 * Bodoni Moda is requested with its optical-size axis, and left alone the axis
 * follows the font-size: at poster size it picks a large optical size and thins
 * the serifs to near-hairlines, which is a far more elegant Didone than the fat
 * wood-type the design asks for. Pinning it low keeps the stems heavy and the
 * serifs sturdy — and sturdier serifs are also what a section heading needs at
 * 20px, where a hairline would disappear.
 */
h1,
h2,
h3,
.nav__brand,
.site-footer__hashtag,
.countdown.is-done .countdown__label {
  font-variation-settings: 'opsz' 11;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  /* A display serif needs negative tracking at large sizes, or the words drift
     apart. */
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--clay-dark);
  text-decoration-color: color-mix(in srgb, var(--clay) 45%, transparent);
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

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

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

::selection {
  background: color-mix(in srgb, var(--gold) 45%, transparent);
}

[hidden] {
  display: none !important;
}

/* 3. Utilities ------------------------------------------------------------- */

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

.container--narrow {
  width: min(100% - (var(--gutter) * 2), 48rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translate(-50%, -110%);
  transition: transform var(--transition);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0.5rem);
  color: var(--paper);
}

/* 4. Header & nav ---------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 0.85rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.is-scrolled,
.site-header.is-nav-open {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.5rem;
}

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

.nav__brand {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle-bar {
  position: relative;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav__toggle-bar::before {
  transform: translateY(-0.3rem);
}

.nav__toggle-bar::after {
  transform: translateY(0.3rem);
}

.is-nav-open .nav__toggle-bar {
  background: transparent;
}

.is-nav-open .nav__toggle-bar::before {
  transform: rotate(45deg);
}

.is-nav-open .nav__toggle-bar::after {
  transform: rotate(-45deg);
}

.nav__menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__link {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--clay-dark);
}

@media (min-width: 62rem) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
  }
}

@media (max-width: 61.99rem) {
  .is-nav-open .nav {
    flex-wrap: wrap;
  }

  /* Scoped to `.is-nav-open`, so the menu is genuinely closed until the button
     is pressed. Unscoped, it displayed at every width below the breakpoint: the
     nav only gained `flex-wrap` when opened, so the links sat squeezed in
     beside the brand and the button looked like it did nothing. */
  .is-nav-open .nav__menu {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    padding-block: 0.75rem 1rem;
    border-top: 1px solid var(--line);
  }
}

/* 5. Buttons --------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.button--solid {
  background: var(--clay-deep);
  color: var(--paper);
}

.button--solid:hover {
  background: var(--clay-dark);
  color: var(--paper);
  transform: translateY(-1px);
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--clay);
  background: color-mix(in srgb, var(--clay) 8%, transparent);
  color: var(--ink);
}

/* 6. Hero ------------------------------------------------------------------ */

/* A flex column, not a grid: an auto-sized grid track here takes its width from
   its widest child, which can push the track past the viewport — and that drags
   the .container's auto margins negative, landing the title hard against the
   left edge of the screen. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 2rem) 0 clamp(3rem, 8vh, 5rem);
  isolation: isolate;
}

/* Two columns on one line: the feature on the left, the details on the right.
   Below the breakpoint they stack, in the same order.

   This is stated rather than left to `.container`, because `.container` sizes
   itself with `min(100% - 2 * gutter, 74rem)` and as a flex item that
   percentage resolves against a stretched track — which lands the box wider
   than the page and pushes the left-aligned lockup off the left edge. Padding
   for the margin, max-width for the measure, stated the obvious way. */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  /* Stretch, not start: the info column is then as tall as the feature column,
     which is what lets `justify-content: center` actually centre it. */
  align-items: stretch;
  gap: clamp(1.5rem, 4.5vw, 3.5rem);
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Without this a grid item refuses to shrink below its content, and one long
     headline would widen the whole hero past the viewport. */
  min-width: 0;
}

.hero__feature,
.hero__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The print sets the scale for the column. In the design the gap from the type
   to the photo is about a tenth of the photo's own width, and the type lockup
   runs one and a half photo-widths across — so the photo is the unit and the
   spacing is expressed in multiples of it. */
.hero__feature {
  --print-w: min(76%, 30rem);
  align-items: center;
}

.hero__info {
  /* Centred on both axes within its column. */
  justify-content: center;
  align-items: center;
  padding-block: clamp(0.5rem, 2vw, 2rem);
}

/* Below this the two columns would each be too narrow to set a two-line
   announcement beside a two-line signature, so the hero stacks instead. */
@media (max-width: 68rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .hero__feature {
    align-items: center;
  }

  /* Stacked, there is nothing to centre against, so it just flows. */
  .hero__info {
    justify-content: flex-start;
    padding-block: 0;
  }
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  /* The announcement and the signature are one lockup, and the lockup is
     centred over the print — the design sets it floating above the picture, not
     hard against the edge of the column. So the block shrink-wraps its own
     content and centres, rather than spanning the column and starting hard
     left. `max-width` keeps it inside the column on a narrow screen. */
  justify-content: flex-start;
  align-content: flex-end;
  gap: 0.1em 0.1rem;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: calc(var(--print-w) * 0.09);
  color: var(--clay);
  text-align: left;
}

.hero__headline {
  /* Capped so the announcement sets on two lines, the way the design does, and
     so the shorter second line leaves the signature somewhere to sit beside it.
     In `em` rather than `ch`: `ch` is the width of "0", which in a heavy
     Didone is much wider than an average glyph — 13ch measures some 90px wider
     than the text it holds — and it shifts again if a fallback font loads. */
  max-width: 6.6em;
  font-size: var(--step-4);
  font-weight: 900;
  /* The design sets the two lines hard together, almost touching. */
  line-height: 0.92;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

/* The names are signed on two lines, the separator hanging off the second. They
   sit beside the announcement's lower line, so they must keep their size rather
   than shrink to fit. */
.hero__names {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-script);
  font-size: var(--step-names);
  font-weight: 400;
  line-height: 1.02;
  color: var(--clay-dark);
  /* The announcement's box is capped so it sets on two lines, which leaves
     trailing space beside the shorter second line. Pull the signature back over
     it so the two touch, as they do in the design — the box is as wide as the
     longest line, and the names belong against the words, not against its edge. */
  margin-left: -3.5rem;
  /* And it sits below the announcement's baseline: the signature hangs off the
     title rather than sitting level with it. */
  margin-bottom: -0.4em;
  /* The signature is written by hand, so it is never quite level. */
  rotate: -15deg;
}

.hero__name {
  display: block;
  white-space: nowrap;
}

.hero__given {
  display: inline;
}

.hero__sep {
  font-size: 0.52em;
  /* No colour of its own: it inherits the names' ink, so the plus can never
     drift out of step with the words it sits between. */
  margin-right: 0.14em;
}

/* Photobooth print --------------------------------------------------------- */

.hero__media {
  display: grid;
  justify-items: center;
  width: 100%;
}

.strip {
  position: relative;
  width: var(--print-w);
  margin: 0;
}

.strip__photo {
  display: block;
  width: 100%;
  /* Never cropped: the print is shown whole, so its own proportions stand. */
  height: auto;
  /* Just enough to warm a colour snapshot into the film. The bundled print is
     already toned, and a heavy filter only muddies it. */
  filter: contrast(1.04) sepia(0.08) saturate(0.94);
}

.strip__grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 9rem 9rem;
  mix-blend-mode: overlay;
  opacity: 0.16;
  pointer-events: none;
}

/* The hand-drawn border, stroked over the photo's edge. `non-scaling-stroke`
   keeps the line the same weight however the SVG is stretched to fit, and the
   photo is not clipped to it — the picture stays whole. */
.strip__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--clay);
  overflow: visible;
  pointer-events: none;
}

.strip__wave path {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--wave-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Details ----------------------------------------------------------------- */

/* The hand-drawn rule above the details, and the scribbled heart below the
   countdown. Both are the same ink as the border round the print, so they share
   its stroke weight and its rounded ends. */
.hero__divider,
.hero__heart {
  display: block;
  overflow: visible;
}

/* Long: a rule only reads as a rule if it has some length to run, and the
   stroke does not thicken with it (non-scaling-stroke below). */
.hero__divider {
  width: min(19rem, 84%);
  height: auto;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--clay);
}

.hero__heart {
  width: 2.1rem;
  height: auto;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--clay);
}

.hero__divider path,
.hero__heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--wave-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Keep the line even as each SVG is scaled to its own box. */
  vector-effect: non-scaling-stroke;
}

/* The asterisk between the two halves of the rule. Struck with a thick round
   pen rather than filled, and deliberately without non-scaling-stroke: the
   design draws it as a bold marker, noticeably heavier than the rules, so it
   should grow and shrink with the mark instead of staying a hairline. */
.hero__divider-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
}

/* The second pass of the heart, offset, is what makes it look scribbled. */
.hero__heart-second {
  opacity: 0.55;
}

/* Sentence case, wide tracking, in the right-hand column. */
.hero__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 30rem;
  margin-inline: auto;
  color: var(--clay);
  text-align: center;
  text-wrap: balance;
}

.hero__tagline {
  max-width: 34ch;
  margin-bottom: 0.9rem;
  font-size: var(--step-0);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__date,
.hero__place {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

.hero__place {
  font-size: var(--step-0);
  color: var(--ink);
}

/* Scroll cue -------------------------------------------------------------- */

main#main {
  position: relative;
}

.main__corner-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(32rem, 44vw);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  width: 1.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--clay) 45%, transparent);
  border-radius: 999px;
  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--clay);
  transform: translateX(-50%);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 0.85rem);
  }
}

/* Countdown --------------------------------------------------------------- */

.countdown {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.countdown__label {
  color: var(--ink-faint);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown__grid {
  display: flex;
  gap: clamp(0.9rem, 3.5vw, 2.25rem);
  justify-content: center;
  margin-top: 0.5rem;
}

.countdown__unit {
  min-width: 3.25rem;
  /* The count and its unit are centred over each other. Without this both are
     left-aligned inside the fixed column, so a three-digit number and a
     two-digit one sit at different offsets and the row reads as ragged. */
  text-align: center;
}

.countdown__value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__name {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Once the date has passed there is nothing left to count down to. */
.countdown.is-done .countdown__grid {
  display: none;
}

.countdown.is-done .countdown__label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  text-transform: none;
  color: var(--clay);
}

/* 7. Sections -------------------------------------------------------------- */

.section {
  padding-block: clamp(4rem, 11vw, 8.5rem);
}

.section--story {
  background: var(--paper-alt);
}

.section__eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}

.section__intro {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.section__intro--center {
  margin-inline: auto;
  text-align: center;
}

.section__deadline {
  margin-top: 1rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.subheading {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  font-size: var(--step-2);
  text-align: center;
}

/* Timeline (story) -------------------------------------------------------- */

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.35rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--paper-alt);
  border: 1px solid var(--clay);
  border-radius: 50%;
}

.timeline__date {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.timeline__title {
  margin-block: 0.2rem 0.4rem;
  font-size: var(--step-2);
}

.timeline__text {
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Schedule ----------------------------------------------------------------- */

/* The order of the day is read along a winding line rather than down a column
   of rules, the way a route is drawn on a map: the stops alternate either side
   of one meandering stroke. The line is an inline SVG stretched to whatever
   height the list needs, and its stroke is kept even by non-scaling-stroke. */
.section--schedule .section__intro {
  margin-inline: auto;
}

.path {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  /* Room either side of the line for the cards to sit on. */
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}

.path__line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  color: var(--clay);
  overflow: visible;
  pointer-events: none;
}

.path__line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.path__stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.85rem) clamp(0.5rem, 1.5vw, 0.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.path__stop {
  display: flex;
  min-width: 0;
}

/* Alternate sides. The card is capped at a little under half the column, so the
   line always has a clear run between the two. */
.path__stop--left {
  justify-content: flex-start;
  padding-right: 0;
  text-align: left;
}

.path__stop--right {
  justify-content: flex-end;
  padding-left: 0;
  text-align: right;
  margin-top: 4.5rem;
}

.path__stop--right .path__card {
  text-align: right;
  align-self: end;
}

.path__card {
  max-width: 22rem;
  min-width: 0;
}

/* The drawing that goes with each stop. It is line art in `currentColor`, so it
   is tinted by CSS and follows the palette. */
.path__art {
  display: block;
  width: clamp(9rem, 22vw, 14rem);
  height: auto;
  margin-bottom: 0.35rem;
  color: var(--clay);
  overflow: visible;
}

.path__stop--right .path__art {
  margin-left: auto;
}

.path__stop--left .path__art {
  margin-left: 0;
}

.path__stop--left .path__card {
  text-align: left;
  align-self: start;
}

.path__label {
  /* Event names in the display serif face */
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  color: #000;
}

.path__time {
  margin-top: 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.path__where {
  margin-top: 0.15rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.path__note {
  margin-top: 0.6rem;
  max-width: 46ch;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink);
}

.path__stop--right .path__note {
  margin-left: auto;
}

.path__stop--left .path__note {
  margin-left: 0;
}

/* The route ends in a heart. */
.path__end {
  display: block;
  width: 1.5rem;
  height: auto;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  color: var(--clay);
  overflow: visible;
}

.path__end path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.path__end-second {
  opacity: 0.55;
}

/* Mobile-only stretch of the wave; drawn per stop, see the media query below. */
.path__wave {
  display: none;
}

@media (max-width: 46rem) {
  /* On mobile the stops still alternate sides, one per row, and the line
     weaves down the middle between them like a sine wave. Each stop draws its
     own half-wave (.path__wave, an SVG stretched to the stop's height): it
     leaves the centre at the top, swells out beside the card, and comes back
     to the centre at the bottom, crossing on a diagonal. The next stop's
     half-wave is the mirror image and leaves the centre at the same angle, so
     the halves join into one smooth S. The last one hands the line to the
     heart, also centred. */
  .path {
    /* How far the wave swings out from the centre, as a share of the width. */
    --snake-swing: 20%;
    --snake-gap: 1rem;
    padding-inline: 0;
  }

  .path__line {
    display: none;
  }

  .path__stops {
    display: block;
  }

  .path__stop {
    position: relative;
    display: flex;
    margin: 0;
    padding-block: 2.75rem;
  }

  .path__wave {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--snake-swing);
    height: 100%;
    color: var(--clay);
    overflow: visible;
    pointer-events: none;
  }

  .path__wave path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }

  /* Card on the left, wave swelling to the right. */
  .path__stop--left {
    justify-content: flex-start;
    padding-inline: 0 calc(50% - var(--snake-swing) + var(--snake-gap));
    text-align: left;
  }

  /* Card on the right, wave swelling to the left: the same drawing, mirrored
     about the centre line. */
  .path__stop--right {
    justify-content: flex-end;
    padding-inline: calc(50% - var(--snake-swing) + var(--snake-gap)) 0;
    text-align: right;
    margin-top: 0;
  }

  .path__stop--right .path__wave {
    left: auto;
    right: 50%;
    transform: scaleX(-1);
  }

  .path__card {
    max-width: 100%;
  }

  .path__art {
    width: clamp(8rem, 40vw, 11rem);
  }

  .path__label {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .path__end {
    margin-top: 0.15rem;
  }
}

/* Cards (venue) ------------------------------------------------------------ */

.section--schedule {
  background: var(--paper-alt);
}

.section--venue {
  position: relative;
  background-image: url('../photos/venue-bg.webp');
  background-size: cover;
  background-position: center;
}
.section--venue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(93, 78, 60, 0.95);
  z-index: 0;
}
.section--venue .container {
  position: relative;
  z-index: 1;
  color: #f2ece6;
}
.section--venue .section__title,
.section--venue .subheading,
.section--venue .venue__name,
.section--venue .address,
.section--venue .notes,
.section--venue .venue__directions,
.section--venue .card__title,
.section--venue .card__meta,
.section--venue .card__note,
.section--venue .card__note a {
  color: #f2ece6;
}
.section--venue .card__title a {
  color: #f2ece6;
}

.venue {
  display: flex;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
  align-items: flex-start;
}

.venue__main {
  max-width: 60ch;
}

.venue__name {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.address {
  font-style: normal;
  color: var(--ink-soft);
  display: grid;
}

.address__line {
  display: block;
}

.venue__directions {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.notes {
  margin-top: 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.5rem;
  font-size: var(--step--1);
}

.venue__video {
  flex: 1 1 auto;
  max-width: 100%;
  margin-top: 0;
  align-self: stretch;
  min-width: 0;
}

.venue__video .video-wrapper {
  aspect-ratio: 12 / 9;
  height: auto;
  min-height: 240px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-step { display: none !important; }
.form-step.is-active { display: block !important; }
.form-step-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
.step-counter { font-size: 0.875rem; color: var(--ink-soft); }
.form-step__title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.section--rsvp .form__fields { text-align: center; }
.section--rsvp .field { text-align: left; }
.section--rsvp .field__label { text-align: center; padding-top: 1.5rem; }
.section--rsvp .field--group .field__label { padding-top: 1.5rem; padding-bottom: 0.5rem; }
@media (max-width: 640px) {
  .form-step-nav { gap: 0.5rem; }
  .form-step-nav .button { width: 100%; justify-content: center; }
  .section--rsvp .field { margin-bottom: 3.5rem; }
  .section--rsvp fieldset { margin-bottom: 3.5rem; }
}
.section--rsvp .choices--pair,
.section--rsvp .choices--wrap { grid-template-columns: 1fr; }
.section--rsvp .choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  line-height: 1.35;
}
.section--rsvp .choice:hover {
  border-color: color-mix(in srgb, var(--clay) 40%, transparent);
}
.section--rsvp .choice--inline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.35;
}
.section--rsvp .choice input[type="radio"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cards--center {
  justify-items: stretch;
  max-width: 52rem;
  margin-inline: auto;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.card {
  padding: 1.5rem;
  background: color-mix(in srgb, #fff 60%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--clay) 35%, transparent);
  box-shadow: var(--shadow-lg);
}

.card__title {
  font-size: var(--step-1);
  margin-bottom: 0.25rem;
}

.card__title a {
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
}

.card__meta {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.card__note {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.card--link a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card--link .card__title {
  color: var(--clay-dark);
}

.card--link .card__note {
  display: block;
}

/* 8. Gallery & lightbox ---------------------------------------------------- */

.gallery {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
  }
}

.gallery__button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--paper-deep);
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}

.gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1), filter var(--transition);
}

.gallery__button:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgb(46 41 37 / 70%), transparent);
  color: var(--paper);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-align: left;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__button:hover .gallery__caption,
.gallery__button:focus-visible .gallery__caption {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(10 31 140 / 92%);
  backdrop-filter: blur(4px);
}

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(100%, 60rem);
  max-height: 84svh;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 74svh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  color: color-mix(in srgb, var(--paper) 85%, transparent);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.6rem 1.1rem;
  background: rgb(250 247 243 / 12%);
  color: var(--paper);
  border: 1px solid rgb(250 247 243 / 35%);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: rgb(250 247 243 / 12%);
  color: var(--paper);
  border: 1px solid rgb(250 247 243 / 35%);
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox__nav:hover {
  background: rgb(250 247 243 / 22%);
}

.lightbox__nav--prev {
  left: 0.5rem;
}

.lightbox__nav--next {
  right: 0.5rem;
}

@media (max-width: 40rem) {
  .lightbox__nav {
    top: auto;
    bottom: 0.25rem;
    transform: none;
  }
}

/* RSVP decoration (the PNG placed beside the form) ------------------------ */

.section--rsvp .container {
  display: block;
}

.rsvp-body {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.rsvp-body > :not(.rsvp-decoration) {
  flex: 1 1 auto;
  min-width: 0;
}

.rsvp-decoration {
  flex: 0 0 auto;
  width: clamp(14rem, 22vw, 20rem);
  opacity: 0.9;
}

.rsvp-decoration img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 54rem) {
  .rsvp-body {
    flex-direction: column;
    align-items: center;
  }
  .rsvp-decoration {
    width: clamp(12rem, 60vw, 20rem);
  }
}

/* 9. Forms ----------------------------------------------------------------- */

.form {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: color-mix(in srgb, #fff 66%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form__fields {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.field--group .field__label {
  padding: 0;
}

.field__label {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field__hint {
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.field__input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--step-0);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 18%, transparent);
}

.field__input[aria-invalid='true'] {
  border-color: #a4443a;
}

.field__input--area {
  resize: vertical;
  min-height: 7rem;
}

.field__error {
  font-size: var(--step--1);
  color: #a4443a;
}

.choices {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.choices--wrap {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.choices--pair {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.choice:hover {
  border-color: color-mix(in srgb, var(--clay) 40%, transparent);
}

.choice:has(input:checked) {
  border-color: var(--clay);
  background: color-mix(in srgb, var(--clay) 8%, var(--paper));
}

.choice input {
  accent-color: var(--clay);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: 0 0 auto;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  margin-top: 2rem;
}

.form__status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.form__status--success {
  color: #4c6b4f;
}

.form__status--error {
  color: #a4443a;
}

.form__status--pending {
  color: var(--ink-faint);
}

.form.is-done {
  opacity: 0.65;
}

.form__note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.section--rsvp {
  background: var(--paper);
}

/* Countdown responsive fix -------------------------------------------------- */

@media (max-width: 30rem) {
  .countdown__grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  .countdown__unit {
    min-width: calc(50% - 0.5rem);
  }
}

/* Gallery grid fix ---------------------------------------------------------- */

@media (max-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  }
}

/* Hero print on very narrow screens ----------------------------------------- */

@media (max-width: 20rem) {
  .hero__feature {
    --print-w: min(90%, 30rem);
  }
}

/* Schedule serpentine line on mobile ---------------------------------------- */

@media (max-width: 46rem) {
  .path__line {
    height: auto;
    min-height: 100%;
  }
}

/* Language switcher row gap ------------------------------------------------- */

.langs {
  row-gap: 0.5rem;
}

/* Carousel modal nav safe-area insets --------------------------------------- */

@media (max-width: 40rem) {
  .lightbox__nav--prev {
    left: max(0.5rem, env(safe-area-inset-left));
  }
  .lightbox__nav--next {
    right: max(0.5rem, env(safe-area-inset-right));
  }
  .carousel-modal__nav--prev {
    left: max(1rem, env(safe-area-inset-left));
  }
  .carousel-modal__nav--next {
    right: max(1rem, env(safe-area-inset-right));
  }
}

/* 10. Footer, motion, print ------------------------------------------------ */

.site-footer {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  text-align: center;
}

.site-footer__inner {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.site-footer__hashtag {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  color: var(--paper);
}

.site-footer__message {
  max-width: 40ch;
  font-size: var(--step--1);
}

.site-footer__contact a,
.site-footer__legal a {
  color: color-mix(in srgb, var(--paper) 85%, var(--gold));
}

.site-footer__legal {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* Language switcher -------------------------------------------------------- */

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.langs__item {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}

.langs__item:hover {
  color: var(--paper);
  border-bottom-color: color-mix(in srgb, var(--paper) 40%, transparent);
}

.langs__item.is-current {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

/* Scroll reveal ----------------------------------------------------------- */

/* Only hidden when the script that reveals it is actually running, so the page
   is fully readable with JavaScript disabled or blocked. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.3, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print ------------------------------------------------------------------- */

@media print {
  .site-header,
  .hero__scroll,
  .lightbox,
  .form__actions,
  .gallery__caption {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding-block: 2rem;
  }

  /* The ink and the grain are decoration; the print is the content. */
  .strip__grain,
  .strip__wave {
    display: none;
  }

  .section {
    padding-block: 1.5rem;
    break-inside: avoid;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #555;
  }
}

/* Dress code / color swatches ---------------------------------------------- */
.section--money-pot {
  background: var(--paper-alt);
}

.money-pot__action {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.section--dresscode {
  background: var(--paper);
}
.dresscode__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}
.dresscode__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.dresscode__dot {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 12%, transparent), 0 0 0 2px var(--paper-alt), 0 0 0 3.5px color-mix(in srgb, var(--line) 40%, transparent);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.dresscode__swatch:hover .dresscode__dot {
  transform: scale(1.12);
}
.dresscode__label {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.35;
}
.dresscode__hex {
  font-family: var(--font-body);
  font-size: 0.75em;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Venue carousel ------------------------------------------------------------ */
.venue-carousel {
  margin-top: clamp(2rem, 5vw, 3rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(242,236,230,0.4) transparent;
}
.venue-carousel::-webkit-scrollbar {
  height: 6px;
}
.venue-carousel::-webkit-scrollbar-thumb {
  background: rgba(242,236,230,0.4);
  border-radius: 999px;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}
.carousel-slide {
  flex: 0 0 85%;
  max-width: 24rem;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
}
.carousel-slide picture,
.carousel-slide__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carousel-slide--video {
  flex: 0 0 85%;
  max-width: 24rem;
  scroll-snap-align: start;
}
.carousel-slide--video .video-wrapper {
  aspect-ratio: 12 / 9;
}

@media (max-width: 48rem) {
  .carousel-slide {
    flex: 0 0 92%;
    max-width: 28rem;
  }
  .carousel-slide--video {
    flex: 0 0 92%;
    max-width: 28rem;
  }
}

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(242,236,230,0.4);
  background: rgba(93,78,60,0.85);
  color: #f2ece6;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease;
}
.carousel-arrow:hover {
  background: rgba(93,78,60,0.95);
  border-color: rgba(242,236,230,0.8);
}

/* Carousel modal overlay */
.carousel-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem);
  background: rgba(45, 35, 30, 0.92);
  backdrop-filter: blur(8px);
}
.carousel-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(242,236,230,0.35);
  background: rgba(93,78,60,0.85);
  color: #f2ece6;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
}
.carousel-modal__inner {
  position: relative;
  max-width: 68rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-modal__img.is-active {
  display: block;
}
.carousel-modal__img {
  display: none;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.carousel-modal__video {
  display: none;
  width: 100%;
  max-width: 68rem;
  aspect-ratio: 16 / 9;
}
.carousel-modal__video.is-active {
  display: block;
}
.carousel-modal__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}
.carousel-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(242,236,230,0.4);
  background: rgba(93,78,60,0.85);
  color: #f2ece6;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease;
  z-index: 201;
}
.carousel-modal__nav:hover {
  background: rgba(93,78,60,0.95);
  border-color: rgba(242,236,230,0.8);
}
.carousel-modal__nav--prev { left: 1rem; }
.carousel-modal__nav--next { right: 1rem; }
.carousel-modal__inner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
body.carousel-modal-open {
  overflow: hidden;
}
