.provider_scroller {
  max-width: 1300px;
  width: 80vw;
}

.provider_scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.provider_scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.provider_scroller[data-animated="true"] .provider_scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.provider_scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.provider_scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.provider_scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.provider_scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}
