/*---- Clients ("Trusted by") carousel ----*/
#clients {
	background: #fff;
	padding-top: 60px;
	padding-bottom: 50px;
}
#clients .section-title {
	margin-bottom: 30px;
}
#clients .section-title h2 {
	font-size: 34px;
}

.clients-carousel {
	position: relative;
	clear: both; /* .section-title is a floated bootstrap column */
	--per-view: 4;
}
.clients-viewport {
	overflow: hidden;
}

/* Without JS (or with reduced motion) the logos simply wrap and stay still. */
.clients-track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.clients-item {
	flex: 0 0 calc(100% / var(--per-view));
	padding: 0 15px;
	box-sizing: border-box;
	text-align: center;
}
/* Every logo is pre-normalised to the same 2:1 canvas, so one rule fits all. */
.clients-item img {
	display: block;
	width: 100%;
	max-width: 200px;
	height: auto;
	aspect-ratio: 2 / 1;
	margin: 0 auto;
}

.clients-carousel.is-sliding .clients-track {
	flex-wrap: nowrap;
	justify-content: flex-start;
}

.clients-toggle {
	display: block;
	margin: 15px auto 0;
	padding: 4px 14px;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 3px;
	color: #777;
	font-size: 12px;
	cursor: pointer;
}
.clients-toggle:hover,
.clients-toggle:focus {
	color: #333;
	border-color: #999;
}
/* The button only makes sense once the carousel is actually moving. */
.clients-carousel:not(.is-sliding) .clients-toggle {
	display: none;
}

@media (max-width: 991px) {
	.clients-carousel { --per-view: 3; }
}
@media (max-width: 575px) {
	.clients-carousel { --per-view: 2; }
	.clients-item { padding: 0 8px; }
}
