/* Captured by the Reef — v1 local prototype styles. No external fonts or requests. */

:root {
  --cream: #f6f1e7;
  --cream-2: #eee6d6;
  --sand: #e3d5bc;
  --ink: #0f2a30;
  --ink-soft: #3d5257;
  --sea: #175a61;
  --sea-dark: #0f3f45;
  --sea-tint: #d7e8e6;
  --coral: #a4492b;
  --line: rgba(15, 42, 48, 0.14);
  --white: #ffffff;
  --focus: #b6531f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 4px;
  --header-h: 64px;
  --section-pad: clamp(56px, 9vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-dark); text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
p { margin: 0 0 1em; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 0.9rem;
}
.eyebrow-light { color: #f0c9a5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  min-height: 48px; padding: 0.75em 1.4em; border-radius: 999px;
  background: var(--sea); color: var(--white); border: 2px solid var(--sea);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: var(--white); text-decoration: none; }
.btn-small { min-height: 44px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-large { min-height: 56px; padding: 0.9em 1.9em; font-size: 1.08rem; }
.btn-ghost { background: transparent; color: var(--sea-dark); border-color: var(--sea); }
.btn-ghost:hover { background: var(--sea-tint); color: var(--sea-dark); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 42, 48, .5); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.wordmark {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap; margin-right: auto; line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark-by { font-style: italic; color: var(--sea); font-size: 0.86em; }

.site-nav { order: 2; }
.header-cta { order: 3; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font: 600 0.92rem var(--sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: block; color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px;
}
.nav-list a:not(.btn):hover { color: var(--sea); text-decoration: underline; }

/* Mobile nav panel (JS adds .js to <html>; without JS the list simply shows) */
.js .nav-list {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px -24px rgba(15, 42, 48, .6);
}
.js .nav-list:not(.is-open) { display: none; }
.nav-list li + li:not(.nav-cta-item) { border-top: 1px solid var(--line); }
.nav-cta-item { padding-top: 12px; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }
.header-cta { white-space: nowrap; }
@media (max-width: 419px) {
  .header-inner { gap: 8px; }
  .wordmark { font-size: 1.12rem; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .header-cta { padding-inline: 0.9em; }
}
@media (max-width: 379px) {
  .header-inner { gap: 6px; }
  .wordmark { font-size: 0.98rem; }
  .header-cta { padding-inline: 0.7em; font-size: 0.86rem; }
}
@media (max-width: 339px) {
  .wordmark { font-size: 0.86rem; }
}
/* Never let the header row force horizontal scrolling */
.header-inner > * { min-width: 0; }
.site-nav, .header-cta { flex: none; }
.wordmark { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 960px) {
  .site-nav { order: 1; margin-right: 8px; }
  .nav-toggle { display: none; }
  .js .nav-list, .nav-list {
    position: static; display: flex !important; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-list li + li:not(.nav-cta-item) { border-top: 0; }
  .nav-list a:not(.btn) { padding: 8px 10px; font-size: 0.95rem; }
  .nav-cta-item { display: none; }
}
@media (max-width: 959px) {
  .no-js-hidden { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; background: var(--cream); }
.hero-media { order: -1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-text { padding: 32px var(--gutter) 48px; }
.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem); line-height: 1.02; margin-bottom: 0.35em; letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--sea); font-size: 0.72em; }
.hero-lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.5; max-width: 34ch; font-family: var(--serif); }
.hero-location { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); max-width: 44ch; }
.hero-location .icon { flex: none; margin-top: 4px; color: var(--coral); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 0 0 1.5em; font-weight: 600; font-size: 0.95rem; }
.hero-facts li:not(:last-child)::after { content: "·"; margin: 0 0.6em; color: var(--coral); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2em; }
.rating-note { font-size: 0.92rem; margin: 0; }
.rating-note a { font-weight: 600; }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(calc(100vh - var(--header-h)), 860px); }
  .hero-media { order: 0; aspect-ratio: auto; height: 100%; min-height: 560px; }
  .hero-text {
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px 48px 56px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  }
}

/* At a glance */
.glance { background: var(--ink); color: var(--cream); }
.glance-list {
  list-style: none; margin: 0; padding: 28px 0; display: grid; gap: 20px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.glance-list li { display: flex; flex-direction: column; gap: 2px; }
.glance-num { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; }
.glance-word { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.glance-label { font-size: 0.88rem; letter-spacing: 0.04em; color: #d8e3e1; }
.glance-list li:last-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .glance-list { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 36px 0; }
  .glance-list li:last-child { grid-column: auto; }
  .glance-list li + li { border-left: 1px solid rgba(246, 241, 231, .2); padding-left: 20px; }
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); }

.frame { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figure.frame figcaption, .location-photos figcaption {
  font-size: 0.88rem; color: var(--ink-soft); padding: 10px 2px 0; background: transparent;
}
.location-photos .frame, .reef-grid .frame { background: transparent; }
.location-photos .frame img, .reef-grid .frame img { border-radius: var(--radius); height: auto; aspect-ratio: 3 / 2; }

.split { display: grid; gap: 40px; align-items: center; }
.split-text p { max-width: 60ch; }
.stack { position: relative; }
.frame-tall img { aspect-ratio: 4 / 3; }
.frame-inset { width: 58%; margin: -18% 0 0 auto; position: relative; border: 6px solid var(--cream); border-radius: 6px; }
.frame-inset img { aspect-ratio: 3 / 2; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 6fr; gap: 64px; }
  .frame-tall img { aspect-ratio: 5 / 4; }
  .frame-inset { width: 52%; margin: -22% 0 0 -12%; }
}

/* Location */
.location { background: var(--cream-2); }
.location-grid { display: grid; gap: 28px; }
.schematic { background: var(--white); border-radius: 6px; padding: 16px; border: 1px solid var(--line); }
.schematic svg { width: 100%; height: auto; display: block; }
.schematic figcaption { font-size: 0.85rem; color: var(--ink-soft); padding-top: 10px; }
.sch-label { font: 600 19px var(--sans); fill: #0f2a30; }
.sch-small { font: 15px var(--sans); fill: #2f454a; }
.sch-road { font: 600 15px var(--sans); fill: #f6f1e7; }
.sch-accent { fill: #a4492b; font-weight: 600; }
.location-photos { display: grid; gap: 24px; }
.location-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.location-points li { background: var(--cream); border-left: 3px solid var(--coral); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
@media (min-width: 720px) {
  .location-photos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .location-grid { grid-template-columns: 2fr 3fr; gap: 28px; align-items: stretch; }
  .location-photos { gap: 28px; }
  .location-photos .frame { display: flex; flex-direction: column; }
  .location-photos .frame img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; height: 100%; object-fit: cover; }
  .location-points { grid-template-columns: repeat(3, 1fr); }
}

/* Rooms */
.room-grid { display: grid; gap: 28px; }
.room-card { background: var(--white); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.room-card .frame { border-radius: 0; }
.room-card .frame img { aspect-ratio: 3 / 2; }
.room-body { padding: 22px 24px 26px; }
.room-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.4em; }
.room-body h3 { margin-bottom: 0.2em; }
.room-bed { font-weight: 600; color: var(--sea-dark); margin-bottom: 0.8em; }
@media (min-width: 720px) { .room-grid { grid-template-columns: 1fr 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.5em; margin-bottom: 0.45em; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 0.55em; height: 0.55em;
  border-radius: 50%; background: var(--sea-tint); box-shadow: inset 0 0 0 2px var(--sea);
}

.baths { display: grid; gap: 20px; margin-top: 48px; align-items: start; }
.baths .frame img { aspect-ratio: 3 / 2; }
.defs { margin: 0; }
.defs div { padding: 12px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { margin: 2px 0 0; color: var(--ink-soft); }
@media (min-width: 960px) { .baths { grid-template-columns: 4fr 3fr 3fr; gap: 28px; } }

.table-wrap { margin-top: 48px; overflow-x: auto; }
.sleep-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
@media (max-width: 559px) {
  .sleep-table { font-size: 0.88rem; }
  .sleep-table th, .sleep-table td { padding: 10px 6px; }
}
.sleep-table caption { text-align: left; font-family: var(--serif); font-size: 1.3rem; padding-bottom: 12px; }
.sleep-table th, .sleep-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sleep-table thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.sleep-table tbody th { font-weight: 600; }

/* Living */
.living { background: var(--white); }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic .frame img { aspect-ratio: 3 / 2; }
.mosaic .m-a { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .mosaic .m-a { grid-column: 1 / span 7; grid-row: span 2; }
  .mosaic .m-a img { height: 100%; aspect-ratio: auto; }
  .mosaic .m-b, .mosaic .m-c { grid-column: 8 / span 5; }
  .mosaic .m-d { grid-column: 1 / span 6; }
  .mosaic .m-e { grid-column: 7 / span 6; }
}
.feature-cols { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 840px) { .feature-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Outdoor */
.outdoor-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.outdoor-grid .frame img { aspect-ratio: 3 / 2; }
.outdoor-grid .o-main, .outdoor-grid .o-text { grid-column: 1 / -1; }
.o-text { padding: 12px 0 20px; }
@media (min-width: 960px) {
  .outdoor-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .outdoor-grid .o-main { grid-column: 1 / span 3; }
  .outdoor-grid .o-main img { aspect-ratio: 16 / 9; }
  .outdoor-grid .o-text { grid-column: 4 / span 1; padding: 0 0 0 8px; align-self: center; }
}
.comforts { margin-top: 56px; padding: 28px; background: var(--cream-2); border-radius: 6px; }
.comfort-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.comfort-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Reef gallery (dark) */
.reef { background: var(--ink); color: var(--cream); }
.reef h2, .reef h3 { color: var(--cream); }
.reef .section-intro { color: #d3dfdd; }
.reef a { color: #f0c9a5; }
.reef :focus-visible { outline-color: #f2c879; }
.reef-head { max-width: 760px; margin-bottom: 40px; }
.reef-grid { display: grid; gap: 24px; }
.reef-grid figcaption { background: transparent !important; color: #c9d7d5 !important; }
@media (min-width: 720px) {
  .reef-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.credits { margin-top: 48px; border-top: 1px solid rgba(246, 241, 231, .2); padding-top: 32px; }
.credit-list { display: grid; gap: 20px; margin: 0; }
.credit-list dt { font-family: var(--serif); font-size: 1.2rem; }
.credit-list dd { margin: 4px 0 0; color: #d3dfdd; }
@media (min-width: 840px) { .credit-list { grid-template-columns: 1fr 1fr; gap: 28px 48px; } }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.g-contain .g-item { background: var(--white); }
.g-contain .g-item img { object-fit: contain; }
.g-item:hover img { opacity: .92; }
@media (prefers-reduced-motion: no-preference) { .g-item:hover img { transform: scale(1.03); } }
.js .gallery:not(.is-expanded) [data-extra] { display: none; }
.gallery-more { margin-top: 28px; text-align: center; }

/* Nearby */
.nearby { background: var(--cream-2); }
.nearby-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.nearby-grid li { background: var(--cream); padding: 24px; border-radius: 6px; border-top: 3px solid var(--sea); }
.nearby-grid p { margin: 0; color: var(--ink-soft); }
@media (min-width: 720px) { .nearby-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .nearby-grid { grid-template-columns: repeat(4, 1fr); } }

/* FAQ accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { margin: 0; font-size: inherit; font-family: var(--sans); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; min-height: 56px; background: none; border: 0; color: var(--ink); text-align: left;
  font: 600 1.06rem/1.4 var(--sans); cursor: pointer;
}
.acc-btn:hover { color: var(--sea); }
.acc-icon { flex: none; width: 14px; height: 14px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .2s ease; }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { padding: 0 4px 18px; color: var(--ink-soft); max-width: 68ch; }
.acc-panel[hidden] { display: none; }

/* Final CTA */
.final-cta { background: var(--sea-dark); color: var(--cream); }
.final-cta h2 { color: var(--cream); }
.final-cta p { color: #d8e5e3; }
.final-cta :focus-visible { outline-color: #f2c879; }
.host-note { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1.6em; }
.final-cta .btn { margin: 12px 0 18px; }
.rating-light a { color: var(--cream); }
.rating-light a:hover { color: var(--white); }

/* Footer */
.site-footer { background: #0b2025; color: #cfdcda; padding: 56px 0 64px; font-size: 0.95rem; }
.site-footer a { color: #f0c9a5; }
.site-footer :focus-visible { outline-color: #f2c879; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }
.wordmark-footer { color: var(--cream); font-size: 1.5rem; margin-bottom: 0.8em; }
.wordmark-footer .wordmark-by { color: #9fcfcb; }
.footer-h { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); margin-bottom: 1em; }
.footer-list { padding-left: 1.1em; margin: 0 0 1em; }
.footer-list li { margin-bottom: 0.35em; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(7, 20, 23, 0.97); color: var(--cream);
}
@supports (height: 100dvh) { .lightbox { height: 100dvh; max-height: 100dvh; } }
.lightbox::backdrop { background: rgba(7, 20, 23, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0 20px; }
.lb-count { margin: 0; font-size: 0.92rem; color: #cfdcda; font-variant-numeric: tabular-nums; }
.lb-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 8px 16px 20px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100% - 4.5em); width: auto; height: auto; object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.lb-caption { margin-top: 12px; max-width: 70ch; text-align: center; font-size: 0.98rem; line-height: 1.45; color: #e4ecea; min-height: 2.9em; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: rgba(246, 241, 231, 0.08); color: var(--cream); border: 1px solid rgba(246, 241, 231, 0.25); border-radius: 50%; cursor: pointer;
}
.lb-btn:hover { background: rgba(246, 241, 231, 0.18); }
.lightbox :focus-visible { outline-color: #f2c879; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 719px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-figure { padding-bottom: 76px; }
}
html.lb-open { overflow: hidden; }

/* Gentle reveal (only with JS, only when motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .lightbox, .gallery-more { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
