/* ============================================================
   components.css — reusable UI components
   Nav, mobile menu, buttons, section headings, stats, apartment
   cards, sliders, gallery, map card, form fields, footer, social.
   State is expressed with `.is-*` modifier classes toggled by JS.
   ============================================================ */

/* -------------------------------------------------- Section shells */
.section { position: relative; }
.section--pad   { padding: var(--section-pad-y) var(--section-pad-x); }
.section--panel { background: var(--panel); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow--wide { letter-spacing: 0.4em; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.section-title em { font-style: italic; font-weight: 400; }
.section-title--lg { font-size: clamp(32px, 4.6vw, 64px); }

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-60);
  margin: 0;
}

/* -------------------------------------------------- Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
/* Emblem: assets/logo-navbar-01-1.webp, sized by height with width:auto
   (its intrinsic aspect ratio comes from the img's width/height attributes). */
.brand__mark { height: 45px; width: auto; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 33px;
  letter-spacing: 0.16em;
}
.brand__tag {
  font-family: var(--font-body);
  font-size: 13.7px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 3px;
  white-space: nowrap;
}

/* -------------------------------------------------- Top navigation */
.site-nav {
  position: fixed;
  top: 10px; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 10px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background-color: rgba(255, 255, 255, 0.21);  /* JS re-tints on scroll */
  box-shadow: var(--sh-soft);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Nav sits over dark imagery near the top → white brand text */
.site-nav .brand,
.site-nav .brand__name { color: #fff; }

/* Phones: shrink the emblem + wordmark so the pill nav has breathing room */
@media (max-width: 620px) {
  .site-nav .brand { gap: 8px; }
  .site-nav .brand__mark { height: 38px; }
  .site-nav .brand__name { font-size: 27px; }
  .site-nav .brand__tag { font-size: 11.1px; }
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 15px 11px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 0.75;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Underline drawn with a pseudo-element so the <a> stays a text leaf
   (keeps it translatable) — slides up on hover. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: -8px;
  height: 4px;
  border-radius: 2px;
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.24s var(--ease-out), opacity 0.18s ease;
  pointer-events: none;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { opacity: 1; transform: translateY(0); }

/* Hamburger (shown <=1120px) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: none; border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* -------------------------------------------------- Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: rgba(244, 237, 226, 0.9);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__inner { display: flex; flex-direction: column; gap: 4px; padding: 96px 30px 40px; }
.mobile-menu a {
  padding: 16px 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  border-bottom: 1px solid rgba(11, 22, 29, 0.1);
}

/* -------------------------------------------------- Buttons */
.btn {
  position: relative;
  display: inline-block;
  padding: 16px 36px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn__label { font-family: var(--font-sans); }
.btn--glass {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}
.btn--dark  { background: var(--ink); color: var(--cream-3); }
.btn--ghost { background: transparent; border: 1px solid rgba(11, 22, 29, 0.3); color: var(--ink); }
.btn--ghost-light { background: transparent; border: 1px solid rgba(246, 241, 233, 0.5); color: var(--cream-2); transition: background-color 0.3s ease; }
.btn--ghost-light:hover { background-color: rgba(246, 241, 233, 0.1); }
.btn--block { display: block; width: 100%; }

/* Glow buttons: a soft white pulse on hover (matches the design's
   runtime, which pulses rather than showing the conic ring). */
.btn--glow { transition: box-shadow 0.9s ease; }
.btn--glow:hover { animation: pulseWhite 3s ease-in-out infinite; }
.btn--glow-anim { animation: pulseWhite 3s ease-in-out infinite; }

/* Round glass icon button for use over photos / dark backgrounds */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* Chevron (prev/next arrows) — drawn with borders in currentColor */
.chev {
  display: block;
  width: 12px;
  height: 12px;
  border: 0 solid currentColor;
}
.chev--left  { border-left-width: 1.6px; border-bottom-width: 1.6px; transform: translateX(2px) rotate(45deg); }
.chev--right { border-right-width: 1.6px; border-top-width: 1.6px; transform: translateX(-2px) rotate(45deg); }

/* -------------------------------------------------- Stats (Il Palazzo) */
.stat { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1;
  color: var(--ink);
}
.stat__num--sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.stat__label {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  margin-top: 8px;
  line-height: 1.4;
}

/* -------------------------------------------------- Apartment cards (overlay) */
.apt-card { cursor: pointer; }
.apt-card__inner {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.apt-card:hover .apt-card__inner { transform: translateY(-8px); box-shadow: var(--sh-card-hover); }

.apt-card__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.apt-card__media--ph {
  background: repeating-linear-gradient(135deg, #e7dccb 0, #e7dccb 14px);
}
.apt-card__img { width: 100%; height: 100%; object-fit: cover; }
.apt-card__ph-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(11, 22, 29, 0.35);
}
.apt-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 29, 0.15), transparent 34%, rgba(11, 22, 29, 0.8));
}
.apt-card__tag {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  /* Dark, near-opaque glass: the cream text keeps ≥ 6:1 contrast even
     over a white ceiling, so legibility no longer depends on the photo. */
  background: rgba(11, 22, 29, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(246, 241, 233, 0.22);
  box-shadow: 0 4px 14px rgba(11, 22, 29, 0.18);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
}
.apt-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px; color: var(--cream-2); }
.apt-card__name { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; }
.apt-card__meta { font-family: var(--font-body); font-size: 16px; color: rgba(246, 241, 233, 0.74); margin-top: 8px; }
.apt-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.apt-card__cta {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(246, 241, 233, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* -------------------------------------------------- Palazzo slider (auto) */
.slider {
  position: relative;
  overflow: hidden;
}
.slider__track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform 0.8s var(--ease-out);   /* JS sets translateX */
}
.slider__item { flex: 0 0 calc((100% - 36px) / 3); }
@media (max-width: 900px) { .slider__item { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 620px) { .slider__item { flex-basis: 100%; } }
.slider__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #e7dccb;
}
.slider__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__media--ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #e7dccb 0, #e7dccb 14px, #efe6d7 14px, #efe6d7 28px);
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(11, 22, 29, 0.4);
}

/* -------------------------------------------------- Gallery slider (manual) */
.gallery { position: relative; }
.gallery__track {
  display: flex;
  padding: 20px 0 20px;
  will-change: transform;
  transition: transform 0.6s var(--ease-out);   /* JS sets gap + translateX */
}
.gallery__slide {
  position: relative;
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease, box-shadow 0.6s ease;
  /* size, scale, opacity + shadow set by sliders.js (viewport-dependent) */
}
.gallery__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__slide--ph {
  background: repeating-linear-gradient(135deg, #e7dccb 0, #e7dccb 14px, #efe6d7 14px, #efe6d7 28px);
}
.gallery__slide--ph::after {
  content: "Photo";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(11, 22, 29, 0.4);
}
.gallery__label {
  position: absolute; left: 20px; bottom: 20px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  z-index: 2;
}
.gallery__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 58px; height: 58px;
  border: none; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(11, 22, 29, 0.18);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery__nav--prev { left: clamp(14px, 4vw, 54px); }
.gallery__nav--next { right: clamp(14px, 4vw, 54px); }

/* -------------------------------------------------- Location / map */
.map {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-float);
  border: 1px solid var(--glass-border);
}
.map iframe {
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  border: 0; display: block;
  filter: grayscale(0.28) contrast(1.02);
}
.map-card {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 40px);
  max-width: 340px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--panel-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(11, 22, 29, 0.14);
}
.map-card__title { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1; }
.map-card__addr { font-family: var(--font-body); font-size: 15px; color: var(--ink-60); margin-top: 8px; line-height: 1.5; }
.map-card__note { font-family: var(--font-body); font-style: italic; font-size: 14px; color: var(--accent); margin-top: 6px; }
.map-card__dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 24px;
}
.map-card__dir .btn__label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Phones: the card leaves the map and sits below it, inside the same rounded
   frame, so it no longer covers the map; the button spans the full width. */
