

      @import url('https://fonts.googleapis.com/css2?family=Lemonada&family=Luxurious+Roman&family=Montserrat+Alternates:wght@500&family=Montserrat:wght@600&family=Open+Sans+Condensed:ital,wght@1,300&display=swap');

*, *::after, *::before {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
font-family: 'Montserrat Alternates', sans-serif;
}

html, body {
    height: 100vh;
    width: 100%;
    background-image: url("images/hero-bg.jpg");
    background-position: center;
    background-size: cover;
      }

.info {
  background-color: #fff;
  color: blue;
}

.container {
padding: 0 0 20em 0;
}

.bovenknop {
  position: fixed;
  top: 4em;
}
.topknop {
  position: fixed;
  top: 7em;
}
.bron {
  color: black;
}
 
    /* Gallery (masonry, geen verticale ruimte) */
    .gallery { 
      column-count: 4; colemn-gap: 0;    
        }

    @media (
      max-width: 1200px){ 
        .gallery{ column-count: 3; 
        } 
      }

    @media (max-width: 800px)
      { 
        .gallery{ column-count: 2; 
        } 
      }

    @media (max-width: 500px)
    { 
      .gallery{ column-count: 1; 
      } 
    }

    .gallery-item { 
      position: relative;  
      break-inside: avoid; 
      cursor: zoom-in;
        transition: opacity 0.3s ease;
 
     }

    .gallery-item img {
       width: 100%; 
       display: block; 
       height: auto; 
 
      }

      .hidden {
        opacity: 0;
        pointer-events: none;
      }

    /* Hover overlay + fade-in */
    .overlay {
      position: absolute; 
      inset-inline: 0; 
      bottom: 0;
      background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
      color: #fff; 
      padding: 10px 12px;
      opacity: 0; 
      transition: opacity .35s ease;
      font-size: 14px;
    }
    .gallery-item:hover .overlay { 
      opacity: 1;
     }

    /* Lightbox */
    .lightbox {
      position: fixed; 
      inset: 0; 
      background: rgba(40, 34, 43, 0.9);
      display: none; 
      z-index: 1000; 
      place-items: center; 
      padding: 24px;
    }

    .lightbox.active {
       display: grid;
       }

    .lightbox-shell {
      width: min(1300px, 95vw);
      display: grid; 
      gap: 12px;
      grid-template-columns: 48px 1fr 48px;
      grid-template-rows: auto 1fr auto;
      align-items: center;
    }

    /* Nav pijlen */
    .nav {
      grid-row: 2;
       display: grid; 
       place-items: center;
      font-size: 40px; 
      user-select: none; 
      cursor: pointer;
      opacity: .85; 
      transition: transform .15s ease, opacity .2s ease;
    }

    .nav:hover { 
      opacity: 1; 
      transform: scale(1.08); 
    }

    .nav.left  { 
      grid-column: 1; 
    }

    .nav.right { 
      grid-column: 3;
     }

    /* Content */
    .lightbox-content {
      grid-column: 2; 
      grid-row: 2;
      position: relative; 
      max-width: 100%; 
      max-height: 80vh; 
      overflow: hidden;
      display: grid; 
      place-items: center; /* centreer afbeelding */
    }

    .lightbox-content img {
      max-width: 100%;
       max-height: 80vh; 
       display: block;
    }

    /* Controls rechtsboven */
    .controls {
      grid-column: 3; 
      grid-row: 1;
      display: flex; 
      gap: 8px; 
      justify-content: flex-end; 
      align-items: center;
    }

    .controls button, 
    .controls a.button {
      /* background: rgba(255,255,255,.15); */
      background: rgb(78 9 49);
      border: 1px solid rgba(255,255,255,.2);
      color: #fff; 
      padding: 8px 12px; 
      border-radius: 10px;
      cursor: pointer; 
      text-decoration: none; 
      font-weight: 600;
      backdrop-filter: blur(4px);
    }

    .controls button:hover, .controls a.button:hover {
       background: rgba(255,255,255,.28); 
      }

    /* Caption onder de foto */
    /* .caption {
      grid-column: 2; 
      grid-row: 3; 
      text-align: center; 
      font-size: 15px; 
      opacity: .9;
    } */

    .caption {
      grid-column: 2;
      grid-row: 3;

      color: white;
      text-align: center;

      margin-top: 15px;
      padding: 10px 20px;
    }

    #captionTitle {
      font-size: 26px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    #captionText {
      font-size: 18px;
      line-height: 1.5;
      color: #ddd;
    }

    /* Vergrootglas (lens) */
    .magnifier {
      position: absolute; 
      width: 300px; 
      height: 300px; /* lens grootte */
      border: 2px solid #fff; 
      border-radius: 10%;
      display: none; 
      pointer-events: none; 
      z-index: 1100;
      background-repeat: no-repeat;
      /* background-size wordt dynamisch gezet in JS op 200% */
      box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.2);
    }

    /* Close linksboven voor toetsenbordtoegankelijkheid */
    .close-btn {
      grid-column: 1; 
      grid-row: 1; 
      justify-self: start;
      background: rgb(78 9 49);
      width: 150px;
      /* background: rgba(255,255,255,.15); */
      border: 1px solid rgba(255,255,255,.2);
      color: #fff; 
      padding: 8px 12px; 
      border-radius: 10px; 
      cursor: pointer;
    }

    .close-btn:hover { 
      background: rgba(43, 10, 190, 0.28); 
    }

    .loep {
      width: 250px;
      background-color: blue;
    }

    /* Cursorhint wanneer vergrootglas aan staat */
    .magnify-cursor { 
      cursor: none; 
    }

    h3.naam {
      display: inline-block;
      padding: 1em;
      margin-left: 50% ;
      transform: translateX( -50%);
      background-color: white;
      color: #111;
      border-radius: 5%;
      margin-top: 2em;
      margin-bottom: 2em;
       border-bottom: solid 10px blue;
    }

  .btn1 {
    position: fixed;
    text-align: center;
    top: 8em;
    width: 6em;
    padding: 0.4em 1em;
  border: solid 0.2em black;
  border-radius: 0.5em;
    left: 0.6em;
    background-color: blue;

  }

  .btn1 a {
    color: white;
    text-decoration: none;    
  } 
