/* Achtergrond met een stijlvolle neon-glow */
body {
  background-color: white;
  color: #fff;
  font-family: "Poppins", sans-serif;
}
@keyframes gradientFade {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
.navbar, .navbar:hover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  margin-bottom: 0;
  padding-bottom: 0;
}
.navbar {
  background: rgba(0,0,0,0.5);
}
.navbar:hover {
  background: #fff;
}
.achtergrond-scroll .parallax {
  position: relative;
  z-index: 1;
  background-image: url(/images/compress\ galaxy.jpeg);
  height: 40vh;
  overflow: hidden;
  top: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.gradient {
  background: linear-gradient(to bottom, rgb(0, 0, 0), rgb(255, 255, 255));
}
.div-zwart {
  background-color: black;
  color: white;
  padding: 50px;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  box-shadow: grey 0px 0px 100px 5px;
  transition: 0.2s all;
}
.achtergrond-scroll .content {
  height: 2500px; /* Maak de inhoud lang genoeg om te kunnen scrollen */
  padding: 20px;
  text-align: center;
}
/* Responsieve media queries */
@media (max-width: 1200px) {
  .Fotos {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  .Fotos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .Fotos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
.Fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
  justify-content: center;
}

/* Afbeeldingen netjes laten schalen */
.Fotos img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px; /* Optioneel: afgeronde hoeken */
}

/* Responsive fix voor kleinere schermen */
@media (max-width: 768px) {
  .Fotos {
    grid-template-columns: 1fr; /* Eén kolom op kleinere schermen */
    padding: 5px;
  }

  .Fotos img {
    max-width: 100%;
  }
}
main {
  min-height: 78.5vh;
}
footer {
  color: black;
}

/* Foto-container */
.Fotos {
  margin: 2%;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Foto-secties met een futuristische neon-glow */
.FotosContent {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.FotosContent section {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 12px;
  padding: 12px;
  width: 95%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Glow-effect en hover animatie */
.FotosContent section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 10%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.FotosContent section:hover::before {
  opacity: 1;
}

.FotosContent section:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

/* Afbeelding styling */
.FotosContent section img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease-in-out, filter 0.3s;
}

/* Beeld zoom effect */
.FotosContent section:hover img {
  transform: scale(1.12);
  cursor: pointer;
  filter: brightness(0.9);
}

/* Tooltip-styling */
.FotosContent section::after {
  content: "5ADB in de klas"; /* Zet hier de gewenste uitleg in */
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #000000;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Tooltip zichtbaar maken bij hover */
.FotosContent section:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Fullscreen weergave */
.FullscreenFoto {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

/* Fullscreen afbeelding */
.FullscreenFoto-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
  animation: fadeIn 0.6s ease-in-out;
}

/* Fade-in animatie */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sluitknop */
.FullscreenFoto-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.FullscreenFoto-close:hover {
  color: rgb(252, 252, 252);
}

/* Navigatieknoppen */
.FullscreenFoto-prev,
.FullscreenFoto-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  transition: 0.3s;
  transform: translateY(-50%);
}

.FullscreenFoto-prev:hover,
.FullscreenFoto-next:hover {
  background-color: rgba(162, 163, 163, 0.6);
  border-radius: 50%;
}

.FullscreenFoto-prev {
  left: 10px;
}

.FullscreenFoto-next {
  right: 10px;
}

.Fotos div {
  will-change: opacity, transform;
  animation: fadeInScale 1s ease-in-out;
  animation-fill-mode: both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
