.carousel-container {
    margin: 0 auto !important;
    width: 100% !important;
    overflow: hidden;
}

.carousel-track {
    display: flex !important;
    width: 400% !important;
    max-width: 400% !important;
}

.carousel-track-animation {
    will-change: transform;
    animation: scroll-infinite 60s linear infinite;
}

.carousel-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 500px !important;
    background: #333;
    background-size: cover !important;
    background-position: center !important;
    transition: margin-top 0.3s;
    flex: 0 0 calc(100% / 12) !important;
    box-sizing: border-box !important;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item:hover {
    transform: scale(1.01);
    cursor: pointer;
    filter: brightness(0.85) !important;
    transition: all 200ms linear;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    .carousel-track {
        width: 800% !important;
	max-width: 800% !important;
    }
}


/* Client logos */

.client-logos-container div {
	overflow: hidden;
	max-width: 100% !important;
}

@media (max-width: 1024px) {
	.client-logos-container {
		margin: 4rem 0;
	}
}

.client-logos-container {
	background: url("https://orangead.fi/wp-content/uploads/2025/12/client-logos.png") repeat-x;
	height: 114px;
	width: 3432px !important;
	animation: slide 60s linear infinite;
}

.wp-admin .client-logos-container {
	animation: none;
}

@media (max-width: 768px) {
	.client-logos-container {
		height: 76px;
		width: 2288px !important;
		background-size: cover;
		animation: slide 20s linear infinite;
	}
}

@keyframes slide {
	0% {
		transform: translate3d(0, 0, 0);
	}

	100% {
		transform: translate3d(-1750px, 0, 0);
	}
}

@keyframes slide-mobile {
	0% {
		transform: translate3d(0, 0, 0);
	}

	100% {
		transform: translate3d(-1167px, 0, 0);
	}
}





.references-carousel-parent {
	margin: 0 auto !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: start !important;

	&:hover .references-carousel-wrapper {
		animation-play-state: paused;
	}
}

.references-carousel-item {
	width: 100% !important;
	max-width: 33% !important;
	color: white !important;
	box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0 !important;
	justify-content: center !important;
	align-items: center !important;
	transition: margin-top 0.3s, filter 0.3s !important;

	background-size: cover !important;
	background-position: center !important;

	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	flex-basis: calc(100% / 3) !important;

}

.references-carousel-item:last-child {
	max-width: 34% !important;
	flex-basis: 34% !important;
}

.references-carousel-item:hover {
	margin-top: -10px !important;
	cursor: pointer !important;
	filter: brightness(0.85) !important;
}


.references-carousel-wrapper {
	display: flex !important;
	justify-content: start !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	flex-basis: 100% !important;
	width: 100% !important;
	will-change: transform !important;
}

.carousel-animation {
	animation: scrolling 60s linear infinite;
}

@keyframes scrolling {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-100%);
	}
}
