/* =========================================
   LIGHTBOX (Liquid Glass Look)
========================================= */

/* HIER GEÄNDERT: '#' statt '.' weil es eine ID ist */
#lightbox { 
  display: none;
  position: fixed;
  z-index: 10000; /* Legt sich über die Navigation */
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;

  /* Exakt dein Liquid Glass Look */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  display: flex;
  opacity: 1;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  /* Schatten etwas weicher gemacht, passt besser zum hellen Glas */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); 
  border-radius: 8px;
  object-fit: contain;
}

/* Das "X" zum Schließen */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 32px;
  color: #111; /* Dunkel für guten Kontrast */
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: chocolate;
}

/* --- Lightbox Pfeile --- */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Zentriert die Pfeile exakt vertikal */
  color: rgba(0, 0, 0, 0.5);
  font-size: 56px; 
  font-weight: 300;
  cursor: pointer;
  padding: 16px;
  user-select: none; 
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10001; /* Liegt über dem Bild */
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: chocolate;
  transform: translateY(-50%) scale(1.1);
}

/* --- Responsive Anpassung für Mobile --- */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 8px;
    font-size: 40px;
  }
  .lightbox-next {
    right: 8px;
    font-size: 40px;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 36px;
  }
}