/* Lightbox container */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

/* Image */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 20px black;
}

/* Navigation buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* —————  LIGHTBOX ANIMATIES  ————— */
.lightbox-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.9);
  /* verborgen + overgang naar zichtbaar */
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease,visibility 0s linear .35s;
  z-index:9999;
}

.lightbox-overlay.open{       /* wordt door JS toegevoegd */
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease;
}

/* Afbeeldingseffect: zoom + fade */
.lightbox-overlay img{
  max-width:90vw;
  max-height:90vh;
  border-radius:4px;
  transform:scale(.85);
  opacity:0;
  transition:transform .35s ease,opacity .35s ease;
}
.lightbox-overlay.open img{
  transform:scale(1);
  opacity:1;
}

/* Cross-fade bij volgende/vorige */
.lightbox-overlay img.changing{opacity:0;}

/* Navigatieknoppen */
.lightbox-nav,
.lightbox-close{
  position:absolute;
  background:none;
  border:0;
  font-size:2.4rem;
  color:#fff;
  cursor:pointer;
  user-select:none;
  padding:.25rem .75rem;
  transition:opacity .2s;
}
.lightbox-prev{left:1rem;}
.lightbox-next{right:1rem;}
.lightbox-close{top:1rem;right:1rem;font-size:2rem;}
.lightbox-nav:hover,
.lightbox-close:hover{opacity:.75;}

