.gallery-overlay {
  position: fixed;
  inset: 0 0 0 0; /* entspricht: top: 0; right: 0; bottom: 0; left: 0; */
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.96);
  display: none;
  opacity: 0;
  transition: opacity 0.4s;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 2000;
  pointer-events: none;
   display: flex;
}

.gallery-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.gallery-content {
  position: relative;
  max-width: 900px; /* Anpassbar */
  width: 95vw;
  max-height: 90vh;
  margin: 40px auto;
  background: transparent; /* Kein Hintergrund nötig */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.gallery-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-images img {
  width: 100%;
  height: auto;
  border-radius: 0.2rem;
  background: #222;
  object-fit: contain; /* Für gleichmäßiges Darstellen */
}

/* Schließen-Button */
.close-gallery {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 2.2rem;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.close-gallery:hover {
  opacity: 1;
}