.lbx-hidden {
  display: none !important;
}
.lbx-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 60;
}
.lbx-dialog {
  background: #111;
  color: #fff;
  width: min(96vw, 1100px);
  max-height: 92vh;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lbx-header,
.lbx-footer {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}
.lbx-body {
  position: relative;
  background: #000;
}
.lbx-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 6rem);
  margin: 0 auto;
}
.lbx-title {
  font-weight: 600;
  font-size: 1rem;
}
.lbx-caption {
  font-size: 0.925rem;
  color: #e5e7eb;
}
.lbx-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lbx-actions button {
  background: #fff;
  color: #111;
  border: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.lbx-actions button:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.lbx-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.lbx-nav button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.lbx-nav button:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.lbx-close {
  margin-left: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .lbx-overlay {
    animation: lbxFade 0.18s ease-out;
  }
  @keyframes lbxFade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
