/* Pippin Logo Scroller.
   The track holds two identical sets of logos; each set ends with one gap of padding, so moving the track by exactly
   half its width (one set) lands on a frame identical to the start, and the loop has no jump.
   logo-scroller.js sets --pt-scroller-duration from the speed and adds .is-ready; until then the logos stand still. */

.elementor-widget-pippin-logo-scroller {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
}

.pt-scroller {
	--pt-scroller-gap: 80px;
	--pt-scroller-logo-h: 24px;
	--pt-scroller-duration: 60s;
	--pt-scroller-opacity: 1;
	--pt-scroller-min: 3; /* fallback; the widget's "Scroll with at least" setting writes this per breakpoint */

	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	min-height: var(--pt-scroller-logo-h);
	overflow: hidden;
}

.pt-scroller__track {
	display: flex;
	align-items: center;
	flex: none;
	width: max-content;
	will-change: transform;
}

.pt-scroller__set {
	display: flex;
	align-items: center;
	flex: none;
	gap: var(--pt-scroller-gap);
	padding-right: var(--pt-scroller-gap);
}

.pt-scroller__item {
	display: flex;
	align-items: center;
	flex: none;
}
.pt-scroller__item a {
	display: block;
	line-height: 0;
}
.pt-scroller__item img {
	display: block;
	width: auto;
	max-width: none;
	height: calc(var(--pt-scroller-logo-h) * var(--pt-logo-scale, 1));
	opacity: var(--pt-scroller-opacity);
	transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Color treatments. */
.pt-scroller--white .pt-scroller__item img { filter: brightness(0) invert(1); }
.pt-scroller--dark .pt-scroller__item img { filter: brightness(0); }
.pt-scroller--grayscale .pt-scroller__item img { filter: grayscale(1); }
.pt-scroller--hover-color .pt-scroller__item:hover img { filter: none; opacity: 1; }

/* Motion. */
.pt-scroller.is-ready .pt-scroller__track {
	animation: pt-scroller-left var(--pt-scroller-duration) linear infinite;
}
.pt-scroller--right.is-ready .pt-scroller__track {
	animation-name: pt-scroller-right;
}
.pt-scroller--pause:hover .pt-scroller__track {
	animation-play-state: paused;
}

@keyframes pt-scroller-left {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes pt-scroller-right {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

/* Too few logos to scroll (fewer than --pt-scroller-min): one still, centered row, without the copies. */
.pt-scroller.is-static .pt-scroller__track {
	width: 100%;
	justify-content: center;
	animation: none;
	transform: none;
}
.pt-scroller.is-static .pt-scroller__set {
	padding-right: 0;
}
.pt-scroller.is-static .pt-scroller__set[aria-hidden],
.pt-scroller.is-static .pt-scroller__item[aria-hidden] {
	display: none;
}

@media (max-width: 767px) {
	.pt-scroller { --pt-scroller-min: 1; } /* fallback, as above */
}

@media (prefers-reduced-motion: reduce) {
	.pt-scroller.is-ready .pt-scroller__track { animation: none; }
}

.pt-scroller__placeholder {
	margin: 0;
	padding: 0 20px;
	opacity: 0.7;
}
