/* ============================================================
   CTLS LIGHTBOX – Klick zum Vergrößern
   ------------------------------------------------------------
   Zugehöriges JS: assets/js/ctls-lightbox.js
   ============================================================ */

/* Zoombare Bilder bekommen einen Lupen-Cursor */
.ctls-zoomable { cursor: zoom-in; }

.ctls-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(10, 15, 25, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: zoom-out;
}
.ctls-lb.is-open {
  opacity: 1;
  visibility: visible;
}

.ctls-lb-figure {
  margin: 0;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.ctls-lb.is-open .ctls-lb-figure {
  transform: scale(1);
}

.ctls-lb-img {
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
  cursor: default;
}

.ctls-lb-cap {
  color: #e8edf3;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  max-width: 60ch;
}

.ctls-lb-close {
  position: fixed;
  top: 1.1rem;
  right: 1.3rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.ctls-lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .ctls-lb,
  .ctls-lb-figure { transition: none; }
}
