/* LightGallery custom overrides (z-index/backdrop) */
.lg-backdrop,
.lg-outer,
.lg-container,
.lg {
  z-index: 999999 !important;
}

.lg-backdrop {
  background: rgba(0,0,0,0.85) !important;
}

/* ===============================
   GRID GALLERY (LightGallery)
================================= */

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (max-width: 992px) {
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 576px) {
  .grid-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ===============================
   GALLERY ITEM
================================= */

.grid-gallery a {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;        /* Format der Kachel */
  overflow: hidden;
  background: #f3f3f3;
  text-decoration: none;
}


/* Bild füllt Kachel */
.grid-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}


/* Hover Zoom */
.grid-gallery a:hover img {
  transform: scale(1.05);
}


/* Optional: leichtes Overlay */
.grid-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity .3s ease;
}

.grid-gallery a:hover::after {
  opacity: 1;
}