/* ============================================================
   JEJA NATURALS — design tokens
   ============================================================ */
:root {
  --espresso: #2b1c12;      /* deep bottle-brown, primary ink */
  --espresso-soft: #4a3324; /* lighter brown for secondary text */
  --cream: #f6f0e4;         /* base background, warm paper */
  --cream-deep: #efe6d3;    /* section alternation */
  --gold: #b9873c;          /* dropper-cap foil, accents & rules */
  --gold-dim: #d9b978;      /* faint gold for hairlines */
  --leaf: #3f5a44;          /* aloe / avocado green */
  --leaf-deep: #2c4130;
  --whatsapp: #2f7a4f;      /* order action — reads as "message" green, not decorative */
  --whatsapp-dark: #24603e;
  --kid-blue: #3a6f95;
  --kid-berry: #a4335a;
  --ink-on-dark: #f6f0e4;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--espresso);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--leaf-deep);
  font-weight: 600;
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
}
.btn-primary:hover { background: var(--leaf-deep); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--cream); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--gold-dim);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* LOGO PLACEMENT
   Drop a transparent PNG/SVG at images/logo.png (recommend ~360x120px)
   and it will automatically replace this text mark — see script.js */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--espresso);
}
.logo img { height: 80px; width: auto; }
.logo .logo-text-main {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo .logo-text-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--leaf-deep);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  text-decoration: none;
  color: var(--espresso-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--leaf-deep); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  margin: 5px 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero-copy { max-width: 640px; display: flex; flex-direction: column; align-items: center; }

.hero-copy .eyebrow { display: block; margin-bottom: 18px; }

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero-copy .lede {
  margin-top: 22px;
  max-width: 48ch;
  font-size: 1.08rem;
  color: var(--espresso-soft);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-ingredients {
  margin-top: 40px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-ingredients .ing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--espresso-soft);
}
.hero-ingredients .ing svg { width: 20px; height: 20px; color: var(--leaf); flex: none; }

/* ============================================================
   CAROUSEL BANNER (top of page)
   ============================================================ */
.carousel {
  position: relative;
  background: var(--espresso);
  overflow: hidden;
}
.carousel-track {
  display: flex;
  width: 300%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-slide {
  flex: 0 0 calc(100% / 3);
  display: block;
  line-height: 0;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 418;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(246, 240, 228, 0.9);
  color: var(--espresso);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--cream); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 5;
}
.carousel-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(246, 240, 228, 0.5);
  cursor: pointer;
  padding: 0;
}
/* enlarge the tap area without changing the visible dot */
.carousel-dots button::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}
.carousel-dots button[aria-selected="true"] {
  background: var(--cream);
  width: 22px;
  border-radius: 5px;
  transition: width 0.2s ease;
}

@media (max-width: 640px) {
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

/* ============================================================
   SECTION BASICS
   ============================================================ */
section { padding: 88px 0; }
.carousel, .hero { padding: 0; }
.section-alt { background: var(--cream-deep); }

.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  color: var(--espresso-soft);
  font-size: 1.02rem;
}

/* ============================================================
   INGREDIENTS — specimen cards
   ============================================================ */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-dim);
}
.ingredient-card {
  padding: 34px 28px;
  border-right: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.ingredient-card:last-child { border-right: none; }
.ingredient-card .ing-icon {
  width: 40px; height: 40px;
  color: var(--leaf);
  margin-bottom: 22px;
}
.ingredient-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.ingredient-card p {
  color: var(--espresso-soft);
  font-size: 0.96rem;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.product-card {
  background: var(--cream);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .shot {
  background: #fff;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.product-card .shot img { width: 100%; max-width: 220px; }
.product-card .info { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--leaf-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.product-card .size { color: var(--espresso-soft); font-size: 0.9rem; margin-bottom: 16px; }
.product-card ul {
  list-style: none;
  padding: 0; margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--espresso-soft);
}
.product-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
}
.product-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.product-card .btn { margin-top: auto; justify-content: center; width: 100%; }

/* comparison table */
.compare-wrap { margin-top: 64px; overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.compare caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gold-dim);
  vertical-align: top;
  font-size: 0.94rem;
}
table.compare thead th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--leaf-deep);
  border-bottom: 2px solid var(--espresso);
  font-weight: 700;
}
table.compare td.prod { font-family: var(--serif); font-size: 1.02rem; }
table.compare td ul { margin: 0; padding-left: 16px; color: var(--espresso-soft); }
table.compare td li { margin-bottom: 4px; }

