/* Technical Alliance Partners: an endless, slow horizontal logo strip. The track holds copies of
   the same set of logos; it moves exactly one set's width (--tap-set) and then starts again, so the
   loop has no seam. Every logo sits in a fixed 180px slot, which keeps the spacing even and the speed
   the same at every width. The strip is clipped to its own box, so it never widens the page.
   Reduced motion: no movement; the logos wrap into a static grid and the copies are hidden. */

.tap-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.tap-slider__track {
  display: flex;
  width: max-content;
  animation: tap-slide var(--tap-duration, 50s) linear infinite;
  will-change: transform;
}

.tap-slider:hover .tap-slider__track,
.tap-slider:focus-within .tap-slider__track {
  animation-play-state: paused;
}

.tap-slider__set {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tap-slider__item {
  flex: 0 0 180px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
}

.tap-slider__item img {
  display: block;
  width: 128px;
  height: 56px;
  max-width: none;
  object-fit: contain;
}

@keyframes tap-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--tap-set) * -1), 0, 0);
  }
}

@media (max-width: 989px) {
  .tap-heading {
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .tap-slider__item {
    height: 80px;
  }

  .tap-slider__item img {
    width: 112px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-slider {
    -webkit-mask-image: none;
            mask-image: none;
  }

  .tap-slider__track {
    display: block;
    width: auto;
    animation: none;
  }

  .tap-slider__set {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 32px;
    width: 100%;
  }

  .tap-slider__item {
    flex: 0 0 min(180px, 50%);
  }

  .tap-slider__set[aria-hidden="true"] {
    display: none;
  }
}
