.slc-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.slc-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation-name: slc-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

/* Kluczowe: przesuwamy dokladnie o 50% szerokosci sciezki - bo sciezka
   zawiera dwie identyczne kopie zestawu logo. Dzieki temu w momencie
   "resetu" animacji uklad wyglada identycznie jak na starcie - brak skoku. */
@keyframes slc-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.slc-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slc-item img {
	height: 100%;
	width: auto;
	max-width: none;
	object-fit: contain;
	display: block;
}

/* Efekt szarosci logo z powrotem do koloru po najechaniu na cala karuzele */
.slc-grayscale .slc-item img {
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.slc-grayscale:hover .slc-item img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Pauza calej animacji po najechaniu myszka */
.slc-pause-hover:hover .slc-track {
	animation-play-state: paused;
}

/* Delikatny fade na krawedziach kontenera */
.slc-fade::before,
.slc-fade::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	z-index: 2;
	pointer-events: none;
}

.slc-fade::before {
	left: 0;
	background: linear-gradient(to right, var(--slc-fade-color, #ffffff), rgba(255, 255, 255, 0));
}

.slc-fade::after {
	right: 0;
	background: linear-gradient(to left, var(--slc-fade-color, #ffffff), rgba(255, 255, 255, 0));
}

/* Uszanuj preferencje uzytkownika co do ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
	.slc-track {
		animation: none;
	}
}
