h1 {
  font-size: 3.3vw;
}

.heroSection {
  height: 44.9vh;
}

.textoOverlay {
  top: 39%;
}

.textBox {
  text-align: left;
  width: 50%;
}

.image{
    background-size: cover;
    border-radius: 15px;
    height: 20vw;
    width: 20vw;
    margin: auto;
}

.imagesContainer {
  margin: 0 auto;
  max-height: 25vw;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  transition: 0.5s ease-in-out;
}

.imageBack,
.imageFront {
  min-height: 15vw;
  min-width: 15vw;
}

.imageBack {
  display: flex;
  position: relative;
  background-size: cover;
  overflow: hidden;
  border-radius: 15px;
  justify-content: center;
}

.imageFront {
    position: relative;
    bottom: 11vw;
    left: 0;
    background-size: cover;
    overflow: hidden;
    border-radius: 15px;
}

:root {
  --no-of-slides: 6;
  --slides-in-view: 4;
  --slide-width: 200px;
  --slide-height: 300px;
  --iteration-time: 10s;
}

.responsive{
  display: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(var(--slide-width) * var(--no-of-slides) * -1));
  }
}

.carousel__wrapper {
  display: flex;
  align-items: center;
  width: calc(var(--slides-in-view) * var(--slide-width));
  overflow: hidden;
  margin: 0 auto;
}

.carousel {
  display: none;
  overflow: hidden;
  width: calc(2 * var(--no-of-slides));
}

.carousel__slide {
  animation: scroll var(--iteration-time) linear infinite;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: var(--slide-width);
  height: var(--slide-height);
  box-sizing: border-box;
}

.carousel__image {
  background-size: cover;
  background-repeat: no-repeat;
  height: 50%;
  margin: 15px 20px;
}

/* just for analysis remove this 3 rules later*/
.carousel__slide {
  position: relative;
}

.carousel {
  counter-reset: slideNo;
}

.carousel__slide::before {
  counter-increment: slideNo;
  content: counter(slideNo);
  position: absolute;
  top: 0%;
  left: 50%;
  font-size: 2rem;
  color: lime;
}


@media (max-width: 900px) {
  .heroSection{
    height: 40vh;
  }

  .textoOverlay{
    top: 33%;
  }

  h1 {
    font-size: 40px;
  }  

  .hidden{
    display: none;
  }

  .responsive{
    display: flex;
  }

  .textBox {
    width: unset;
  }

  .imagesContainer {
    max-height: 70vh;
    align-items: flex-start;
    margin: 5vh 0;
  }

  .imageBack,
  .imageFront {
    min-height: 30vh;
    min-width: 30vh;
  }

  .imageFront {
    bottom: 6vh;
    left: 6vh;
  }
}