/* Logo Ticker by Brighter Design - front end */

.bd-logo-ticker {
	overflow: hidden;
	padding: 24px 0;
}

.bd-logo-ticker.is-full-bleed {
	width: 100vw;
	max-width: 100vw;
	/* !important so a user-set margin from the block's Dimensions panel
	   cannot break the edge-to-edge alignment; vertical margins still apply. */
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
}

.bd-logo-ticker__track {
	display: flex;
	width: -webkit-max-content;
	width: max-content;
	animation: bd-lt-scroll var(--bd-lt-speed, 100s) linear infinite;
}

.bd-logo-ticker__row {
	display: flex;
	align-items: center;
	gap: var(--bd-lt-gap, 72px);
	padding-right: var(--bd-lt-gap, 72px);
}

.bd-logo-ticker img {
	height: var(--bd-lt-h, 96px);
	width: auto;
	max-width: none;
	display: block;
}

@media (max-width: 781px) {
	.bd-logo-ticker img {
		height: var(--bd-lt-h-t, 68px);
	}
	.bd-logo-ticker__row {
		gap: calc(var(--bd-lt-gap, 72px) * 0.6);
		padding-right: calc(var(--bd-lt-gap, 72px) * 0.6);
	}
}

@media (max-width: 480px) {
	.bd-logo-ticker img {
		height: var(--bd-lt-h-m, 56px);
	}
	.bd-logo-ticker__row {
		gap: calc(var(--bd-lt-gap, 72px) * 0.5);
		padding-right: calc(var(--bd-lt-gap, 72px) * 0.5);
	}
}

@keyframes bd-lt-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.bd-logo-ticker__track {
		animation: none;
	}
}
