:root {
  --width: 300px;
  --height: 200px;
  --quantity: 5;
  --position: 1;
}
.card {
  width: 100%;
  height: 100%;
  padding: 0px;
  /* border: 0px; */
  border-radius: 8px;
  box-shadow: 0 7px 7px rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
}

.card p {
  font-size: 14px;
  color: white;
}

.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  /* mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent); */
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (10s / var(--quantity)) * (var(--position) - 1) - 10s
  ) !important;
  animation-play-state: paused !important;
}

.service-card {
  animation-play-state: paused !important;
}

.slider .list .item img {
  width: 100%;
}

@keyframes autoRun {
  from {
    left: 100%;
  }

  to {
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item {
  animation-play-state: running !important;
  /* filter: grayscale(1); */
}

.service-card:hover .item {
  animation-play-state: running !important;
  
}



.slider[reverse="true"] .item {
  animation: reversePlay 10s linear infinite;
}

@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }

  to {
    left: 100%;
  }
}
