:root {
  --bg: #070707;
  --bg-soft: #11100e;
  --bg-panel: #171512;
  --text: #ffffff;
  --muted: #d8d1c3;
  --subtle: #9f9687;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(199, 155, 67, 0.36);
  --gold: #c79b43;
  --gold-soft: #e3c477;
  --cream: #f8f6f1;
  --ink: #151515;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 240ms var(--ease);
}

.skip-link:focus-visible {
  top: 14px;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

[data-header-sentinel] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4.5vw, 48px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.72), rgba(7, 7, 7, 0));
  transition: background 320ms var(--ease), border-color 320ms var(--ease), padding 320ms var(--ease);
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom-color: var(--line);
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(199, 155, 67, 0.25);
  background: #050505;
  overflow: hidden;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

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

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.header-back:hover {
  color: var(--gold-soft);
}

.header-back svg {
  width: 16px;
  height: 16px;
}

/* ---------- Botões (padrão /servidor-publico/) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #151008;
  background: var(--gold);
  box-shadow: 0 18px 42px rgba(199, 155, 67, 0.2);
}

.button.primary:hover {
  background: var(--gold-soft);
}

.button.primary,
.header-cta {
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.4) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.button.primary:hover::after {
  transform: translateX(120%);
}

.button.primary:hover {
  box-shadow: 0 20px 48px rgba(199, 155, 67, 0.34);
}

.button.whatsapp-icon-button {
  width: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border-color: rgba(37, 211, 102, 0.52);
  background: rgba(37, 211, 102, 0.12);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.14);
}

.button.whatsapp-icon-button:hover {
  border-color: rgba(37, 211, 102, 0.82);
  background: rgba(37, 211, 102, 0.18);
}

.whatsapp-glyph {
  display: block;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  background: #25d366;
  mask: url("../../assets/servidor-publico/imagens-capturadas/assets/svgs/brands/whatsapp.svg") center / contain no-repeat;
}

i[data-lucide],
svg.lucide {
  flex: 0 0 auto;
}

.button svg {
  width: 17px;
  height: 17px;
}

.mobile-whatsapp-primary {
  display: none !important;
}

.header-cta {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0.12) 34%, rgba(7, 7, 7, 0.55) 68%, rgba(7, 7, 7, 0.94) 100%),
    linear-gradient(100deg, rgba(7, 7, 7, 0.5) 0%, rgba(7, 7, 7, 0) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: clamp(104px, 13vh, 130px) clamp(18px, 4.5vw, 48px) clamp(56px, 9vh, 110px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: clamp(10px, 1.3vh, 14px);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, min(7vw, 8.5vh), 4.6rem);
  letter-spacing: -0.03em;
}

.hero-copy {
  margin-top: clamp(14px, 1.8vh, 18px);
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2.8vh, 30px);
}

/* ---------- Seções ---------- */

.section {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4.5vw, 48px) 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.section-heading h2,
.final-inner h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.section-heading p {
  margin-top: 12px;
  color: var(--subtle);
}

/* ---------- Galeria ---------- */

.gallery-group + .gallery-group {
  margin-top: clamp(30px, 5vw, 46px);
}

.gallery-group-title {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 225px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-a {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-w {
  grid-column: 1 / -1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 640ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 0.78) 100%);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Plantas (slider) ---------- */

.plans-slider {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(14px, 2vw, 22px);
}

.plans-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.plans-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 620ms var(--ease);
}

.plans-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.plans-slide figure {
  margin: 0;
  position: relative;
  background: #efece4;
  border-radius: var(--radius);
  overflow: hidden;
}

.plans-slide img {
  width: 100%;
  height: clamp(320px, 52vw, 620px);
  object-fit: contain;
  padding: clamp(10px, 2vw, 24px);
}

.plans-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.82);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
}

.plans-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.plans-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--gold-soft);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}

