/* The Sterling Inn: single hand-written stylesheet. Mobile-first, no frameworks.
   Tokens come from the approved design system. Do not hardcode hex values below :root. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face{font-family:'Libre Caslon Display';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/libre-caslon-display-normal-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Caslon Text';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/libre-caslon-text-italic-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/libre-caslon-text-normal-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/libre-caslon-text-normal-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/source-sans-3-variable.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Tokens ---------- */
:root {
  --forest: #1F3A2D;
  --brass: #B49664;
  --brass-hover: #C4A878;
  --cream: #F7F3EC;
  --charcoal: #2B2B28;
  --pale-brass: #E8C990;
  --linen: #E3DACA;
  --muted: #6B6558;
  --sage-text: #8FA396;
  --stone-text: #D8D2C4;
  --white: #FFFFFF;
  --russet: #7A4A2B;
  --display: 'Libre Caslon Display', Georgia, serif;
  --editorial: 'Libre Caslon Text', Georgia, serif;
  --body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 3px;
  --wrap: 1100px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: var(--body); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--forest); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(21px, 2.5vw, 24px); }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 48px; padding-bottom: 56px; }
.section--white { background: var(--white); border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }
.section--green { background: var(--forest); color: var(--cream); }
.section--green h2 { color: var(--cream); }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.eyebrow--pale { color: var(--pale-brass); }
.editorial { font-family: var(--editorial); font-style: italic; font-size: 19px; }
.lede { font-size: 19px; max-width: 66ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: var(--cream); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; border-radius: var(--radius); font-weight: 700; text-decoration: none; letter-spacing: 0.03em; padding: 12px 24px; font-size: 15px; line-height: 1.2; }
.btn--book { background: var(--brass); color: var(--forest); }
.btn--book:hover { background: var(--brass-hover); color: var(--forest); }
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--secondary { border: 1px solid var(--forest); color: var(--forest); font-weight: 600; }
.btn--secondary:hover { border-color: var(--brass); color: var(--brass); }
.btn--ghost-light { border: 1px solid rgba(232, 201, 144, 0.5); color: var(--pale-brass); font-weight: 600; }
.btn--ghost-light:hover { border-color: var(--pale-brass); color: var(--pale-brass); }
.link-arrow { font-weight: 700; font-size: 15px; color: var(--forest); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }

/* ---------- Announcement bar ---------- */
.banner { background: var(--banner-bg, var(--forest)); color: var(--banner-fg, var(--cream)); position: relative; padding: 10px 44px 10px 16px; font-size: 15px; text-align: center; }
.banner__text { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; }
.banner__label { font-family: var(--editorial); font-style: italic; color: var(--banner-label, var(--brass)); }
.banner__link { color: inherit; font-weight: 700; }
.banner__link:hover { color: inherit; opacity: 0.85; }
.banner__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; padding: 6px 10px; cursor: pointer; }

