/*
  Jay Ambe PG: site styles. Colours, families and radii come from tokens.css
  (the design system); this file sets the web type scale and layout.
  Rules kept from the system: gold is never text on cream, charcoal never sits
  on navy, decoration is thin gold rules only (no gradients, no shadows).
*/

:root {
  --hairline: color-mix(in srgb, var(--navy) 14%, transparent);
  --hairline-strong: color-mix(in srgb, var(--navy) 28%, transparent);
  --card: #ffffff;
  --muted: color-mix(in srgb, var(--charcoal) 78%, var(--cream));
  --wrap: 1160px;
  --gutter: 16px;
  --section: clamp(64px, 9vw, 112px);
  --header-h: 68px;

  /* Web type scale. The system's print scale (12px body) is too small for
     screens, so sizes are set here; families, weights and tracking follow it. */
  --fs-display: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h3: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .on-navy:focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; }

/* Placeholders left in config.js show up highlighted until replaced. */
mark.todo { background: color-mix(in srgb, var(--gold) 30%, var(--cream)); color: var(--navy); outline: 1px dashed var(--navy); outline-offset: 1px; border-radius: 3px; padding: 1px 6px; }
.on-navy mark.todo { background: transparent; color: var(--gold); outline-color: var(--gold); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.15;
  text-wrap: balance;
}
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.35; color: var(--navy); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; max-width: 34em; }
.muted { color: var(--muted); }

/* Eyebrow with a gold rule, echoing the rules that flank PG in the lockup. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.center::after { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.on-navy .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--cream); color: var(--navy); }
.on-navy .btn-outline { border-color: var(--cream); color: var(--cream); }
.on-navy .btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-icon { width: 48px; padding: 0; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 64px; height: auto; margin-top: -4px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.04em; line-height: 1; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--navy); padding-block: 6px; border-bottom: 1px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: var(--radius-md); }
.nav-toggle .icon { margin: auto; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 1.0625rem; }
  .primary-nav a:hover { border-bottom-color: var(--hairline); color: var(--navy); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.0625rem; }
  .brand img { width: 52px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.hero-facts .icon { width: 20px; height: 20px; }

/* The navy panel recalls the signage board: reverse lockup inside a thin gold frame. */
.sign-panel {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(40px, 7vw, 72px) clamp(28px, 5vw, 56px);
  display: grid;
  place-items: center;
  gap: 28px;
  text-align: center;
  color: var(--cream);
}
.sign-panel::before { content: ""; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 4px; pointer-events: none; }
.sign-panel img { width: min(100%, 380px); height: auto; }
.sign-panel .sign-note { position: relative; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ---------- Promises band ---------- */
.promises { background: var(--navy); color: var(--cream); }
.promise-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.promise-list li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 12px; text-align: center; font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.promise-list .icon { width: 36px; height: 36px; color: var(--gold); stroke-width: 1.25; }
.promise-list li:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.promise-list li:nth-child(-n + 4) { border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.promise-list li:last-child { grid-column: 1 / -1; border-right: 0; }
@media (min-width: 760px) {
  .promise-list { grid-template-columns: repeat(5, 1fr); padding-block: 12px; }
  .promise-list li, .promise-list li:nth-child(odd), .promise-list li:nth-child(-n + 4) { border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); padding-block: 36px; }
  .promise-list li:last-child { grid-column: auto; border-right: 0; }
}

/* ---------- PG cards ---------- */
.pg-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pg-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.pg-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy); }
.pg-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge-boys { background: var(--cream); color: var(--navy); border: 1px solid var(--navy); }
.badge-girls { background: var(--gold); color: var(--navy); }
.badge-coed { background: var(--cream); color: var(--navy); border: 1px solid var(--navy); }
.badge-soon { background: var(--navy); color: var(--gold); border: 1px solid var(--gold); left: auto; right: 16px; }
.badge.inline { position: static; }
.pg-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.pg-area { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--muted); }
.pg-area .icon { width: 18px; height: 18px; color: var(--navy); flex: none; }
.pg-body p { margin: 0; }
.pg-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; align-items: baseline; gap: 6px; color: var(--navy); }
.pg-price strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.pg-actions { display: flex; gap: 10px; }
.pg-actions .btn:first-child { flex: 1; }

