@font-face {
  src: url(../fonts/genera/Genera-AltLight.ttf);
  font-family: genera;
}

nav{
  padding: 0.5vh 0;
  display: table;
  width: 100%;
  text-align: center;
  font-family: genera;
  font-size: calc(100vw / 80);
  font-style: italic;
  z-index: 10;
  background: #4363ac;
  /*background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(61,61,61,1) 100%);*/
}

nav ul{
  margin: 0; padding: 0;
  list-style-type: none;
  display: inline-block;
}

nav li{
  padding: 0 calc(100vw / 75);
  float: left;
  text-align: center;
  display: inline-block;
}


nav a{
  color: lightgrey;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

nav a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -10%;
  left: 0;
  background-color: lightgrey;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
}

nav a:hover:before {
  visibility: visible;
  width: 100%;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

main{
  margin: 0; padding: 0;
  display: block;
  width: 100%;
  font-family: genera;
}

.invisible{
  display: none;
}

#one{
  width: 100%;
  height: calc(95vw / 3);
  margin-top: 12vh; /*omdat title weg is*/

  background-image: url(../img/Atelier/10.jpg );
  background-repeat: no-repeat;
  background-position: 50% 90%;
  background-size: cover;
  background-attachment: fixed;
}

#one img{
  box-sizing: border-box;
  width: 15%;
}

.downchevron{
  position: absolute;
  bottom: 1%;
  font-size: 4vw;
  color: grey;
  z-index: 10;
  left: calc(50% - 1%);
  cursor: pointer;
}

.downchevron:hover{
  color: #BF9F3F;
}

#two{
  margin: calc(5vw + 7vh) calc(2.5% - 1px) 7vh;
  padding: 0;
  width: 95%;
  height: calc(95vw / 4);
  display: inline-block;
  border: 1px solid lightgrey;
}

#two .text{
  text-align: justify;
  margin: 0;
  padding: 2.5vw 2.5vw;
  width: calc(100% / 3 - 2 * 2.5vw);
  display: inline-block;
  float: left;
  font-size: 1.3vw;
}

#two .img{
  width: calc(100% / 3 * 2 - 1px);
  height: 100%;
  display: inline-block;
  background-image: url(../img/Atelier/9.2jpg.jpg );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#three{
  margin: 0 calc(2.5% - 2px);
  padding:5vw;
  width: 85%;
  display: inline-block;
}

#three .vertical{
  display: inline-block;
  margin: calc(2.5vw / 2);
  float: left;
  border: 1px solid lightgrey;
  width: calc(100% / 3 - 2.5vw - 3px);
  height: calc(85vw / 3 * 2 - 2.5vw - 2px);

  background-image: url(../img/Atelier/16.jpg );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#three .horizontal{
  display: inline-block;
  margin: calc(2.5vw / 2);
  float: right;
  border: 1px solid lightgrey;
  width: calc(100% / 3 * 2 - 2.5vw - 2px);
  height: calc(85vw / 3 - 2.5vw - 2px);


  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#three .horizontal.visible{
  background-image: url(../img/Atelier/19.jpg );
}

#three .square{
  display: inline-block;
  margin: calc(2.5vw / 2);
  float: left;
  border: 1px solid lightgrey;
  width: calc(100% / 3 - 2.5vw - 2px);
  height: calc(85vw / 3 - 2.5vw - 2px);
  font-size: 1.2vw;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#three .square.img.visible{
  background-image: url(../img/Atelier/7.jpg );
}

/*tijdelijk voor text*/
#three .square.img.text.visible{
  background-image: url(../img/Atelier/17.jpg );
}

#three .fullHorizon{
  display: inline-block;
  margin: calc(2.5vw / 2);
  float: left;
  border: 1px solid lightgrey;
  width: calc(100% - 2.5vw - 2px);
  height: calc(85vw / 3 - 2.5vw - 2px);


  background-repeat: no-repeat;
  background-position: 50% 20%;
  background-size: cover;
}

#three .fullHorizon.visible{
  background-image: url(../img/Atelier/12.jpg);
}

.lazyload{
  background-image: url(../img/Atelier/placeholder.png);
}

footer{
  font-family: Genera;
  display: table;
  text-align: center;
  width: 100%;
  background-color: #4363ac;
}

footer .box{
  margin: 2vh 10vw 10vw 0;
  color: white;
  display: inline-block;
  vertical-align: top;
  text-align: left;
}

@media (max-width: 1024px) {
  #one{
    margin-top: 0;
    height: 60vh;
    background-position: top;
  }
  #one img{
    width: 60%;
  }
  #two{
    height: auto;
  }
  #two .text{
    width: calc(100% - 2 * 2.5vw);
    font-size: 1.5vw;
  }
  #two .img{
    width: calc(100%);
    height: calc(100vw / 2);
  }
  #three{
    padding: 0;
    margin: 7vh calc(2.5%) 7vh;
    width: 95%;
  }
  #three .vertical{
    width: calc(100% / 2 - 2.5% - 4px);
    height: calc(85vw / 3 * 2 - 2px);
  }
  #three .square.img{
    width: calc(100% / 2 - 2.5% - 4px);
    height: calc(85vw / 3 * 2 - 2px);
  }
  #three .square.text{
    width: calc(100% - 2.5% - 2px);
    height: calc(85vw / 3 * 2 - 2px); /*tijdelijk ter vervanging van 'auto'*/
    font-size: 2.8vw;
  }
  #three .horizontal{
    width: calc(100% / 2 - 2.5% - 4px);
    height: calc(85vw / 3 * 2 - 2px);
  }
  #three .fullHorizon{
    width: calc(100% / 2 - 2.5% - 4px);
    height: calc(85vw / 3 * 2 - 2px);
  }
  .box{
    width: 60vw;
    margin: 2vh 20vw 0 20vw;
    font-size: 3vw;
  }
}
