/* J&J Apartments Zanzibar — styles
   Colors follow the logo: crimson + bougainvillea pink + leaf green on warm cream. */

:root {
  --wine: #7e1029;
  --crimson: #c4163e;
  --crimson-dark: #a3102f;
  --pink: #d61f78;
  --leaf: #2e6b3f;
  --leaf-soft: #e6f0e7;
  --cream: #fbf7f2;
  --sand: #f4ebe0;
  --line: #e7dacd;
  --ink: #2a1c1f;
  --muted: #6d5a5e;
  --white: #ffffff;

  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 28, 31, .06), 0 8px 24px rgba(42, 28, 31, .08);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--wine); margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); }
.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-outline { border-color: var(--crimson); color: var(--crimson-dark); background: transparent; }
.btn-outline:hover { background: var(--crimson); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wine); margin-right: auto; }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--serif); }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }

.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: var(--sand); color: var(--wine); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--cream); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  font: 600 .8rem/1 var(--sans); letter-spacing: .04em;
  min-width: 36px; min-height: 32px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--crimson); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--wine); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .main-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .header-inner { gap: 8px; }
  .lang-switch button { min-width: 32px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--wine); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 10, 15, .15) 0%, rgba(30, 10, 15, .35) 45%, rgba(50, 8, 20, .82) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); max-width: 16em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; margin-bottom: 1em; opacity: .95; }
.hero-text { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 38em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; } }

