@font-face {
  font-family: "Roboto";
  src: url(../font/Roboto/static/Roboto-Regular.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Roboto";
  src: url(../font/Roboto/static/Roboto-Bold.ttf) format("truetype");
  font-weight: 700;
}

/* Aangepaste CSS voor portretten.html */

/* Basisstijlen */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", Helvetica, sans-serif;
  scroll-padding-top: 120px; /* Voorkomt afknippen door fixed header */
}

/* Fixed Header - aangepast voor betere ruimte */
#gallery-header {
  position: fixed;
  top: 0;
  transition: transform 0.3s ease; /* Animatie */
  width: 100%;
  padding: 15px 0; /* Minder verticale padding */
  background: white;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 130px; /* Vaste hoogte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo {
  height: 100px; /* Kleiner logo */
  margin-bottom: 0;
  margin-top: 10px;
}

#gallery-header h1 {
  margin: 0;
  font-size: 2rem; /* Kleinere tekst */
  font-weight: 550;
  letter-spacing: 3px;
  color: #333;
  font-family: "Roboto", Helvetica, sans-serif;
  font-weight: 700;
}

/* Hoofdcontainer - aangepaste padding */
.gallery-container {
  padding: 160px 15px 0px; /* Meer ruimte bovenin voor header */
  max-width: 1200px;
  margin: 10px auto 0;
}

/* Foto grid - consistente spacing */
.photo-series {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px; /* Gelijkmatige gap aan alle kanten */
  margin-bottom: 10px; /* Gelijkmatige ruimte tussen rijen */
}

/* Nieuwe flexibele blokken voor de galerij */
.gallery-block {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

/* 3 horizontale foto's naast elkaar */
.block-3-horizontaal {
  grid-template-columns: repeat(3, 1fr);
}
.block-3-horizontaal img {
  width: 100%;
  aspect-ratio: 3/2;
  height: auto;
  object-fit: contain;
}
.block-3-horizontaal img.vertical {
  object-fit: cover;
}

/* 3 verticale foto's naast elkaar */
.block-3-verticaal {
  grid-template-columns: repeat(3, 1fr);
}
.block-3-verticaal img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
}

/* 1 verticale links, 2 horizontale rechts (boven/onder elkaar) */
.block-1-2-mix {
  grid-template-columns: 1.3fr 1.7fr;
  grid-template-rows: repeat(2, minmax(120px, 1fr));
  gap: 6px;
}
.block-1-2-mix img:nth-child(1) {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.block-1-2-mix img:nth-child(2),
.block-1-2-mix img:nth-child(3) {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
}

/* 2 horizontale links, 1 verticale rechts (boven/onder elkaar) */
.block-2-1-mix {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  grid-template-rows: repeat(2, minmax(120px, 1fr));
  gap: 6px;
}
.block-2-1-mix img:nth-child(1),
.block-2-1-mix img:nth-child(2) {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
}
.block-2-1-mix img:nth-child(2) {
  grid-row: 2 / 3;
}
.block-2-1-mix img:nth-child(3) {
  grid-row: 1 / span 2;
  grid-column: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-series img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block; /* Verwijder witruimte onder afbeeldingen */
}

.photo-series img.vertical {
  grid-row: span 2;
  height: calc(100% - 5px); /* Compenseer voor grid gap */
}

/* Back-to-top knop */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}

/* Lightbox stijlen blijven hetzelfde */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-height: 90vh;
  max-width: 90vw;
}

.close,
.nav-arrow {
  position: absolute;
  color: white;
  cursor: pointer;
  font-size: 30px;
}

.close {
  top: 20px;
  right: 20px;
}

.nav-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.paragraph {
  margin-top: 132px;
  font-size: 1.4rem;
  text-align: center;
  color: #555;
}

/* Mobiele weergave - verfijnd */
@media (max-width: 768px) {
  #gallery-header {
    height: 110px; /* Grotere header op mobiel, passend voor groot logo */
    padding: 15px 0 10px 0;
  }

  .logo {
    height: 90px;
    margin-top: 0;
    margin-bottom: 0;
  }
  #gallery-header h1 {
    font-size: 1.5rem;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .gallery-container {
    padding: 135px 10px 4px; /* Minder ruimte bovenin op mobiel */
  }

  .gallery-block,
  .block-3-horizontaal,
  .block-3-verticaal,
  .block-1-2-mix {
    display: block !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
  }
  .gallery-block img,
  .block-3-horizontaal img,
  .block-3-verticaal img,
  .block-1-2-mix img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
  }
  .paragraph {
    font-size: 1.2rem;
    margin-top: auto;
  }
}
