/* ABI-PARTNERLOGOS-CSS-LOADED */

.abi-partner-logos {
  overflow: hidden;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid #ececec;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.abi-partner-logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: abi-partner-scroll 30s linear infinite;
}

.abi-partner-logos-copy {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Pauza po najechaniu myszką - przyjemny, oczekiwany detal. */
.abi-partner-logos:hover .abi-partner-logos-track {
  animation-play-state: paused;
}

.abi-partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  margin: 0 20px;
}

.abi-partner-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.abi-partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes abi-partner-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Dokładnie połowa szerokości - bo lista jest wyrenderowana 2 razy. */
    transform: translateX(-50%);
  }
}

/* Osoby z ustawieniem "ogranicz animacje" w systemie - zatrzymujemy
   scroll, żeby nie wywoływać dyskomfortu. */
@media (prefers-reduced-motion: reduce) {
  .abi-partner-logos-track {
    animation: none;
  }
  .abi-partner-logos-copy-duplicate {
    display: none;
  }
  .abi-partner-logos-copy {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}
