/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
 .parallax-slider-container {
  height: 100vh;
  position: relative;
  margin-bottom: calc(100vh * (var(--section-count) - 1))!important;
}

.parallax-section {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0 0 0 0); /* Modern alternative */
  -webkit-clip-path: inset(0 0 0 0); /* Safari needs prefix */
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

@for $i from 1 through 20 {  // X = nombre de sections
  .parallax-section:nth-child(#{$i}) {
    top: (100vh * ($i - 1));
    z-index: (999 - $i);    // On met un grand nombre pour être sûr
  }
}


