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

main {
    background-color: rgb(206, 189, 189);
}

/* HEADER */

header.dieren {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/foto/DSC0751.jpg');
}

header.vogels {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/foto/DSC_4207-Enhanced-NR.jpg');
}

header.nacht {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/foto/_DSC6682-Enhanced-NR.jpg');
}

header.sport {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/foto/foto-113.jpg');
    background-position: center 80%;
}

header.stad {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/Berlijn/IMG_3772.JPG');
    background-position: center 40%;
}

header.pers {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/persfoto/_DSC8231.jpg');
    background-position: center 45%;
}

header.auto-motor {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/auto/_DSC3048.jpg');
    background-position: center 45%;
}

header img {
    max-width: 200px;
    height: auto;
    justify-self: flex-start;
    align-self: flex-start;
}


/* PORTFOLIO GRID */

div.gallery-items {
    column-count: 3; /* pas dit aan naar wens */
    column-gap: 20px;
    padding: 80px;
    margin: 0 auto;
}

div.gallery-items img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 4px 3px 6px rgba(0, 0, 0, 0.3);
    break-inside: avoid;
}

/* lightbox */

.lightbox {
  display: none; /* Verborgen tot een foto wordt aangeklikt */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
}

.lightbox-arrow.prev {
  left: 20px;
}

.lightbox-arrow.next {
  right: 20px;
}

.lightbox-arrow:hover {
  color: #d84a63;
}