.lb-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.82);
  display: none;
  padding: 22px;
  z-index: 9999;
  overflow: auto;
}
.lb-overlay.is-open{ display:block; }

.lb-card{
  width: fit-content;
  margin: 0 auto;
  background: rgba(15,23,42,0.15);
  border: 1px solid rgba(226,232,240,0.18);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  overflow: visible;
}

/* Force "fit within viewport" even if page CSS sets img{width:100%;height:100%;object-fit:cover}. */
#lbImg{
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 96vw !important;
  max-height: 92vh !important;
  object-fit: contain !important;
  cursor: zoom-out;
}

.lb-hint{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,0.82);
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(226,232,240,0.18);
  padding: 10px 12px;
  border-radius: 999px;
  display: none;
}
.lb-overlay.is-open .lb-hint{ display:block; }

img.zoomable,
main img{
  cursor: zoom-in;
}
