:root {
  color-scheme: light;
  --paper: #f7f1e5;
  --ink: #222c52;
  --blue: #222f70;
  --gold: #f7d878;
  --muted: #50566b;
  --line: #cfc8bc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid #aa641a; outline-offset: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 100px, 1350px); margin-inline: auto; }
.skip {
  position: fixed; z-index: 2; inset: 12px auto auto 12px;
  background: var(--blue); color: white; padding: 10px 16px; transform: translateY(-150%);
}
.skip:focus { transform: none; }

.masthead {
  min-height: 132px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none;
}
.brand-logo { width: 222px; height: auto; }
.masthead nav { display: flex; align-items: center; gap: 29px; }
.nav-space, .outline-link, .solid-link, .map-link, .back-top {
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.nav-space:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .32em; }
.outline-link, .solid-link, .map-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 46px; padding: 9px 16px; border: 1px solid currentColor;
}
.outline-link:hover { background: var(--blue); color: white; }
.outline-link span, .solid-link span, .map-link span { font-size: 17px; line-height: 1; }

.hero {
  display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(26px, 4.4vw, 78px);
  align-items: center; padding-block: clamp(40px, 5.5vw, 84px) clamp(44px, 5.2vw, 77px);
}
.hero-copy { padding-bottom: 24px; }
.eyebrow {
  display: flex; align-items: center; gap: .64rem;
  font: 700 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .18em;
}
.spark { font-size: 18px; line-height: 1; color: #96651f; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
h1 { font-size: clamp(53px, 7.0vw, 110px); line-height: .96; margin-top: 24px; }
h1 em { color: var(--blue); white-space: nowrap; }
.lede { margin-top: 28px; max-width: 31ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); }
.solid-link { margin-top: 28px; background: var(--blue); border-color: var(--blue); color: white; }
.solid-link:hover { background: #364991; border-color: #364991; }

.hero-image {
  position: relative; isolation: isolate; background: #d6c5ab; overflow: hidden;
  border-radius: 48% 48% 2px 2px / 19% 19% 2px 2px;
}
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.21; object-fit: cover; object-position: 48% 50%; }
.photo-seal {
  position: absolute; right: 18px; bottom: 18px;
  display: grid; justify-items: center; align-content: center; gap: 2px;
  width: 89px; aspect-ratio: 1; border-radius: 50%;
  background: var(--gold); color: var(--blue); box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 5px var(--blue);
  font-size: 9px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  transform: rotate(11deg);
}
.photo-seal b { font-size: 24px; font-weight: 400; }
.hero-figure figcaption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.space { background: var(--blue); color: var(--paper); padding-block: clamp(52px, 6.5vw, 100px); }
.section-intro {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: end;
  gap: 28px; margin-bottom: clamp(26px, 4vw, 54px);
}
.space .spark { color: var(--gold); }
h2 { font-size: clamp(48px, 6.4vw, 90px); line-height: .98; margin-top: 15px; }
.space h2 em { color: var(--gold); }
.section-summary { max-width: 39ch; padding-bottom: 2px; justify-self: end; color: #f0eadf; }
.gallery-viewport {
  --tile-width: clamp(320px, 84vw, 550px);
  --tile-height: clamp(285px, 26vw, 390px);
  --photo-gap: clamp(12px, 1.3vw, 22px);
  overflow-x: auto; overflow-y: hidden; padding-block: 8px 12px;
  touch-action: pan-y pinch-zoom; user-select: none;
}
.gallery-viewport.is-looping { overflow: hidden; overflow: clip; cursor: grab; }
.gallery-viewport.is-dragging { cursor: grabbing; }
.gallery-track { display: flex; width: max-content; }
.is-looping .gallery-track { will-change: transform; }
.gallery-group {
  display: grid; flex-shrink: 0; width: max-content;
  grid-template-rows: repeat(2, var(--tile-height));
  grid-auto-columns: var(--tile-width);
  grid-auto-flow: column dense;
  gap: var(--photo-gap); padding-right: var(--photo-gap);
}
.reel-card { position: relative; overflow: hidden; border-radius: 10px; background: #4c577f; }
/* Each set of three fills two columns, alternating the full-height tile. */
.reel-card:nth-child(6n + 2), .reel-card:nth-child(6n + 4) { grid-row: span 2; }
.reel-card a { display: block; position: relative; height: 100%; cursor: inherit; -webkit-user-drag: none; }
.reel-card a::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(transparent, rgb(12 16 32 / .85));
  pointer-events: none;
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.reel-enlarge {
  position: absolute; z-index: 1; inset: auto 16px 16px auto; display: grid; place-items: center;
  width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--blue);
}
.reel-card figcaption {
  position: absolute; z-index: 1; inset: auto 64px 19px 18px; pointer-events: none;
  display: flex; align-items: baseline; gap: 10px;
  font: 400 clamp(19px, 2vw, 28px)/1.15 var(--serif);
}
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; }
.gallery-instructions { color: #e1e3ef; font-size: 12px; }
.gallery-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.reel-pause { color: var(--paper); background: transparent; border: 1px solid #8b94b3; min-height: 44px; padding: 9px 14px; cursor: pointer; font-size: 12px; }
.reel-pause:hover { color: var(--blue); background: var(--paper); }
.index { color: var(--gold); font: 700 10px/1 var(--sans); letter-spacing: .09em; }
.gallery-link {
  margin-top: 5px; min-height: 44px; cursor: pointer; padding: 0;
  border: 0; border-bottom: 1px solid currentColor; background: none;
  color: var(--paper); font-size: 13px; font-weight: 700;
}
.gallery-link span { margin-left: 9px; }
.gallery-link:hover { color: var(--gold); }
.space :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }

.visit { border-bottom: 1px solid var(--line); }
.visit-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding-block: clamp(52px, 7vw, 105px);
}
.visit h2 em { color: var(--blue); }
.visit-details { margin-top: 22px; }
.visit-map { display: block; width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 10px; }
.visit-details p { font-weight: 700; }
.visit-details p span { color: var(--muted); font-weight: 400; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.visit-details .visit-contact { margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 400; }
.map-link:hover { background: var(--blue); color: white; }
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 84px;
}
.footer .brand-logo { width: 166px; margin-block: 15px; }
.footer p { font-size: 12px; color: var(--muted); }
.back-top { white-space: nowrap; }

