/* Foundaro public lightbox */
.lb-trigger { cursor: zoom-in; }

#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lb-overlay.lb-open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.22); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-nav.lb-hidden { display: none; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 1280px);
  max-height: 92vh;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  text-align: center;
}
.lb-caption.lb-hidden { display: none; }
