* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url("../images/achtergrondfoto.jpg") no-repeat center center/cover;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  
}

.tape-terug {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 200px; /* pas aan naar jouw afbeelding */
  z-index: 10;
  transition: transform 0.3s ease;
}

.tape-terug:hover {
  transform: scale(1.08);
}

.tape-illustratie {
  position: absolute;
  top: 40px; /* afstand vanaf bovenkant van het scherm */
  left: 50%;
  transform: translateX(-50%) rotate(-3deg); /* centreren + lichte scheve plaklook */
  z-index: 5;
}

.grid {
  columns: 4 300px; /* max 3 kolommen, min 300px per kolom */
  column-gap: 1rem;
  padding: 20rem 10rem 2rem;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
  align-items: flex-start;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: flex;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Hover Zoom */
.grid-item:hover img {
  transform: scale(1.03);
}
/* Lightbox styling */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;           /* ⬅️ Maakt scrollen mogelijk */
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* Bovenaan beginnen zodat niks afgesneden wordt */
  justify-content: flex-start;
  padding: 1rem;   
}

.lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.close-button {
  position: absolute;
  top: -30px;
  right: -30px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
