*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body{
  background-color: #e5e5e5;
  overflow-x: hidden;
}

main{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.container{
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.carrossel{
  width: 100%;
  display: flex;
  position: relative;
}

.item{
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  animation-delay: calc( (10 / var(--quantity)) * var(--delay)) !important;
  cursor: pointer;
}

.container.reverse .item{
  animation: reverseRun 10s linear infinite;
}

.item img{
  width: 100%;
}

.container:hover .item{
  animation-play-state: paused;
  filter: grayscale(1);
}

.container .item:hover{
  filter: grayscale(0);  
}
    
@keyframes autoRun {
  from {
    left: 100%;
  }
  to{
    left: calc(-1 * var(--width));
  }
}

@keyframes reverseRun {
  from{
    left: calc(-1 * var(--width));
  }
  to{
    left: 100%;
  }
}

