/* Bluesix Logo Carousel */
.bslc {
	--bslc-size: 110px;
	--bslc-size-mobile: 80px;
	--bslc-gap: 60px;
	--bslc-duration: 30s;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.bslc--fade {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.bslc__track {
	display: flex;
	width: max-content;
	animation: bslc-scroll var(--bslc-duration) linear infinite;
	will-change: transform;
}

.bslc--right .bslc__track {
	animation-direction: reverse;
}

.bslc--pause:hover .bslc__track,
.bslc--pause:focus-within .bslc__track {
	animation-play-state: paused;
}

/* Reset theme list styles */
.bslc .bslc__set {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bslc .bslc__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--bslc-size);
	height: var(--bslc-size);
	/* Margin rather than flex gap so both sets are exactly equal width */
	margin: 0 var(--bslc-gap) 0 0;
	padding: 0;
	list-style: none;
}

.bslc .bslc__item::before,
.bslc .bslc__item::marker {
	content: none;
	display: none;
}

.bslc .bslc__item > a {
	display: block;
	width: 100%;
	height: 100%;
}

.bslc .bslc__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bslc--black .bslc__img {
	filter: brightness(0);
}

.bslc--white .bslc__img {
	filter: brightness(0) invert(1);
}

@keyframes bslc-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 767px) {
	.bslc .bslc__item {
		width: var(--bslc-size-mobile);
		height: var(--bslc-size-mobile);
		margin-right: calc(var(--bslc-gap) * 0.6);
	}
}

/* Respect users who prefer less motion: show a static, centred grid */
@media (prefers-reduced-motion: reduce) {
	.bslc--fade {
		-webkit-mask-image: none;
		mask-image: none;
	}
	.bslc__track {
		animation: none;
		width: 100%;
	}
	.bslc .bslc__set {
		flex: 1 1 100%;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: calc(var(--bslc-gap) * 0.5);
	}
	.bslc .bslc__set[aria-hidden="true"],
	.bslc .bslc__item[aria-hidden="true"] {
		display: none;
	}
	.bslc .bslc__item {
		margin: 0 calc(var(--bslc-gap) * 0.5);
	}
}
