/* latin-ext */
  @font-face {
    font-family: 'Fredoka';
    src: url('Fredoka-VariableFont_wdth\,wght.woff2') format('woff2-variation');
    font-weight: 300 900;
    font-display: swap;
  }    
  :root {
  font-size: calc(8pt + 0.390625vw);
  margin: 0;
  padding: 0;
	--kl-tekst-attentie: #4d6600;
  --kl-tekst-attentie-transp: #4d660075;
	--kl-tekst-attentie-licht: #e6ff99;
	--kl-wit: #ffffff;
	--kl-wit-transp: #ffffff75;
	--kl-tekst-basis-donker: #992600;
	--kl-tekst-basis-donker-transp: #99260075;
  --kl-tekst-basis-licht: #ffce80;
}
* {
    font-family: 'Fredoka', sans-serif;
    border-radius: 4px;
    }
    
*, *:before, *:after {
  box-sizing: border-box;
  color: var(--kl-tekst-basis-donker);
  font-weight: 400;
}
*:focus {outline: none;}
img {display: block;}
body {
  max-width: 100%;
  height: 100vh;
  }
  header, nav, .zijkant, .inhoud, footer {
    box-shadow: 0 4px 10px 0 var(--kl-tekst-basis-donker-transp);
    backdrop-filter: blur( 8px );
    width: 100%;
    padding: 2vh;
    }
  footer:focus-within {box-shadow: 0 4px 10px 0 var(--kl-tekst-attentie-transp);}
  h1, h2, h3, h4 {
    color: var(--kl-tekst-attentie);
    font-weight: 600;
    letter-spacing: 0.1rem;
    display: inline;
    scroll-margin-top: 15vh;
    /* margin-bottom: 1em; */
  }
  a {
    text-decoration: underline overline dotted;
    text-decoration-color: currentColor;
    text-underline-offset: 0.4em;
  }
header {
  background-color: var(--kl-wit);
  background-position: 10px center;
  background-image: url("../hert-draad-zwart.png");
  background-repeat: no-repeat;
  background-size: auto 7vh;
  grid-area: header;
  height: 8vh;
  margin: auto;
  text-align: center;
  /* border: 1px solid red; */
}
header h1 {margin: auto; text-align: center; color: var(--kl-tekst-basis-donker);}

main {
  height: auto;
  margin-top: 1vh;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 4fr;
  grid-template-areas: "nav nav" 
            "zijkant inhoud"
            "footer footer";
  gap: 1vw;
  /* height: 100%; */
  /* border: 1px solid blue; */
  }
  
  nav {
    grid-area: nav;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 5vw;
    max-height: 5vh;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--kl-wit);
    backdrop-filter: blur( 2px );
    -webkit-backdrop-filter: blur( 2px );
    z-index: 10;
  }
  nav a {text-decoration-color: var(--kl-tekst-attentie);}
  nav details {margin: 0; padding: 1em 0 1em 0; align-self: center;}
  nav details summary {
    cursor: pointer;
  }
  nav details summary h3 {
    display: inline;
  }
  nav details h4 {margin: 1em 0 0 1em; padding: 0; display: block;}
  nav details[open] {
    background-color: var(--kl-wit);
    box-shadow: 0 4px 10px 0 var(--kl-tekst-basis-donker-transp);
    padding: 1em 1vw;
    align-self: baseline;   
  }
  nav details[open] a {padding-left: 1vw;}

  details.portfolio {
    width: 60vw;
    margin: 1em auto 1em auto;
    /* border: 1px solid green; */
  }
  details.portfolio summary {
    cursor: pointer;
    background-color: var(--kl-tekst-basis-licht);
    padding: 0.5em 1em;
    margin-bottom: 1em;
  }
  .afbeeldingen {
    width: 60vw;
    height: auto;
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1vw 1vw;
    /* border: 1px solid red; */
  }
  div.polaroid {
    width: 19vw;
    height: calc(12 / 10 * 19vw);
    background-color: white;
    padding: 1vw;
    border: 1px solid var(--kl-tekst-basis-donker);
  }
  .polaroid img {
    width: 17vw;
    height: 17vw;
  }
  .polaroid div {
    /* text-align: center; */
    display: grid;
    margin-top: 1.5em;
    place-items: center;
  }
  .afbeeldingen div.midden {
    width: 19vw;
    height: 19vw;
    border: 4px solid white;
    border-radius: 0;
  }
  div.polaroid:hover, div.polaroid:focus {
    transform: scale(calc(60 / 19));
    border: none;
    /* border: 5px solid white; */
  }

  .afbeeldingen div {
                          /* z-index: -1; */
  }
  div.polaroid:nth-child(1) {transform-origin: left top;}
  div.polaroid:nth-child(2) {transform-origin: center top;}
  div.polaroid:nth-child(3) {transform-origin: right top;}
  div.polaroid:nth-child(4) {transform-origin: left center;}
  /* div.polaroid:nth-child(5) {transform-origin: center center;} */
  div.polaroid:nth-child(6) {transform-origin: right center;}
  div.polaroid:nth-child(7) {transform-origin: left bottom;}
  div.polaroid:nth-child(8) {transform-origin: center bottom;}
  div.polaroid:nth-child(9) {transform-origin: right bottom;}

  .zijkant {grid-area: zijkant;}
  .zijkant img {
    width: 80%;
    margin: 1em auto;    
  }
  .inhoud {
    grid-area: inhoud;
  }
  img.vrij {
    width: 80%;
    margin: 1em auto;
  }
  .tussen {height: auto;}
  
footer {
  grid-area: footer;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 6fr;
  grid-template-areas: "h3 wa em .";
  max-height: 10vh;
}
footer h3 {grid-area: h3; margin-top: 0; line-height: 1;}
div.wa {grid-area: wa;}
div.em {grid-area: em;}
  @media only screen and (orientation: portrait) {
    body {
    background-size: 15%;
   } 
   main {
    /* margin-top: 5vh; */
    grid-template-columns: 1fr;
    grid-template-areas: "nav"
                          "zijkant"
                          "inhoud"
                          "footer";
    }
  .zijkant img {
    width: 30%;
    margin-left: auto;
    margin-right: auto;}
  }
  img.vrij {width: 60%;}