/* laatste update: 27-02-2021 */

#scrolly {
  position: relative;
  background-color: white;
  margin: 0 auto;
  margin-top: 0 !important;
}

#kaart {
  height: 100vh;
  width: 100%;
}

article {
  position: relative;
  padding: 0;
  margin: 0 auto;
}

figure {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 0;
  text-align: center;
  opacity: 0.2;
}

figure.hi {
  animation-name: fadein;
  animation-duration: 3s;
  -webkit-animation: fadein 1s 1;
  /* Safari 4+ */
  -moz-animation: fadein 1s 1;
  /* Fx 5+ */
  -o-animation: fadein 1s 1;
  /* Opera 12+ */
  animation: fadein 1s 1;
  /* IE 10+, Fx 29+ */
  opacity: 1;
}

figure p {
  text-align: center;
  padding: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-weight: 900;
  color: black;
}

.step {
  margin: 0 auto;
  background-color: white;
  width: 80%;
  max-width: 600px;
  margin-bottom: 100vh;
}

.step.einde {
  margin-bottom: 0vh;
}

.step.starter,
.step.einde {
  opacity: 0;
}

.step:last-child {
  margin-bottom: 0;
}


/* ####### MOBILE ####### */
/* ===================== */

@media only screen and (max-width: 768px) {

  figure {
    opacity: 1;
  }

  figure img {
    width: 100vw;
    min-width: 100vw;
  }

  img.foo {
    opacity: 0.2;
  }

  .foo.hi {
    animation-name: fadein;
    animation-duration: 3s;
    -webkit-animation: fadein 1s 1;
    /* Safari 4+ */
    -moz-animation: fadein 1s 1;
    /* Fx 5+ */
    -o-animation: fadein 1s 1;
    /* Opera 12+ */
    animation: fadein 1s 1;
    /* IE 10+, Fx 29+ */
    opacity: 1;
  }

  .step.starter {
    margin-bottom: 0vh;
  }

  .step {
    font-size: 1rem;
    -webkit-box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
  }

  .step div {
    padding: 1rem;
  }

  /* fix andy */
  .achtergrond.foto.header .DS2020-container__inner {
    margin-top: auto;
  }

  .achtergrond.foto.mobiletop {
    align-items: flex-start;
  }
  .achtergrond.foto.mobilebottom {
    align-items: flex-end;
  }
}

/* ####### DESKTOP ####### */
/* ====================== */

@media only screen and (min-width: 769px) {
  /* fix andy */
  .DS2020-container__inner {
    min-height: 55vh;
  }

.step.starter {
    margin-bottom: 40vh;
  }

  #scrolly {
    text-align: left;
  }

  #verhaal {
    margin-top: -100vh;
  }

  article {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 0 0;
    text-align: left;
    /*padding-top: 40vh;*/
  }

  .step {
    padding: 1rem;
    margin: 0px auto;
    -webkit-box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 90vh;
  }

  .article__body {
    margin-top: -70px;
  }

  figure {
    width: 100%;
    height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }
}


/* ####### kaart ####### */



path {
  animation-name: fadein;
  animation-duration: 3s;
  -webkit-animation: fadein 1s 1;
  /* Safari 4+ */
  -moz-animation: fadein 1s 1;
  /* Fx 5+ */
  -o-animation: fadein 1s 1;
  /* Opera 12+ */
  animation: fadein 1s 1;
  /* IE 10+, Fx 29+ */
  opacity: 1;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-animation: fadein 3s;
  /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 3s;
  /* Firefox < 16 */
  -ms-animation: fadein 3s;
  /* Internet Explorer */
  -o-animation: fadein 3s;
  /* Opera < 12.1 */
  animation: fadein 3s;
}

.leaflet-popup-content-wrapper {
   border-radius: 0px!important;
}


/*////// ANIMATIES ///////////*/



@keyframes fadein {
  0% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* FADE IN */


@keyframes opener-fadein {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes opener-fadein {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}