/* ---------- Header and nav ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--linen); position: sticky; top: 0; z-index: 50; }
.site-header__inner { max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.site-header__logo img { height: 44px; width: auto; }
.nav-toggle { background: none; border: 1px solid var(--linen); border-radius: var(--radius); padding: 12px 11px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--forest); content: ''; position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.btn) { display: block; padding: 10px 4px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--forest); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }
.site-nav .btn { margin: 6px 0; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px 18px; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a:not(.btn) { padding: 8px 0; font-size: 15px; }
  .site-nav .btn { margin: 0; padding: 10px 18px; }
  .site-header__logo img { height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--forest) center / cover no-repeat; color: var(--cream); min-height: 72vh; display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(24, 38, 30, 0.3) 0%, rgba(24, 38, 30, 0.15) 32%, rgba(24, 38, 30, 0.82) 100%); }
.hero--short { min-height: 44vh; }
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 48px; }
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero--short h1 { font-size: clamp(34px, 5vw, 56px); max-width: 22ch; }
.hero__lede { color: var(--stone-text); max-width: 60ch; font-size: 19px; }
.hero__lede.editorial { color: var(--pale-brass); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ---------- Page header (standard pages) ---------- */
.page-header { background: var(--forest); color: var(--cream); padding: 48px 0 40px; }
.page-header h1 { color: var(--cream); font-size: clamp(34px, 5vw, 56px); }
.page-header .lede { color: var(--stone-text); margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose.wrap { max-width: var(--wrap); }
.prose > * { max-width: 72ch; }
.prose h2 { clear: both; margin-top: 1.6em; border-bottom: 2px solid var(--brass); padding-bottom: 8px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.prose img { border: 1px solid var(--linen); margin: 1.5em 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--5 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--linen); border-top: 4px solid var(--forest); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.card--brass { border-top-color: var(--brass); }
.card--green { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.card--green h3 { color: var(--pale-brass); }
.card--green .card__link { color: var(--pale-brass); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }

.room-card { background: var(--white); border: 1px solid var(--linen); display: flex; flex-direction: column; scroll-margin-top: 90px; }
.room-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.room-card h3 { margin: 0; font-size: 21px; }
.room-card__meta { margin: 0; font-size: 14px; color: var(--muted); }
.room-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: auto; }
.room-card__price { margin: 0; font-size: 14px; color: var(--muted); }
.room-card__price strong { color: var(--forest); font-size: 19px; }
.room-card .btn { padding: 8px 16px; font-size: 14px; }

/* ---------- Honest callout ---------- */
.callout { background: var(--white); border: 1px solid var(--linen); display: flex; flex-wrap: wrap; gap: 18px; padding: 24px 26px; align-items: flex-start; margin: 28px 0; }
.callout img, .prose .callout img { width: 48px; height: 48px; flex: none; border: 0; margin: 0; aspect-ratio: auto; }
.callout > div { flex: 1; min-width: 240px; }
.callout__title { margin: 0 0 6px; font-size: 21px; }
.callout p { margin: 0; font-size: 15px; line-height: 1.65; }

.christmas-banner { width: 100%; height: auto; display: block; margin: 1.2em 0 1.6em; border: 1px solid var(--linen); }

/* ---------- Closure note ---------- */
/* Deliberately quieter than the announcement bar: the bar states it once at
   the top of every page, this is a reminder beside a specific claim. */
.closure-note { background: var(--white); border: 1px solid var(--linen); border-left: 4px solid var(--brass); padding: 14px 18px; margin: 1.2em 0; }
.closure-note p { margin: 0; font-size: 15px; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 24px; margin: 1.8em 0; }
.event-card { background: var(--white); border: 1px solid var(--linen); border-left: 4px solid var(--brass); padding: 24px 26px 26px; }
.event-card h2 { margin: 0 0 10px; border: 0; padding: 0; font-size: 26px; }
.event-card__head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; }
.event-card__date { margin: 0; font-family: var(--body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.event-card__status { margin: 0; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius); white-space: nowrap; }
.event-card__status--open { background: #E4EDE6; color: var(--forest); }
.event-card__status--few { background: #F6EBD6; color: #7A5A1E; }
.event-card__status--full { background: var(--linen); color: var(--muted); }
.event-card__status--past { background: var(--linen); color: var(--muted); }
.event-card__image { width: 100%; margin: 0 0 14px; border: 1px solid var(--linen); }
.event-card__price { margin: 0 0 14px; }
.event-card__register { border-top: 1px solid var(--linen); margin-top: 18px; padding-top: 16px; }
.event-card__register h3 { margin: 0 0 6px; font-family: var(--body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.event-card__register p { margin: 0 0 8px; }
/* Said plainly, because guests have been sending card numbers by message. */
.event-card__safety { font-size: 14px; color: var(--muted); font-style: italic; margin: 0; }

.event-teaser { list-style: none; margin: 0 0 22px; padding: 0; }
.event-teaser li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--linen); }
.event-teaser a { font-family: var(--display); font-size: 20px; }
.event-teaser__date { color: var(--muted); font-size: 15px; }
.event-teaser__status { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: var(--radius); }

/* ---------- Social links ---------- */
.site-footer__social { display: flex; gap: 14px; margin-top: 14px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(232, 201, 144, 0.4); border-radius: 50%; color: var(--pale-brass); }
.site-footer__social a:hover { border-color: var(--pale-brass); background: rgba(232, 201, 144, 0.12); }
.site-footer__social svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.site-footer__social li { list-style: none; }
/* The contact band repeats the footer icons. Without these the SVG has no
   intrinsic size and fills the viewport, so keep the two in step. */
.cta-band__social { display: flex; gap: 14px; justify-content: center; margin: 18px 0 0; padding: 0; list-style: none; }
.cta-band__social li { list-style: none; }
.cta-band__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(232, 201, 144, 0.4); border-radius: 50%; color: var(--pale-brass); }
.cta-band__social a:hover { border-color: var(--pale-brass); background: rgba(232, 201, 144, 0.12); }
.cta-band__social svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* ---------- Practical details box (Explore) ---------- */
.info-box { background: var(--forest); color: var(--cream); padding: 26px 26px 28px; }
.info-box__title { font-size: 21px; color: var(--pale-brass); margin: 0 0 14px; border: 0; padding: 0; }
.info-box dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.info-box dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.info-box dd { margin: 0; font-size: 15px; line-height: 1.55; }
.info-box a { color: var(--pale-brass); }
.info-box__note { margin: 14px 0 0; font-size: 13px; color: var(--sage-text); }

.explore { display: grid; gap: 36px; grid-template-columns: 1fr; }
.explore__aside { display: flex; flex-direction: column; gap: 22px; }
.explore__stay { background: var(--white); border: 1px solid var(--linen); padding: 22px 26px; }
.explore__stay p { margin: 0 0 12px; }
@media (min-width: 900px) {
  .explore { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .explore__aside { position: sticky; top: 100px; align-self: start; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.split > img { border: 1px solid var(--linen); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--flip > :first-child { order: 2; } }

/* Text beside a figure. Unlike `.split > img`, this keeps the picture's own
   proportions, so a portrait photo is not cropped to 4:3. The figure's own
   width modifier still applies, so it sits centred in its column. Below
   800px .split is a single column, so these stack with the text first. */
.split--figure > .photo-figure { margin: 0; justify-self: center; }
.split--figure > .callout { margin: 0; }
.split--figure > div > :first-child { margin-top: 0; }
.split--figure > div > :last-child { margin-bottom: 0; }

.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.photo-row img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border: 1px solid var(--linen); }
@media (min-width: 800px) { .photo-row { grid-template-columns: repeat(4, 1fr); } }

.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--stone-text); max-width: 56ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--stone-text); font-size: 15px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer__logo { width: 120px; height: auto; filter: invert(1) sepia(0.2) brightness(0.97); margin-bottom: 12px; }
.site-footer__tagline { font-family: var(--editorial); font-style: italic; color: var(--pale-brass); margin: 0 0 4px; font-size: 17px; }
.site-footer__est { margin: 0; font-size: 14px; }
.site-footer__heading { font-family: var(--body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:not(.btn) { color: var(--cream); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--pale-brass); }
.site-footer__legal { margin: 0; text-align: center; padding: 18px var(--gutter); border-top: 1px solid rgba(232, 201, 144, 0.2); font-size: 13px; color: var(--sage-text); }

@media (min-width: 800px) { :root { --gutter: 40px; } .section { padding-top: 72px; padding-bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Stage 3 additions ---------- */
/* Matches `.cta-band p` on specificity, which a bare `.cta-band__contact`
   does not, so these margins actually win: clear of the button above, and
   nothing below, letting the section's own padding close the band. */
.cta-band p.cta-band__contact { margin: 24px auto 0; font-size: 15px; }
/* The band closes on a small line of text, so the section's 80px tail reads
   heavier than the 72px above a large heading. Match them. Doubling the class
   outranks the plain `.section` rule in the 800px media query below, whatever
   the source order. */
.section.cta-band { padding-bottom: 48px; }
@media (min-width: 800px) { .section.cta-band { padding-bottom: 72px; } }
.cta-band__contact a { color: var(--pale-brass); }
.room-card__placeholder { aspect-ratio: 4 / 3; background: var(--cream); border-bottom: 1px solid var(--linen); display: flex; align-items: center; justify-content: center; font-family: var(--editorial); font-style: italic; color: var(--muted); }
.room-group { margin-top: 48px; }
.room-group > p { color: var(--muted); max-width: 66ch; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--brass); }
.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--linen); font-size: 16px; margin: 0 0 1em; }
.rate-table th, .rate-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linen); vertical-align: top; }
.rate-table th { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.rate-table td:last-child { white-space: nowrap; font-weight: 700; color: var(--forest); }
.rate-table small { display: block; color: var(--muted); font-weight: 400; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.5em 0; }
@media (min-width: 800px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--linen); padding: 18px; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--forest); line-height: 1.1; }
.stat span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wide { max-width: none !important; }
/* ---------- Lightbox ---------- */
/* Any photo the script marks as zoomable. Cursor and focus ring only; the
   images themselves keep whatever sizing their own component gives them. */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
  justify-content: center; padding: 48px 20px; background: rgba(24, 38, 30, 0.92);
  opacity: 0; transition: opacity 260ms ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 1100px; max-height: 100%; display: flex;
  flex-direction: column; gap: 12px; transform: scale(0.97); transition: transform 260ms ease; }
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto;
  object-fit: contain; border: 1px solid rgba(247, 243, 236, 0.25); background: var(--forest); }
