.next {
  align-items: center;
  background-image: url("../../img/background/backgroundNextMatch.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  left: -100vw;
  min-height: 100dvh;
  position: absolute;
  top: 0;
  transition: left 0.25s ease-in-out;
  width: 100vw;
  z-index: 2;
}
.next--active {
  left: 0;
  transition: left 0.25s ease-in-out;
}
.imgContainer:has(.next__illustration) {
  padding-top: 3.5rem;
}
.next__illustration {
  min-height: 70dvh;
  object-fit: cover;
}
.next__illustration--desktop {
  display: none;
}
.next__date {
  color: var(--white);
  font-family: var(--ffMBo);
  font-size: var(--fsOtherMore);
  line-height: 1.05;
  margin-block: 1.25rem;
  text-align: center;
  text-transform: uppercase;
}
body:has(.next) {
  height: 100%;
  position: fixed;
  width: 100%;
}
body:has(.next--active) {
  overflow: hidden;
}
.next__background {
  display: none;
}

@media (min-width: 575.98px) {
  .imgContainer:has(.next__illustration) {
    padding-top: 5rem;
  }
}

@media (min-width: 767.98px) {
  .next__illustration {
    min-height: 80dvh;
  }
  .imgContainer:has(.next__illustration) {
    padding-top: 0;
  }
  .next--active {
    height: 90dvh;
    justify-content: center;
    margin: 5dvh 5vw;
    min-height: unset;
    padding: 0 5vw;
    width: 90vw;
    z-index: 11;
  }
  .next--active .next__illustration {
    min-height: 65dvh;
  }
  .next__background:has(+ .next--active) {
    background-color: var(--mColor);
    display: block;
    height: 100dvh;
    left: 0;
    opacity: 0.6;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 10;
  }
}

@media (min-width: 991.98px) {
  .next {
    z-index: 10;
  }
  .next__illustration--desktop {
    display: block;
  }
  .next__illustration--mobile {
    display: none;
  }
  .next__illustration {
    min-height: unset;
    object-fit: contain;
    object-position: bottom;
  }
  .imgContainer:has(.next__illustration) {
    padding-top: 0dvh;
  }
}

@media (min-width: 1199.98px) {
  /* .next__illustration {
        min-height: 72.5dvh;
    } */
}

@media (min-width: 1599.98px) {
  .next {
    background-size: 250vh;
    justify-content: center;
    width: 90vw;
  }
  .next__illustration {
    /* height: 72.5dvh; */
    width: 70vw;
  }
  .imgContainer:has(.next__illustration) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 1919.98px) {
  .imgContainer:has(.next__illustration) {
    padding-top: 0;
  }
  .next {
    border: 2px solid var(--sColor);
    height: 90dvh;
  }
}

@media (min-width: 2199.98px) {
  .next__illustration {
    width: 75vw;
  }
}