button1 {
    position: fixed;
    clip-path: polygon(50% 0%, 100% 70%, 100% 100%, 51% 80%, 0 100%, 0 80%);
    text-align: center;
    top: 10em;
    top: 200px;
    left: 0.6em;
    width: 100px;
    height: 3em;
    padding: 0.6em 1em 0.4em 1em;
    border-radius: 0.4em;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    -ms-border-radius: 0.4em;
    -o-border-radius: 0.4em;
    cursor: pointer;
    background-color: rgb(90, 61, 61);
    color: white;
}

p.bron {
  display: inline;
  padding: 0.2em;
  background-color: white;
}

/* pagina foto's */

main {
  width: 80%;
  height: auto;
  background-color: beige;
  padding: 4em 2em;
  margin: 3em auto;
  border-radius: 0.5em;
}



p.h2, p.h4 {
  padding: 1em;
  display: inline-block;
margin-left: 50%;
 transform: translateX(-50%);
       background-color: white;
       color: #111;
       border-radius: 5%;
       border-bottom: solid 10px blue;
}

a.knop2 {
  width: 15em;
  margin-top: 0.5em;
}

.kleur {
  width: 90%;
}
/*einde pagina foto's */

#downloadBtn,
#closeBtn,
#magnifierToggle {
  display: block;
  background-color: blue;
  box-shadow: 3px 3px 3px rgba(255,255,255,.45);
  text-shadow: 2px 2px 2px rgba(0,0,0,.65);
}