.lightbox {
  width: min(850px, 100% - 30px); max-height: calc(100% - 24px);
  padding: clamp(14px, 3vw, 28px); border: 1px solid #62709d; color: var(--paper);
  background: #171f46;
}
.lightbox::backdrop { background: rgb(12 15 30 / .83); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox-head, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-head h2 { margin: 0; font-size: clamp(22px, 4vw, 36px); letter-spacing: -.035em; }
.gallery-icon {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #8b94b3; background: transparent; color: var(--paper);
  cursor: pointer; font-size: 24px; line-height: 1;
}
.gallery-icon:hover { background: var(--paper); color: var(--blue); }
.lightbox-photo { margin-block: 12px; }
.lightbox-photo img { width: 100%; height: min(57vh, 560px); object-fit: contain; background: #101634; }
.lightbox-photo figcaption { min-height: 26px; margin-top: 8px; font-family: var(--serif); }
.lightbox-controls { justify-content: center; }
.photo-count { min-width: 53px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 28px; }
  h1 { font-size: clamp(48px, 7.3vw, 77px); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 108px; }
  .masthead nav { gap: 15px; }
  .brand-logo { width: 172px; }
  .footer .brand-logo { width: 136px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 37px 35px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(54px, 12.25vw, 81px); margin-top: 17px; }
  .lede { margin-top: 18px; }
  .solid-link { margin-top: 19px; }
  .hero-image img { aspect-ratio: 1.36; }
  .photo-seal { width: 73px; inset: auto 12px 12px auto; font-size: 8px; }
  .photo-seal b { font-size: 19px; }
  .section-intro, .visit-inner { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .section-summary { justify-self: start; }
  .visit-map { margin-top: 12px; height: 240px; }
  .gallery-bottom { align-items: start; flex-direction: column; gap: 10px; }
  .gallery-actions { width: 100%; }
  .reel-pause { margin-right: auto; }
}

@media (max-width: 480px) {
  .nav-space { display: none; }
}

@media (max-width: 390px) {
  .masthead { gap: 12px; }
  .brand-logo { width: 150px; }
  .footer p { display: none; }
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: clamp(44px, 14vw, 54px); }
}

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