/* ---------- Facts ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.fact { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; }
.fact .ico { width: 30px; height: 30px; color: var(--crimson); }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--sand); }
.section-title { text-align: center; }
.section-lead { text-align: center; max-width: 44em; margin: 0 auto 2.2em; color: var(--muted); }
.eyebrow { font-family: var(--serif); font-style: italic; color: var(--pink); font-size: 1.2rem; margin-bottom: .3em; }
.note { color: var(--muted); font-size: .92rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Gallery */
/* 9 photos: the first one spans 2×2, which fills 4 rows of 3 (or 6 rows of 2) evenly. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.g-item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Apartment cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.specs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: .95rem; }
.specs li { display: flex; gap: 8px; align-items: flex-start; }
.specs .ico { color: var(--leaf); margin-top: .15em; }
.badge { align-self: flex-start; background: #fde7f1; color: #9c1356; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge-green { background: var(--leaf-soft); color: var(--leaf); }

.booking-banner { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--crimson); }
.booking-banner p { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--wine); }

/* Amenities */
.amenities { list-style: none; margin: 28px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.amenities li { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.amenities .ico { width: 28px; height: 28px; color: var(--crimson); }
#amenities .note { text-align: center; }

/* Services */
.services { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 28px; }
.service { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.service-wide { grid-row: span 2; }
.service h3 { display: flex; align-items: center; gap: 10px; }
.service h3 .ico { color: var(--crimson); width: 28px; height: 28px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service-wide { grid-row: auto; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--leaf-soft); color: var(--leaf); padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; }

.dots { margin: 0 0 1em; padding-left: 1.2em; }
.dots li { margin-bottom: .35em; }
.dots li::marker { color: var(--pink); }

.price-list { list-style: none; margin: 0 0 1em; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-list b { color: var(--wine); white-space: nowrap; }

.callout { margin-top: 28px; background: #fff; border-left: 5px solid var(--crimson); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.callout h3 { display: flex; align-items: center; gap: 10px; }
.callout h3 .ico { color: #d98a00; width: 28px; height: 28px; }
.power-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1em; }
.power-col { border-radius: 12px; padding: 16px 18px; }
.power-col h4 { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 1rem; margin-bottom: .4em; }
.power-col p { margin: 0; }
.power-yes { background: var(--leaf-soft); }
.power-yes h4 { color: var(--leaf); }
.power-no { background: #fdeaea; }
.power-no h4 { color: var(--crimson-dark); }
@media (max-width: 640px) { .power-grid { grid-template-columns: 1fr; } }

/* Rules */
.times { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.time { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px 26px; box-shadow: var(--shadow); }
.time .ico { width: 34px; height: 34px; color: var(--crimson); }
.time span { display: block; color: var(--muted); font-size: .9rem; }
.time strong { font-family: var(--serif); font-size: 1.4rem; color: var(--wine); }

.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.rules li { counter-increment: rule; position: relative; padding: 12px 0 12px 52px; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--crimson); color: #fff; font: 600 1rem/36px var(--serif); text-align: center; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.location-photo { margin: 0; }
.location-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* Contacts */
.section-wine { background: var(--wine); color: #fff; }
.section-wine h2 { color: #fff; }
.section-wine .section-lead { color: rgba(255, 255, 255, .85); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; transition: background-color .2s; }
.contact-card:hover { background: rgba(255, 255, 255, .16); }
.contact-card .ico { width: 30px; height: 30px; }
.contact-card strong { display: block; font-size: 1.05rem; }
.contact-card span span { font-size: .93rem; opacity: .85; }

/* Footer */
.site-footer { background: var(--sand); padding: 40px 0 28px; font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; gap: 24px; align-items: flex-start; }
.footer-top img { width: 96px; flex: none; border-radius: 50%; background: #fff; }
@media (max-width: 560px) { .footer-top { flex-direction: column; } }
.legal { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.legal summary { cursor: pointer; font-weight: 600; color: var(--wine); }
.legal-body { padding-top: 12px; max-width: 60em; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1em; }

/* Bougainvillea decorations (cut from the client's own posters) */
.has-bloom, .hero { position: relative; overflow: hidden; }
.has-bloom > .container { position: relative; z-index: 1; }
.bloom { position: absolute; z-index: 0; pointer-events: none; user-select: none; height: auto; }
.bloom-corner-l { top: 0; left: 0; width: clamp(110px, 18vw, 260px); }
.bloom-corner-r { top: 0; right: 0; width: clamp(110px, 18vw, 260px); }
.bloom-side-r { right: 0; bottom: 0; width: clamp(60px, 9vw, 150px); }
.bloom-side-l { left: 0; bottom: 0; width: clamp(60px, 9vw, 150px); transform: scaleX(-1); }
@media (max-width: 760px) { .bloom-side-r, .bloom-side-l { display: none; } }
.bloom-hero-l, .bloom-hero-r { z-index: 2; top: 0; width: clamp(130px, 20vw, 300px); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.bloom-hero-l { left: 0; }
.bloom-hero-r { right: 0; }
.hero-content { z-index: 3; }
@media (max-width: 700px) {
  .bloom-corner-l, .bloom-corner-r { opacity: .55; }
  .bloom-hero-l { display: none; }
  .bloom-hero-r { width: 120px; }
}

/* Tours */
.sub-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 20px; text-align: center; }
.sub-title .ico { color: var(--crimson); width: 28px; height: 28px; }
.tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.tour { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--pink); display: flex; flex-direction: column; }
.tour h4 { font-size: 1.15rem; }
.tour .dots { margin: 0; font-size: .97rem; color: var(--muted); }
.tour .badge { margin-bottom: 10px; }
.tours-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 860px) { .tours-extra { grid-template-columns: 1fr; } }
#tours .booking-banner { background: #fff; }

/* Posters */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 18px; }
.posters figure { margin: 0; text-align: center; }
.p-item { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); aspect-ratio: 2 / 3; }
.p-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.p-item:hover img { transform: scale(1.03); }
.posters figcaption { margin-top: 10px; font-weight: 600; color: var(--wine); font-size: .95rem; }

/* Reviews */
.section-reviews { background: #fdf1f6; }
.reviews { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; margin-top: 28px; }
.score-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score { font-family: var(--serif); color: var(--wine); font-size: 4rem; line-height: 1; font-weight: 600; }
.score small { font-size: 1.1rem; color: var(--muted); margin-left: 6px; font-family: var(--sans); font-weight: 500; }
.stars { position: relative; display: inline-block; margin: 12px 0 10px; line-height: 0; }
.stars svg { width: 30px; height: 30px; margin: 0 1px; stroke: none; }
.stars-empty svg { fill: #ecd9df; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.stars-fill svg { fill: #f2a516; }
.score-label { font-weight: 600; margin-bottom: .4em; }
.g-label { font: 600 1.05rem/1 Roboto, Arial, sans-serif; color: #5f6368; letter-spacing: .02em; margin-bottom: 10px; }
#g-score-wrap { display: flex; flex-direction: column; align-items: center; }
#g-noscore { font-family: var(--serif); font-size: 1.35rem; color: var(--wine); margin: 4px 0 16px; }
#g-card-link { margin-top: 10px; }
.review-topics { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.review-topics .chips { list-style: none; padding: 0; }
.review-topics .chip { background: #fde7f1; color: #9c1356; }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .reviews { grid-template-columns: 1fr; } }

.g-embed { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e8eef3; }
.g-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 600px) { .g-embed iframe { height: 320px; } }

/* Google reviews */
.google-reviews { margin-top: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.google-reviews[hidden] { display: none; }
.gr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gr-head h3 { margin: 0; }
.gr-summary { display: flex; align-items: center; gap: 10px; }
.gr-score { font-family: var(--serif); font-size: 2rem; color: var(--wine); line-height: 1; }
.gr-stars { color: #f2a516; letter-spacing: 2px; font-size: 1.1rem; }
.gr-count { color: var(--muted); font-size: .95rem; }
.gr-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gr-consent p { margin: 0; flex: 1 1 320px; }
.gr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gr-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.gr-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gr-author img { width: 40px; height: 40px; border-radius: 50%; }
.gr-author a, .gr-author strong { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.gr-time { font-size: .85rem; color: var(--muted); }
.gr-text { margin: 8px 0 0; font-size: .95rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.gr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.gr-foot[hidden] { display: none; }
.gr-attr { font: 500 .9rem/1 Roboto, Arial, sans-serif; color: #5e5e5e; }

/* Transfer */
.transfer { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; border-left: 5px solid var(--leaf); }
.transfer h3 { margin-bottom: .3em; }
.transfer p { margin: 0; color: var(--muted); }
.transfer-ico { width: 52px; height: 52px; color: var(--leaf); }
@media (max-width: 760px) { .transfer { grid-template-columns: 1fr; } .transfer .btn { justify-self: start; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 8, 12, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }
