/* Monarch option 1: "Throne room". Cool marble white, burgundy ink taken from the logo ground, gold from the crest. Italiana (a thin, elegant display face) with Hanken Grotesk.
   Signature: the real gold crest, a utility strip of opening hours above the bar, a centred heraldic hero. Footer: a framed "Visit the palace" card with the hours.
   Motion (GSAP in assets/js/motion.js): headline and crest rise from a blur, reveals, photo parallax. Off under reduced motion. */
@font-face { font-family: "Italiana"; font-weight: 400; font-display: swap; src: url("assets/fonts/italiana.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken.woff2") format("woff2"); }
@view-transition { navigation: auto; }
:root {
  color-scheme: light;
  --bg: #f4f4f2; --surface: #ffffff; --surface-2: #e8e6e3;
  --ink: #3a0b10; --muted: #6a5558; --line: rgba(58, 11, 16, .16); --line-strong: rgba(58, 11, 16, .5);
  --accent: #6a1219; --accent-ink: #fff; --gold: #b8893c; --gold-soft: #cf9e4e; --danger: #b3261e;
  --display: "Italiana", Georgia, serif; --body: "Hanken Grotesk", system-ui, sans-serif;
  --r: 12px; --max: 1180px; --gutter: clamp(18px, 4vw, 44px); --strip: 38px; --nav-h: 76px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 400; letter-spacing: .01em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 10vw, 9rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.lede { color: var(--muted); max-width: 40em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
section { padding-block: clamp(64px, 9vw, 130px); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); }
.link .i { transition: transform .5s var(--spring); } .link:hover .i { transform: translateX(5px); }
.tag { display: inline-flex; margin: 0 0 16px; padding: 6px 16px; border: 1px solid var(--gold); border-radius: 999px; font: 600 .74rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .4s var(--spring); }
.btn:has(.btn__i) { padding: 6px 6px 6px 26px; }
.btn:active { transform: scale(.98); }
.btn__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, currentColor 18%, transparent); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -1px) scale(1.06); }
.btn--primary { background: var(--accent); color: var(--accent-ink); } .btn--primary:hover { background: #4d0c12; }
.btn--line { border-color: var(--line-strong); color: var(--ink); } .btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--quiet { color: var(--ink); text-decoration: underline; padding: 0 10px; }
.btn--light { background: #fff; color: var(--accent); } .btn--light:hover { background: #f3e3d0; }
.btn--lg { min-height: 58px; font-size: 1.06rem; } .btn--lg:has(.btn__i) { padding: 7px 7px 7px 30px; } .btn--lg .btn__i { width: 44px; height: 44px; }
.btn--sm { min-height: 42px; font-size: .96rem; } .btn--sm:has(.btn__i) { padding: 4px 4px 4px 20px; } .btn--sm .btn__i { width: 34px; height: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Header: an hours strip over a double-ruled bar */
.top { position: sticky; top: 0; z-index: 60; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.strip { margin: 0; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; min-height: var(--strip); align-items: center; padding: 6px var(--gutter); background: var(--accent); color: #f3dfc4; font: 500 .84rem var(--body); letter-spacing: .06em; }
.strip a { color: #fff; font-weight: 700; text-decoration: none; }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--nav-h); border-bottom: 3px double var(--gold); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 46px; height: auto; filter: brightness(.82) saturate(1.2); }
.logo__words { display: grid; line-height: 1; }
.logo__words b { font: 400 1.7rem var(--display); letter-spacing: .04em; }
.logo__words small { font: 600 .7rem var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 10px 18px; border-radius: 999px; transition: background .5s var(--spring); }
.nav a:not(.btn):hover { background: rgba(106, 18, 25, .08); }
.nav a[aria-current="page"]:not(.btn) { background: rgba(184, 137, 60, .2); }
.menu-btn { display: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; text-align: center; }
.hero__in { display: grid; justify-items: center; gap: 4px; }
.hero__crest { width: clamp(120px, 16vw, 200px); height: auto; margin-bottom: 8px; filter: brightness(.82) saturate(1.2); }
.hero__sub { font-size: 1.2rem; color: var(--muted); margin: 18px auto 28px; max-width: 36em; }
.hero .actions { justify-content: center; }
.hero__rating { margin: 22px 0 0; color: var(--muted); font-size: .98rem; }
.hero__photo { margin: clamp(40px, 6vw, 72px) 0 0; position: relative; max-height: 70vh; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; object-position: 50% 92%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -80px 80px -60px var(--bg); pointer-events: none; }

/* Three spaces */
.rooms h2 { margin-bottom: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--gold); }
.trio article { padding: 32px clamp(18px, 2.6vw, 40px) 8px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.trio article:first-child { border-left: 0; padding-left: 0; }
.trio h3 { margin-bottom: 8px; color: var(--accent); }
.trio p { color: var(--muted); }

/* Hall */
.hall { background: var(--surface); }
.hall__grid { display: grid; grid-template-columns: 1.1fr 1fr .5fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hall__grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); padding: 6px; background: var(--bg); }
.hall__grid img { width: 100%; height: auto; object-fit: cover; }
.hall__a img { aspect-ratio: 16 / 11; } .hall__b img { aspect-ratio: 9 / 16; }
.hall__txt { display: grid; justify-items: start; }
.hall__txt h2 { margin-bottom: 16px; } .hall__txt p { color: var(--muted); }

/* Voice */
.voice__lead { margin: 0 auto clamp(36px, 5vw, 64px); max-width: 34em; text-align: center; }
.voice__lead p { font: 400 clamp(1.8rem, 3.2vw, 2.7rem)/1.18 var(--display); margin-bottom: 16px; }
.voice footer { color: var(--muted); font-size: .94rem; }
.voice__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); border-top: 1px solid var(--gold); padding-top: 28px; }
.voice__row blockquote { margin: 0; } .voice__row p { font: 400 1.45rem/1.3 var(--display); margin-bottom: 12px; }
.voice__note { text-align: center; margin: 34px auto 0; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.voice__note a { color: var(--accent); font-weight: 600; }

/* Night */
.night { position: relative; padding: 0; min-height: clamp(380px, 62vh, 620px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.night__bg { position: absolute; inset: 0; margin: 0; z-index: -2; } .night__bg img { width: 100%; height: 100%; object-fit: cover; }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(40, 6, 10, .85), rgba(40, 6, 10, .05) 65%); }
.night__txt { display: grid; justify-items: start; gap: 6px; padding-block: clamp(28px, 5vw, 56px); } .night .link { color: #f3dfc4; }
.band { background: var(--accent); color: #fff; text-align: center; }
.band__inner { display: grid; justify-items: center; gap: 12px; } .band h2 { font-size: clamp(3rem, 8vw, 7rem); } .band p { margin: 0 0 18px; color: #f3dfc4; }

/* Inner pages */
.phead { padding-block: clamp(32px, 5vw, 64px); }
.phead__lede { color: var(--muted); font-size: 1.2rem; max-width: 40em; margin: 18px 0 0; }
.vhead { padding-block: clamp(32px, 5vw, 64px); }
.vhead__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.vhead__lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 20px 0 26px; }
.vhead__photo { margin: 0; padding: 6px; border: 1px solid var(--gold); } .vhead__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 100px); }
.vmain > section { padding: 0 0 clamp(40px, 5vw, 72px); } .vmain h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.rows { margin: 0 0 14px; display: grid; border-top: 1px solid var(--gold); }
.rows div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { font: 400 1.4rem var(--display); } .rows dd { margin: 0; color: var(--accent); font-weight: 600; text-align: right; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); } .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; } .note a { color: var(--accent); font-weight: 600; }
.quotes { display: grid; border-top: 1px solid var(--gold); }
.quotes blockquote { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.quotes p { font: 400 1.45rem/1.3 var(--display); margin-bottom: 6px; } .quotes footer { color: var(--muted); font-size: .92rem; }
address { font-style: normal; margin-bottom: 14px; font-size: 1.12rem; }
.map { background: var(--surface); border: 1px solid var(--line); min-height: 380px; overflow: hidden; } .map iframe { width: 100%; height: 420px; border: 0; display: block; }
.glance, .rsvp__card { background: var(--surface); border: 1px solid var(--line-strong); }
.glance { position: sticky; top: 140px; padding: 26px; display: grid; gap: 18px; } .glance h2 { font-size: 1.9rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 14px; } .glance dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } .glance dd { margin: 2px 0 0; }
.glance a:not(.btn) { color: var(--accent); font-weight: 600; }
.rsvp__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.rsvp__card { padding: clamp(22px, 4vw, 44px); }
.contact { list-style: none; padding: 0; margin: 22px 0 0; display: grid; } .contact li { display: flex; align-items: center; gap: 12px; } .contact a { font-weight: 600; color: var(--accent); }

/* Footer: a framed visit card */
.foot { background: var(--accent); color: #f6e8d2; padding: clamp(48px, 6vw, 88px) 0 clamp(104px, 11vw, 132px); }
.foot a { color: inherit; text-decoration: none; }
.visit__card { background: #5a0f16; border: 1px solid var(--gold); outline: 1px solid rgba(207, 158, 78, .4); outline-offset: 6px; padding: clamp(28px, 4vw, 52px); text-align: center; display: grid; justify-items: center; gap: 12px; }
.visit__crest { width: 86px; height: auto; }
.visit__card h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.visit__addr { margin: 0; color: #f3dfc4; }
.visit__hours { margin: 8px 0; display: grid; gap: 4px; width: min(420px, 100%); }
.visit__hours div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px dotted rgba(207, 158, 78, .6); }
.visit__hours dt { color: #f3dfc4; } .visit__hours dd { margin: 0; font-weight: 700; color: #fff; }
.visit__act { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; }
.visit .btn--primary { background: var(--gold-soft); color: #2a0a0d; } .visit .btn--primary:hover { background: #e0b36a; }
.visit__tel { font: 400 1.9rem var(--display); }
.ft-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px; margin-top: 34px; font-size: .95rem; }
.ft-links, .ft-legal { display: flex; flex-wrap: wrap; gap: 2px 20px; } .ft-links a, .ft-legal a { display: inline-flex; align-items: center; min-height: 44px; } .ft-links a:hover, .ft-legal a:hover { text-decoration: underline; }
.ft-copy { margin: 0; opacity: .8; font-size: .9rem; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 1.5px solid var(--gold-soft); transition: transform .4s var(--spring); }
.wa:active { transform: scale(.98); }
.grain { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: .05; background: url("assets/img/grain.png"); mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 900px) {
  .strip span:nth-child(2) { display: none; }
  .menu-btn { display: inline-block; position: relative; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; z-index: 90; }
  .burger { position: absolute; inset: 0; } .burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .6s var(--spring); }
  .burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 25px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 70; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 90px var(--gutter) 40px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .6s var(--spring), visibility 0s .6s; }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--spring), visibility 0s; }
  .nav a:not(.btn) { font: 400 2.8rem var(--display); padding: 6px 0; border-radius: 0; transform: translateY(40px); opacity: 0; transition: transform .8s var(--spring), opacity .8s var(--spring); }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(1) { transition-delay: .1s; } .nav.is-open a:nth-child(2) { transition-delay: .17s; } .nav.is-open a:nth-child(3) { transition-delay: .24s; } .nav.is-open a:nth-child(4) { transition-delay: .31s; }
  .nav .nav__cta { margin-top: 20px; font: 600 1.1rem var(--body); }
  .logo__words small { display: none; }
  .trio, .voice__row { grid-template-columns: 1fr; } .trio article { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hall__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: 1fr; } .hall__b { max-width: 300px; }
  .glance { position: static; } .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { h1 { font-size: clamp(3.2rem, 15vw, 4.2rem); } }

/* Shared components for both Havilah options: RSVP form, gallery grid, lightbox, reveal.
   Relies on tokens defined by each option: --bg --ink --muted --line --line-strong --accent --accent-ink --surface --surface-2 --r */

[hidden] { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* RSVP form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field .opt, .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field.has-error input, .field.has-error select { border-color: var(--danger, #c0261c); }
.err { margin: 0; color: var(--danger, #c0261c); font-size: .9rem; font-weight: 600; }
.field--radios, .field--branch { gap: 8px; }
.field--radios, .field--branch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--radios legend, .field--branch legend { width: 100%; margin-bottom: 2px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; }
.radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 550; }
.status a { text-underline-offset: 3px; font-weight: 700; }
.form button:disabled { opacity: .6; cursor: progress; }
.done { display: grid; gap: 10px; }
.done h2 { font-size: 1.7rem; }
.done p { margin: 0; color: var(--muted); }
.done a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Gallery grid */
.all__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 3 260px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.tile__open img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tile__open:hover img, .tile__open:focus-visible img { transform: scale(1.04); }
.tile__open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile figcaption { padding-top: 8px; display: grid; gap: 1px; font-size: .95rem; }
.tile figcaption small { color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.note a { color: var(--ink); text-underline-offset: 3px; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lb::backdrop { background: rgba(8, 10, 12, .92); }
.lb[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100dvh; padding: 24px 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--r); }
.lb__fig figcaption { color: #dfe5e8; font-size: .95rem; text-align: center; padding-inline: 12px; }
.lb__nav, .lb__x { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .24); }
.lb__nav:focus-visible, .lb__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb .i { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .lb[open] { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 16px; }
  .lb__nav--prev { left: 16px; }
  .lb__nav--next { right: 16px; }
}

/* Picture wrappers must not break layouts that size the image from its parent */
picture { display: contents; }

/* Policy and 404 pages */
.legal { padding-top: clamp(32px, 5vw, 64px); }
.legal__wrap { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1rem; }
.legal a { text-underline-offset: 3px; font-weight: 600; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.consent { margin: 0; font-size: .88rem; color: var(--muted); }
.consent a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Click-to-load map */
.map__ph { height: 100%; min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 6px; padding: clamp(20px, 4vw, 40px); }
.map__ph p { max-width: 30em; color: var(--muted); margin: 0; }
.map__ph a:not(.btn) { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Tap targets: links in lists and footers are at least 44px tall */
.foot__col a, .contact a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.contact { gap: 0 !important; }
.foot__col { gap: 0 !important; }

/* Floating WhatsApp collapses to an icon on phones so it never covers content */
@media (max-width: 700px) {
  .wa { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa .i { width: 26px; height: 26px; }
}