.plans-arrow:hover {
  background: rgba(199, 155, 67, 0.14);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.plans-arrow svg {
  width: 20px;
  height: 20px;
}

.plans-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plans-dot {
  width: 34px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.plans-dot::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 240ms var(--ease);
}

.plans-dot.is-active::before {
  background: var(--gold);
}

/* ---------- Diferenciais ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease), background 320ms var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-panel);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.08rem;
}

.feature-card p {
  color: var(--subtle);
  font-size: 0.94rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(199, 155, 67, 0.1);
  color: var(--gold-soft);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card-media {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  align-content: end;
}

.feature-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 640ms var(--ease);
}

.feature-card-media:hover img {
  transform: scale(1.03);
}

.feature-media-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 90px 26px 24px;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 0.85) 78%);
}

.feature-card-media h3 {
  font-size: 1.3rem;
}

.feature-card-media p {
  color: var(--muted);
}

/* ---------- Proximidades ---------- */

.nearby-section .section-heading {
  margin-bottom: clamp(22px, 3.5vw, 32px);
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nearby-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 320ms var(--ease);
}

.nearby-item:hover {
  border-color: var(--line-strong);
}

.nearby-name {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.nearby-time {
  flex-shrink: 0;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- CTA final ---------- */

.final-cta {
  padding-bottom: clamp(64px, 9vw, 110px);
}

.final-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(199, 155, 67, 0.16), transparent 60%),
    var(--bg-soft);
}

.final-inner p {
  margin: 16px auto 0;
  max-width: 34rem;
  color: var(--muted);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Footer (idêntico ao /servidor-publico/) ---------- */

.site-footer {
  margin-top: clamp(64px, 9vw, 110px);
  padding: 64px 0 34px;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(130px, 0.42fr) minmax(330px, 1fr) minmax(260px, 0.72fr);
  gap: 34px 30px;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-mark {
  flex: 0 0 auto;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
}

.footer-brand p,
.footer-bottom p {
  margin: 8px 0 0;
  color: var(--subtle);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-contact a svg,
.footer-contact a i {
  flex: 0 0 auto;
  color: var(--gold-soft);
}

.footer-contact a svg {
  width: 18px;
  height: 18px;
}

.instagram-link {
  position: relative;
}

.instagram-link i {
  display: none;
}

.instagram-link::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: var(--gold-soft);
  mask: url("../../assets/servidor-publico/imagens-capturadas/assets/svgs/brands/instagram.svg") center / contain no-repeat;
}

.footer-credentials {
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(199, 155, 67, 0.24);
  border-radius: 8px;
  background: rgba(199, 155, 67, 0.07);
}

.footer-credentials strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-credentials p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.hero-media {
  animation: heroMedia 1600ms var(--ease) both;
}

.hero-content > * {
  animation: heroRise 900ms var(--ease) both;
}

.hero-content > .eyebrow {
  animation-delay: 160ms;
}

.hero-content > h1 {
  animation-delay: 280ms;
}

.hero-content > .hero-copy {
  animation-delay: 420ms;
}

.hero-content > .hero-actions {
  animation-delay: 560ms;
}

@keyframes heroMedia {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nearby-list {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-media {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-a {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .gallery-tall {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-links a,
  .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 10px;
  }
}

@media (max-width: 640px) {
  .header-back span {
    display: none;
  }

  .nearby-list {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .hero {
    align-items: flex-end;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .desktop-copy,
  .hero .hero-benefits-cta,
  .hero .hero-whatsapp-icon,
  .final-cta .final-whatsapp-icon {
    display: none !important;
  }

  .hero .mobile-whatsapp-primary {
    display: inline-flex !important;
    width: 100%;
    color: #fff;
    border-color: rgba(37, 211, 102, 0.72);
    background: linear-gradient(135deg, #1fb75a 0%, #25d366 100%);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.2);
  }

  .hero .mobile-whatsapp-primary:hover,
  .hero .mobile-whatsapp-primary:focus-visible {
    color: #fff;
    border-color: rgba(37, 211, 102, 0.95);
    background: linear-gradient(135deg, #1da852 0%, #22c55e 100%);
  }

  .hero .mobile-whatsapp-primary .whatsapp-glyph {
    background: #fff;
  }

  .button {
    min-height: 52px;
    padding-block: 14px;
  }

  .button.whatsapp-icon-button {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .final-actions .button.primary {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    object-position: 36% center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-a {
    grid-column: auto;
    grid-row: span 2;
  }

  .gallery-wide,
  .gallery-w {
    grid-column: auto;
  }

  .gallery-tall {
    grid-row: auto;
  }

  .plans-controls {
    gap: 12px;
  }

  .plans-slide figcaption {
    left: 10px;
    bottom: 10px;
    font-size: 0.8rem;
  }
}

/* ---------- Lightbox ---------- */

img[data-lightbox] {
  cursor: zoom-in;
}

img[data-lightbox]:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: -3px;
}

/* Sobreposições decorativas não podem bloquear o clique nas imagens. */
.hero-shade,
.gallery-item figcaption,
.plans-slide figcaption,
.feature-media-copy {
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 280ms var(--ease);
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vh, 44px) clamp(14px, 3vw, 36px);
  outline: none;
}

.lightbox-stage {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 300ms var(--ease), transform 340ms var(--ease);
}

.lightbox.is-open .lightbox-stage {
  opacity: 1;
  transform: scale(1);
}

.lightbox-image {
  max-width: 92vw;
  max-height: min(80vh, calc(100vh - 150px));
  max-height: min(80vh, calc(100dvh - 150px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transition: opacity 220ms var(--ease);
}

.lightbox-image.is-switching {
  opacity: 0;
  transition: none;
}

.lightbox-caption {
  margin: 0;
  padding: 0 14px;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-caption[hidden] {
  display: none;
}

.lightbox-counter {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  margin: 0;
  color: var(--subtle);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23, 21, 18, 0.78);
  color: var(--cream);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}

.lightbox-close:hover {
  border-color: var(--line-strong);
  background: rgba(199, 155, 67, 0.16);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(23, 21, 18, 0.78);
  color: var(--gold-soft);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.lightbox-prev {
  left: clamp(10px, 2.5vw, 30px);
}

.lightbox-next {
  right: clamp(10px, 2.5vw, 30px);
}

.lightbox-arrow:hover {
  background: rgba(199, 155, 67, 0.14);
  border-color: var(--gold);
}

.lightbox-close svg,
.lightbox-arrow svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .lightbox-dialog {
    padding: 68px 12px 96px;
  }

  .lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    border-radius: 10px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 64px);
  }

  .lightbox-next {
    right: calc(50% - 64px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-counter {
    top: 24px;
    left: 14px;
  }

  .lightbox-stage {
    gap: 10px;
  }
}