@media (max-width: 620px) {
  .map-card {
    position: static;
    max-width: none;
    border: 0;
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
    box-shadow: none;
  }
  .map-card__dir { display: flex; width: 100%; }
}

/* -------------------------------------------------- Contact form */
.form {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--sh-panel);
}
.field { position: relative; display: block; }
/* Message field sits below the two-up grid of short inputs */
.grid-form + .field { margin-top: 16px; }
.field__input {
  width: 100%;
  padding: 26px 18px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
textarea.field__input { resize: vertical; font-family: var(--font-body); }
.field__label {
  position: absolute;
  left: 18px; top: 20px;         /* textarea rest position: top-anchored */
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-45);
  pointer-events: none;
  transform-origin: left;
  transition: all 0.25s ease;
}
/* Single-line inputs: rest position is centered on the input's own box,
   independent of its (intentionally asymmetric) padding. */
input.field__input ~ .field__label {
  top: 50%;
  transform: translateY(-50%);
}
/* Floating label — pure CSS via placeholder trick (inputs carry a
   single-space placeholder). Raises on focus or when filled. */
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label {
  top: 9px;
  transform: scale(0.74);
  color: var(--accent);
  letter-spacing: 0.06em;
}
.field__input:focus { border-color: rgba(11, 22, 29, 0.4); }

