/* lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lightbox-bg-color); 
  
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;

  transition: background 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 1px;
  transition: transform 0.3s ease;
}

/* INFO (titel + beschrijving) */
.lightbox-info {
  position: absolute;
  bottom: 100px;
  text-align: center;
  color: var(--lightbox-textcolor);
}

.lightbox-title {
  margin: 0;
  font-size: var(--lightboxtekstgrootte-title);
  font-family: var(--text-koppen);
}

.lightbox-desc {
  font-size: var(--lightboxtekstgrootte-desc);
  font-family: var(--text-paragraaf);
  opacity: 0.8;
}

/* THUMBNAILS */
.lightbox-thumbs {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px;
}

.lightbox-thumbs img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.lightbox-thumbs img.active {
  opacity: 1;
  border: 1.5px solid var(--borderlightbox-thumbs);
}

/* knoppen */
.close, .prev, .next {
  position: absolute;
  color: var(--lightbox-buttons);
  cursor: pointer;
  background: none;
  border: none;
}
.close:hover,
.prev:hover,
.next:hover {
  color: var(--lightbox-buttons-hover);
}

.close {
  top: 20px;
  right: 30px;
  font-size: var(--lightbox-buttons-tekstsize);
}

.prev, .next {
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--lightbox-buttons-tekstsize);
}

.prev { left: 20px; }
.next { right: 20px; }
