/* --- RESET VOOR TWENTY TWENTY-FIVE --- */
body,
html {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* --- GALLERY --- */
.fb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.fb-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* --- LIGHTBOX --- */
.fb-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  /* boven theme-lagen */
}

.fb-lightbox-overlay.active {
  display: flex;
}

.fb-lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fb-lightbox-overlay.active .fb-lightbox-image {
  opacity: 1;
  transform: scale(1);
}

/* --- NAVIGATIE & SLUITEN --- */
.fb-lightbox-nav,
.fb-lightbox-close {
  position: absolute;
  color: #fff;
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  padding: 8px 14px;
  user-select: none;
  transition: background 0.25s ease;
}

.fb-lightbox-nav:hover,
.fb-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.fb-lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.fb-lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.fb-lightbox-close {
  top: 20px;
  right: 25px;
}

/* --- KNOPPEN --- */
.fb-button {
  display: inline-block;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.fb-button:hover {
  background: #444;
}

/* -----------------------------------------
   MODERNE STYLING – VEILIG, FUNCTIONEEL
----------------------------------------- */

/* Thumbnails wat luchtiger en responsief */
.fb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Thumbnail-afbeeldingen */
.fb-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-effect met subtiele diepte */
.fb-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Zorgt dat lightbox boven alle theme-elementen staat */
.glightbox-container {
  z-index: 999999 !important;
}

/* Optionele lichte fade-in bij openen van de lightbox */
.glightbox-open .gdesc-inner,
.glightbox-open .gslide-image img {
  animation: fadeInZoom 0.4s ease forwards;
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}