.scroller {
  max-width: 1200px;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: nowrap;
  /* Ensure items are in a single row */
  gap: 4rem;
  /* Adjust the gap between images */
}

.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);
}

.scroller[data-animated="true"] .scroller__inner {
  align-items: center;
  width: max-content;
  animation: scroll var(--_animation-duration, 60s) var(--_animation-direction, forwards) linear infinite;
  /* Slower animation */
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 40s;
  /* Adjust duration for faster speed if needed */
}

.scroller[data-speed="slow"] {
  --_animation-duration: 80s;
  /* Slower animation */
}

@keyframes scroll {
  to {
    transform: translateX(calc(-100% - 2rem));
    /* Adjust based on gap */
  }
}

/* General styles (unchanged) */
:root {
  --clr-neutral-100: hsl(0, 0%, 100%);
  --clr-primary-100: hsl(205, 15%, 58%);
  --clr-primary-400: hsl(215, 25%, 27%);
  --clr-primary-800: hsl(217, 33%, 17%);
  --clr-primary-900: hsl(218, 33%, 9%);
}

.tag-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.tag-list li {
  padding: 1rem;
  background: var(--clr-primary-400);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem -0.25rem var(--clr-primary-900);
}

.test {
  background: red !important;
}

.brand-logo {
  object-fit: contain;
  width: 93px;
  height: auto;
}

.image-container {
  position: relative;
}

.image-container::after {
  content: attr(data-name);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  display: none;
  pointer-events: none;
}

.image-container:hover::after {
  display: block;
}

.scroller__inner:hover {
  animation-play-state: paused;
}

.brand-logos {
  object-fit: contain;
}