/* 14-lightbox.css — Lightbox / Galerie-Modal
   Teil von css/living-canvas (aufgeteilt). Ladereihenfolge = Dateiname.
   Siehe docs/components/ fuer die Zuordnung Sektion -> Datei. */
/* 19. Lightbox / Gallery Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 43, 60, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-normal) var(--ease-out), visibility var(--dur-normal) var(--ease-out);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  background: var(--paper);
  border-radius: 28px;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
}
.lightbox.open .lightbox-inner {
  transform: scale(1);
}
.lightbox-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.lightbox-close:hover {
  transform: scale(1.1);
}
.lightbox-inner h3 {
  margin: 0 6px 6px;
  font-size: 20px;
}
.lightbox-inner .lb-desc {
  font-size: 13.5px;
  color: var(--grey);
  margin: 0 6px 18px;
  max-width: 70ch;
}
.lb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.lb-gallery figure {
  margin: 0;
}
.lb-gallery img {
  width: 100%;
  border-radius: 14px;
  display: block;
  background: var(--mist);
}
.lb-gallery figcaption {
  font-size: 11.5px;
  color: var(--grey);
  margin-top: 6px;
  text-align: center;
}