.form__submit {
  margin-top: 20px;
  padding: 17px;
  font-size: 16px;
}
.form__submit .btn__label { font-size: 16px; }
.form__submit:disabled { opacity: 0.55; cursor: not-allowed; animation: none; }

.form__status {
  min-height: 20px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
  text-align: center;
}
.form__status.is-error { color: var(--danger); }

.form__thanks {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: rgba(248, 243, 234, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  transition: opacity 0.4s ease;
  opacity: 0; pointer-events: none;
}
.form.is-sent .form__thanks { opacity: 1; pointer-events: auto; }
.form__thanks-title { font-family: var(--font-display); font-size: 34px; color: var(--ink); }
.form__thanks-sub { font-family: var(--font-body); font-size: 16px; color: var(--ink-60); margin-top: 8px; }

.contact-lede { margin: 24px 0 30px; max-width: 420px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
}

/* -------------------------------------------------- Footer */
.site-footer {
  background: var(--dark);
  color: var(--dark-fg);
  padding: clamp(60px, 7vw, 90px) var(--section-pad-x) 40px;
}
.site-footer .brand__mark { height: 38px; }
.site-footer .brand__name { font-size: 24px; color: var(--dark-fg); }
.site-footer .brand__tag { font-size: 9.5px; color: var(--accent); }
.footer-brand__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(232, 221, 203, 0.62);
  margin: 22px 0 0;
  max-width: 280px;
}
.footer-col__title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: rgba(232, 221, 203, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
}
.footer-link:hover { color: var(--dark-fg); }
.social { display: flex; gap: 12px; }
.social a {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(232, 221, 203, 0.28);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--dark-fg);
  font-family: var(--font-body); font-size: 14px;
}
.footer-bottom {
  margin: clamp(44px, 5vw, 66px) auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(232, 221, 203, 0.16);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-body); font-size: 13px; color: rgba(232, 221, 203, 0.5);
}

/* -------------------------------------------------- Lightbox (js/modules/lightbox.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  flex-direction: column;
  background: rgba(8, 16, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--dark-fg);
  animation: lbIn 0.35s ease both;
}
.lightbox[hidden] { display: none; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 36px);
}
.lightbox__title { font-family: var(--font-body); font-size: 15px; letter-spacing: 0.06em; }
.lightbox__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--cream-2); }
.lightbox__tools { display: flex; align-items: center; gap: 18px; }
.lightbox__count { font-family: var(--font-body); font-size: 15px; letter-spacing: 0.12em; }
.lightbox__close {
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(232, 221, 203, 0.35);
  background: transparent;
  color: var(--cream-2);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.lightbox__stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(70px, 8vw, 120px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(232, 221, 203, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.lightbox__nav--prev { left: clamp(12px, 2vw, 30px); }
.lightbox__nav--next { right: clamp(12px, 2vw, 30px); }
.lightbox__thumbs { display: flex; justify-content: center; gap: 8px; padding: 18px 16px 24px; overflow-x: auto; }
.lightbox__thumb {
  flex: 0 0 auto;
  width: 64px; height: 44px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb.is-active { border-color: var(--cream-2); opacity: 1; }

body.is-lightbox-open { overflow: hidden; }

@media (max-width: 620px) {
  .lightbox__stage { padding: 0 12px; }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
  .lightbox__thumbs { justify-content: flex-start; }
}