/* ============================================================
   GALLERY — asymmetric editorial grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-grid .g-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery-grid .g-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 28, 18, 0);
  transition: background 0.25s ease;
}
.gallery-grid .g-link:hover::after { background: rgba(43, 28, 18, 0.14); }
.gallery-grid .g-link:hover img { transform: scale(1.04); }
.gallery-grid .g-link:focus-visible { outline-offset: -4px; }

/* utility spans for variety — dense flow fills gaps automatically */
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.why-item {
  display: flex;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-dim);
}
.why-item svg { width: 24px; height: 24px; color: var(--leaf); flex: none; margin-top: 2px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { color: var(--espresso-soft); font-size: 0.94rem; }

/* ============================================================
   SALON & FASHION — sister business, deliberately smaller-scale
   ============================================================ */
.salon-section { padding: 76px 0; }
.salon-section .section-head { margin-bottom: 40px; }
.salon-section .section-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

.salon-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.salon-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 30px;
}
.salon-service {
  display: flex;
  gap: 14px;
}
.salon-service svg { width: 26px; height: 26px; color: var(--leaf); flex: none; margin-top: 2px; }
.salon-service h3 { font-size: 1rem; margin-bottom: 5px; }
.salon-service p { color: var(--espresso-soft); font-size: 0.88rem; }

.salon-info {
  background: var(--cream);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.salon-info-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--leaf-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.salon-info-block p { color: var(--espresso-soft); font-size: 0.92rem; line-height: 1.55; }
.salon-hours { list-style: none; margin: 0; padding: 0; }
.salon-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--espresso-soft);
  padding: 5px 0;
  border-bottom: 1px dashed var(--gold-dim);
}
.salon-hours li:last-child { border-bottom: none; }
.salon-hours li span:first-child { color: var(--espresso); font-weight: 500; }
.salon-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--leaf-deep);
  text-decoration: none;
}
.salon-link:hover { text-decoration: underline; }


.order-band {
  background: var(--espresso);
  color: var(--cream);
  padding: 84px 0;
}
.order-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.order-band h2 { color: var(--cream); font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 16ch; }
.order-band p { color: #d8cdbd; margin-top: 14px; max-width: 42ch; }
.order-band .order-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--cream-deep);
  padding: 56px 0 30px;
  border-top: 1px solid var(--gold-dim);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--espresso-soft); max-width: 34ch; font-size: 0.92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--leaf-deep);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--espresso-soft);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--espresso); }
.footer-bottom {
  border-top: 1px solid var(--gold-dim);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--espresso-soft);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 28px -8px rgba(47, 122, 79, 0.55);
  transition: background 0.15s ease;
}
.wa-float:hover { background: var(--whatsapp-dark); }
.wa-float svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .ingredients-grid { grid-template-columns: 1fr; }
  .ingredient-card { border-right: none; }
  .product-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .salon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold-dim);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--edge) 28px;
    gap: 18px;
    display: none;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 6px 0; width: 100%; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .order-band .wrap { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .order-actions { width: 100%; }
  .order-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .carousel, .hero { padding: 0; }
  [id] { scroll-margin-top: 74px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 32px; }
  .site-header .wrap { height: 68px; }
  .logo img { height: 36px; }
  .logo .logo-text-main { font-size: 1.35rem; }
  .salon-services { grid-template-columns: 1fr; }

  /* single, uniform column — spans off so nothing looks stretched or cramped */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
  }
  .gallery-grid .g-wide,
  .gallery-grid .g-big { grid-column: span 2; }
  .gallery-grid .g-tall { grid-row: span 1; }
  .gallery-grid .g-big { grid-row: span 2; }

  .compare-wrap { margin-top: 40px; }
  table.compare th, table.compare td { padding: 12px 10px; font-size: 0.86rem; }

  .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 0.85rem; }
  .wa-float span { display: none; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .g-wide,
  .gallery-grid .g-big,
  .gallery-grid .g-tall { grid-column: span 1; grid-row: span 1; }
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}


/* ============================================================
   ACCESSIBILITY HELPERS
   ============================================================ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--espresso);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 12, 7, 0.94);
  color: var(--ink-on-dark);
  overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(20, 12, 7, 0.94); }
.lightbox[open] { animation: lb-fade 0.2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(64px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(64px, env(safe-area-inset-left));
}
.lb-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  background: #1a100a;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}
.lb-stage img.is-loading { opacity: 0.25; }

.lb-caption {
  flex: none;
  max-width: 70ch;
  padding-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e8dfcf;
}
.lb-count {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
}

.lb-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 228, 0.28);
  background: rgba(43, 28, 18, 0.7);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { background: rgba(246, 240, 228, 0.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 3px; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.lb-prev { left: max(10px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .lb-figure { padding: max(64px, env(safe-area-inset-top)) 8px max(16px, env(safe-area-inset-bottom)); }
  .lb-prev, .lb-next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-caption { padding: 12px 56px 0; font-size: 0.85rem; min-height: 5.2em; }
}
