/* ---- *
 * fast-logo-slider — Logo Kaydırıcı / Marka Bandı
 * ---- */

.fast-ls {
	--fast-ls-gap: 40px;
	--fast-ls-speed: 20s;
	--fast-ls-shift: 50%;
	--fast-ls-opacity-normal: 0.7;
	--fast-ls-opacity-hover: 1;
	--fast-ls-grayscale: 100%;
	--fast-ls-hover-scale: 1.05;
	--fast-ls-mask-width: 80px;
	--fast-ls-max-width: 150px;
	--fast-ls-max-height: 80px;

	display: block;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.fast-ls__viewport {
	overflow: hidden;
	width: 100%;
}

.fast-ls__track {
	display: flex;
	align-items: center;
	width: max-content;
	will-change: transform;
}

.fast-ls__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: var(--fast-ls-gap);
	column-gap: var(--fast-ls-gap);
	padding-right: var(--fast-ls-gap);
}

.fast-ls--marquee .fast-ls__track {
	animation-name: fast-ls-marquee;
	animation-duration: var(--fast-ls-speed);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-play-state: running;
}

.fast-ls--marquee.fast-ls--reverse .fast-ls__track {
	animation-direction: reverse;
}

.fast-ls--marquee.fast-ls--pause-hover:hover .fast-ls__track,
.fast-ls--marquee.fast-ls--pause-hover:focus-within .fast-ls__track {
	animation-play-state: paused;
}

.fast-ls--carousel .fast-ls__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.fast-ls--carousel .fast-ls__viewport::-webkit-scrollbar {
	display: none;
}

.fast-ls--carousel .fast-ls__track {
	animation: none;
	min-width: 100%;
}

.fast-ls--carousel .fast-ls__group {
	padding-right: 0;
	min-width: 100%;
	justify-content: flex-start;
}

.fast-ls--carousel .fast-ls__logo {
	scroll-snap-align: start;
}

.fast-ls__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
}

.fast-ls__logo-img {
	display: block;
	width: auto;
	height: auto;
	max-width: var(--fast-ls-max-width);
	max-height: var(--fast-ls-max-height);
	object-fit: contain;
	opacity: var(--fast-ls-opacity-normal);
	filter: none;
	transform: scale(1);
	transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
}

.fast-ls--grayscale .fast-ls__logo-img {
	filter: grayscale(var(--fast-ls-grayscale));
}

.fast-ls__logo:hover .fast-ls__logo-img,
.fast-ls__logo:focus-within .fast-ls__logo-img {
	opacity: var(--fast-ls-opacity-hover);
	filter: none;
	transform: scale(var(--fast-ls-hover-scale));
}

.fast-ls__link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
}

.fast-ls--gradient-mask .fast-ls__viewport {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 var(--fast-ls-mask-width),
		#000 calc(100% - var(--fast-ls-mask-width)),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 var(--fast-ls-mask-width),
		#000 calc(100% - var(--fast-ls-mask-width)),
		transparent 100%
	);
}

@keyframes fast-ls-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(-1 * var(--fast-ls-shift)), 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fast-ls--marquee .fast-ls__track {
		animation: none !important;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
		row-gap: var(--fast-ls-gap);
	}

	.fast-ls--marquee .fast-ls__group--clone {
		display: none !important;
	}

	.fast-ls__logo-img {
		transition: none !important;
		filter: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

@media print {
	.fast-ls--marquee .fast-ls__track {
		animation: none !important;
		transform: none !important;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}

	.fast-ls__group--clone {
		display: none !important;
	}
}