.lightbox__caption { color: var(--stone-text); font-family: var(--editorial); font-style: italic;
  font-size: 15px; text-align: center; margin: 0; }
.lightbox__caption:empty { display: none; }
.lightbox__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px;
  display: grid; place-items: center; background: transparent; color: var(--cream);
  border: 1px solid rgba(247, 243, 236, 0.35); border-radius: 50%; font-size: 24px;
  line-height: 1; cursor: pointer; font-family: var(--body); }
.lightbox__close:hover { background: rgba(247, 243, 236, 0.12); }
.lightbox__close:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
body.has-lightbox { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__figure { transition: none; }
  .lightbox__figure { transform: none; }
}

/* ---------- Captioned photo ---------- */
.photo-figure { margin: 1.8em 0; max-width: 72ch; }
.photo-figure img { margin: 0; width: 100%; }
.photo-figure figcaption { font-size: 15px; color: var(--muted); font-family: var(--editorial); font-style: italic; padding-top: 10px; }
.photo-figure--portrait { max-width: 380px; }
.photo-figure--medium { max-width: 520px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--linen); margin: 0; }
@media (min-width: 800px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.address-block { background: var(--white); border: 1px solid var(--linen); border-left: 4px solid var(--brass); padding: 16px 20px; font-family: var(--editorial); }
