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

@media screen and (max-width: 768px) {
  .footer-slider {
    --width: 150px;
    --height: 150px;
    --quantity: 10;
  }

  .footer-slider .footer-slider-list .item {
    animation: autoRun 15s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc(
      (15s / var(--quantity)) * (var(--position) - 1) - 10s
    ) !important;
  }
}

.footer-slider .footer-slider-list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.footer-slider .footer-slider-list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 35s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (35s / var(--quantity)) * (var(--position) - 1) - 30s
  ) !important;
}

.footer-slider .footer-slider-list .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-slider .footer-slider-list .item:has(span) img {
  height: 80%;
}

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

.footer-slider:hover .item {
  animation-play-state: paused !important;
}

.footer-slider .footer-slider-list .item:nth-child(1) {
  --position: 1;
}
.footer-slider .footer-slider-list .item:nth-child(2) {
  --position: 2;
}
.footer-slider .footer-slider-list .item:nth-child(3) {
  --position: 3;
}
.footer-slider .footer-slider-list .item:nth-child(4) {
  --position: 4;
}
.footer-slider .footer-slider-list .item:nth-child(5) {
  --position: 5;
}
.footer-slider .footer-slider-list .item:nth-child(6) {
  --position: 6;
}
.footer-slider .footer-slider-list .item:nth-child(7) {
  --position: 7;
}
.footer-slider .footer-slider-list .item:nth-child(8) {
  --position: 8;
}
.footer-slider .footer-slider-list .item:nth-child(9) {
  --position: 9;
}
.footer-slider .footer-slider-list .item:nth-child(10) {
  --position: 10;
}
