/**
 * Per-slide logo infinite scroll for Portfolio Slider.
 */

.nectar_fullscreen_zoom_recent_projects .project-slide .project-info {
	overflow: hidden;
}

.nectar_fullscreen_zoom_recent_projects .project-slide .project-info .sps-logo-scroll {
	-webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.1, 1) 0.75s;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.1, 1) 0.75s;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	opacity: 1;
	backface-visibility: hidden;
}

.nectar_fullscreen_zoom_recent_projects .project-slide.prev .project-info .sps-logo-scroll {
	-webkit-transform: translateY(-40px);
	transform: translateY(-40px);
	opacity: 0;
	-webkit-transition-delay: 0.45s;
	transition-delay: 0.45s;
}

.nectar_fullscreen_zoom_recent_projects .project-slide.next .project-info .sps-logo-scroll {
	-webkit-transform: translateY(40px);
	transform: translateY(40px);
	opacity: 0;
	-webkit-transition-delay: 0.45s;
	transition-delay: 0.45s;
}

body .nectar_fullscreen_zoom_recent_projects .project-slide.no-trans .project-info .sps-logo-scroll {
	-ms-transition: none;
	-webkit-transition: none;
	transition: none;
}

.nectar_fullscreen_zoom_recent_projects .sps-slide-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 1em;
	position: relative;
}

.nectar_fullscreen_zoom_recent_projects .sps-slide-actions .sps-logo-scroll {
	flex: 1;
	min-width: 0;
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll.scroll-container {
	overflow: hidden;
	width: 100%;
	max-width: 450px;
	display: flex;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 10%,
		black 90%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 10%,
		black 90%,
		transparent 100%
	);
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll .scroll-track {
	display: flex;
	width: max-content;
	animation: sps-scroll-loop var(--sps-scroll-duration, 20s) linear infinite;
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll .scroll-group {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-right: 20px;
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll .scroll-group img {
	width: auto;
	max-width: 120px;
	height: auto;
	max-height: 36px;
	object-fit: contain;
	display: block;
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll .scroll-group a {
	display: block;
	line-height: 0;
}

.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll.scroll-container:hover .scroll-track {
	animation-play-state: paused;
}

@keyframes sps-scroll-loop {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media only screen and (max-width: 690px) {
	.nectar_fullscreen_zoom_recent_projects .sps-slide-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.nectar_fullscreen_zoom_recent_projects .sps-slide-actions .sps-logo-scroll {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nectar_fullscreen_zoom_recent_projects .sps-logo-scroll .scroll-track {
		animation: none;
	}

	.nectar_fullscreen_zoom_recent_projects .project-slide .project-info .sps-logo-scroll,
	.nectar_fullscreen_zoom_recent_projects .project-slide.prev .project-info .sps-logo-scroll,
	.nectar_fullscreen_zoom_recent_projects .project-slide.next .project-info .sps-logo-scroll {
		-webkit-transition: none;
		transition: none;
	}
}