/* Navy placeholder used wherever a photo has not been added yet. */
.photo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--cream); text-align: center; padding: 24px; }
.photo-placeholder::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 4px; }
.photo-placeholder img { width: 42%; max-width: 180px; height: auto; }
.photo-placeholder span { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 720px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }
.amenity { display: flex; align-items: center; gap: 16px; font-weight: 500; line-height: 1.35; color: var(--navy); }
.amenity-tile { width: 56px; height: 56px; border-radius: var(--radius-lg); border: 1px solid var(--hairline-strong); display: grid; place-items: center; flex: none; background: var(--card); }
.amenity-tile .icon { width: 26px; height: 26px; }
@media (max-width: 420px) {
  .amenity { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { padding-top: 24px; border-top: 1px solid var(--gold); }
.step-num { font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--navy); margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }

/* ---------- Rules + FAQ ---------- */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.rule-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.rule-list li:first-child { padding-top: 0; }
.rule-list .icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--navy); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--navy); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 60ch; }

/* ---------- Enquiry ---------- */
.enquire-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .enquire-grid { grid-template-columns: 1.35fr 0.65fr; } }
.form-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-size: 1rem;
  color: var(--charcoal);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--navy); border-width: 2px; }
.field-error { display: block; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--navy); }
.field-error:empty { display: none; }
.field-error::before { content: "! "; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-full); font-size: 0.9375rem; font-weight: 500; color: var(--navy); background: var(--cream); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-foot .btn { min-width: 200px; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; flex: 1; min-width: 200px; }
.form-status { margin-top: 20px; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--navy); color: var(--navy); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--navy); color: var(--cream); }

.contact-card { background: var(--navy); color: var(--cream); border-radius: var(--radius-md); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.contact-card h3 { color: var(--cream); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.contact-item { display: flex; gap: 14px; }
.contact-item .icon { color: var(--gold); width: 22px; height: 22px; flex: none; margin-top: 2px; }
.contact-item dt { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-item dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact-card { align-self: start; }
.contact-card .btn-row { margin-top: 8px; }
.contact-card .btn { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding-block: 64px 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: 200px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; color: var(--cream); opacity: 0.9; }
.footer-title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--hairline-strong);
  }
  .action-bar .btn { min-height: 48px; padding: 8px; font-size: 0.875rem; gap: 8px; }
}

/* ---------- PG page ---------- */
.crumbs { font-size: 0.875rem; margin-bottom: 20px; color: var(--muted); }
.crumbs a { color: var(--navy); text-underline-offset: 3px; }
.pg-hero { padding-block: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 48px); }
.pg-hero-head { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .pg-hero-head { grid-template-columns: 1fr auto; } }
.pg-hero .display { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); margin: 14px 0 12px; }
.pg-hero .pg-area { font-size: 1rem; }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--navy); border: 0; padding: 0; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .gallery-item { aspect-ratio: auto; min-height: 170px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--navy) 72%, transparent); color: var(--cream); font-weight: 600; letter-spacing: 0.04em; }
.gallery-empty { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--navy); }
@media (min-width: 760px) { .gallery-empty { aspect-ratio: 21 / 9; } }

.room-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.room { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.room .h3 { margin-bottom: 2px; }
.room .rent { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gold); color: var(--navy); }
.room .rent strong { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; line-height: 1; }
.room .rent span { font-size: 0.875rem; }
.included { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.included li { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--navy); }
.included .icon { width: 18px; height: 18px; }

.location-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.nearby li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.nearby .icon { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 3px; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-md); background: var(--navy); }
@media (min-width: 900px) { .map-frame { aspect-ratio: 16 / 11; } }
.map-empty { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--navy); }

.not-found { text-align: center; padding-block: 120px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: color-mix(in srgb, var(--navy) 94%, transparent); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; color: var(--cream); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-size: 0.875rem; letter-spacing: 0.1em; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { text-align: center; padding: 12px var(--gutter) 20px; font-size: 0.9375rem; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--cream) 40%, transparent); border-radius: var(--radius-full); background: transparent; color: var(--cream); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 16px; transform: none; } }
