/* 37°8 listing-page lightbox.
   Linked only from listing template pages (currently Pinheiros).
   Dark neutral backdrop, thin stroke controls, no clip-art. */

.lt-lb-zoom,
.lt-hero-visual,
.lt-card figure,
.lt-rf-media,
.lt-rf-media img,
.gallery .gframe:not(.video-tile) {
  cursor: zoom-in;
}
.lt-lb-zoom:focus-visible,
.gallery .gframe:not(.video-tile):focus-visible,
.lt-hero-visual:focus-visible,
.lt-card figure:focus-visible {
  outline: 2px solid var(--meridian, #B85C38);
  outline-offset: 3px;
}

.lt-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 16, .96);
  color: #F7F2E8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.2,.7,.2,1), visibility .28s;
}
@supports (backdrop-filter: blur(8px)) {
  .lt-lb { background: rgba(11, 13, 16, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.lt-lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lt-lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(56px, 8vw, 104px) 96px;
  box-sizing: border-box;
}

.lt-lb-fig {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: none;
}
.lt-lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 168px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .28s cubic-bezier(.2,.7,.2,1), transform .28s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lt-lb-img.is-ready { opacity: 1; transform: none; }

.lt-lb-spin {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(247,242,232,.22);
  border-top-color: #B85C38;
  border-radius: 50%;
  animation: lt-lb-rot .7s linear infinite;
  opacity: 0;
  pointer-events: none;
}
.lt-lb-spin.is-on { opacity: 1; }
@keyframes lt-lb-rot { to { transform: rotate(360deg); } }

.lt-lb-btn {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(247,242,232,.28);
  color: #F7F2E8;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lt-lb-btn:hover,
.lt-lb-btn:focus-visible {
  background: rgba(247,242,232,.08);
  border-color: #F7F2E8;
}
.lt-lb-btn:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 3px;
}
.lt-lb-btn[disabled] { opacity: .28; pointer-events: none; }
.lt-lb-prev { left: clamp(10px, 2vw, 24px); top: 50%; margin-top: -22px; }
.lt-lb-next { right: clamp(10px, 2vw, 24px); top: 50%; margin-top: -22px; }
.lt-lb-close { top: clamp(12px, 2vw, 22px); right: clamp(10px, 2vw, 24px); }

.lt-lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 clamp(16px, 4vw, 40px) clamp(16px, 3vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.lt-lb-cap {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(247,242,232,.82);
  max-width: 62ch;
}
.lt-lb-count {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(247,242,232,.62);
  white-space: nowrap;
  flex-shrink: 0;
}
.lt-lb-count b { color: #F7F2E8; font-weight: 500; }
.lt-lb-hint {
  position: absolute;
  top: clamp(16px, 2vw, 26px);
  left: clamp(16px, 4vw, 40px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,242,232,.4);
  pointer-events: none;
}

@media (max-width: 760px) {
  .lt-lb-stage { padding: 64px 12px 88px; }
  .lt-lb-img { max-height: calc(100dvh - 152px); }
  .lt-lb-btn { width: 44px; height: 44px; }
  .lt-lb-prev { left: 8px; }
  .lt-lb-next { right: 8px; }
  .lt-lb-hint { display: none; }
  .lt-lb-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lt-lb-cap { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-lb, .lt-lb-img, .lt-lb-btn { transition: none; }
  .lt-lb-spin { animation: none; opacity: 0; }
}
