/* ============================================================
   COMPONENT: BRAND CAROUSEL
============================================================ */

.vw-brand-carousel {
	--vw-brand-carousel-gap: 10px;
	--vw-brand-carousel-visible-columns: 4;
	--vw-brand-carousel-items-per-slide: 12;
	--vw-brand-carousel-card-background: var(--color-background-creame, #f4f1e8);
	--vw-brand-carousel-card-hover: var(--color-background-hover, #e9e4d3);
	--vw-brand-carousel-accent: var(--color-border, #8f945e);
	overflow: hidden;
	color: var(--color-text);
	background: var(--color-background);
}

.vw-brand-carousel__row {
	align-items: stretch;
}

.vw-brand-carousel__brands-column,
.vw-brand-carousel__content-column {
	min-width: 0;
}

.vw-brand-carousel--brands-right .vw-brand-carousel__brands-column {
	order: 2;
}

.vw-brand-carousel--brands-right .vw-brand-carousel__content-column {
	order: 1;
	padding-right: 2.5rem;
}

.vw-brand-carousel--brands-left .vw-brand-carousel__brands-column {
	order: 1;
}

.vw-brand-carousel--brands-left .vw-brand-carousel__content-column {
	order: 2;
	padding-left: 2.5rem;
}

.vw-brand-carousel__viewport {
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
}

/*
 * Before JavaScript enhances the component, the selected brands remain in
 * natural left-to-right, then top-to-bottom order as a responsive grid.
 */
.vw-brand-carousel__track:not(.is-enhanced) {
	display: grid;
	grid-template-columns: repeat(var(--vw-brand-carousel-visible-columns), minmax(0, 1fr));
	gap: var(--vw-brand-carousel-gap);
}

.vw-brand-carousel__track.is-enhanced {
	display: flex;
	gap: var(--vw-brand-carousel-gap);
	width: 100%;
	outline: none;
	will-change: transform;
}

.vw-brand-carousel__track.is-enhanced.is-animating {
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vw-brand-carousel__slide {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: repeat(
		var(--vw-brand-carousel-visible-columns),
		minmax(0, 1fr)
	);
	align-content: start;
	gap: var(--vw-brand-carousel-gap);
	min-width: 0;
}

.vw-brand-carousel__card {
	min-width: 0;
}

.vw-brand-carousel__card--empty {
	aspect-ratio: 4 / 3;
	visibility: hidden;
	pointer-events: none;
}

/* Matches the interaction used by the Brands archive. */
.vw-brand-carousel__card-link {
	display: flex;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	padding: 0.75rem;
	color: var(--color-heading);
	background: var(--vw-brand-carousel-card-background);
	text-decoration: none;
	transition: background-color 180ms ease;
}

.vw-brand-carousel__card-link:hover,
.vw-brand-carousel__card-link:focus-visible {
	color: var(--color-heading);
	background: var(--vw-brand-carousel-card-hover);
}

.vw-brand-carousel__logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 180ms ease;
}

.vw-brand-carousel__card-link:hover .vw-brand-carousel__logo,
.vw-brand-carousel__card-link:focus-visible .vw-brand-carousel__logo {
	transform: scale(1.025);
}

.vw-brand-carousel__fallback {
	max-width: 90%;
	color: var(--color-heading);
	font-family: var(--font-family-heading);
	font-size: clamp(1rem, 1.6vw, 1.5rem);
	line-height: 1.15;
	text-align: center;
}

.vw-brand-carousel__content-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
}



.vw-brand-carousel__content p {
	margin: 0 0 1rem;
}

.vw-brand-carousel__content > :last-child {
	margin-bottom: 0;
}

.vw-brand-carousel__content a {
	color: var(--color-heading);
	text-decoration: underline;
	text-decoration-thickness: 0.5px;
	text-underline-offset: 2px;
	font-family: var(--font-family-heading);	
}

.vw-brand-carousel__content a:hover {
	color: var(--color-muted);
}

.vw-brand-carousel__navigation {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: 50px;
}

.vw-brand-carousel__navigation[hidden] {
	display: none !important;
}

.vw-brand-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--vw-brand-carousel-accent);
	border-radius: 50%;
	background: transparent;
	color: var(--vw-brand-carousel-accent);
	cursor: pointer;
	transition:
		opacity 180ms ease,
		color 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease;
}

.vw-brand-carousel__arrow:hover,
.vw-brand-carousel__arrow:focus-visible {
	color: var(--color-heading);
	border-color: var(--color-heading);
}

.vw-brand-carousel__arrow svg {
	display: block;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
}

.vw-brand-carousel__status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 74.999em) {
	.vw-brand-carousel {
		--vw-brand-carousel-visible-columns: 3;
		--vw-brand-carousel-items-per-slide: 12;
	}

	.vw-brand-carousel--brands-right .vw-brand-carousel__content-column {
		padding-right: 2rem;
	}

	.vw-brand-carousel--brands-left .vw-brand-carousel__content-column {
		padding-left: 2rem;
	}
}

@media (max-width: 61.999em) {
	.vw-brand-carousel {
		--vw-brand-carousel-visible-columns: 4;
		--vw-brand-carousel-items-per-slide: 12;
		padding-bottom:20px;
	}

	.vw-brand-carousel--brands-right .vw-brand-carousel__brands-column,
	.vw-brand-carousel--brands-left .vw-brand-carousel__brands-column {
		order: 1;
	}

	.vw-brand-carousel--brands-right .vw-brand-carousel__content-column,
	.vw-brand-carousel--brands-left .vw-brand-carousel__content-column {
		order: 2;
		padding-right: 0;
		padding-left: 0;
	}

	.vw-brand-carousel__content-column {
		display: flex;
		justify-content: flex-start;
	}

	.vw-brand-carousel__navigation {
		order: 1;
		margin: 10px 0 40px 0;
	}

	.vw-brand-carousel__content {
		order: 2;
	}
}

@media (max-width: 47.999em) {
	.vw-brand-carousel__card-link {
		padding: 0.5rem;
	}
	
	
	.vw-brand-carousel__navigation {
		margin: 0 0 40px 0;
	}
	
	.vw-brand-carousel {
		--vw-brand-carousel-visible-columns: 2;
		--vw-brand-carousel-items-per-slide: 6;
	}
	
	.vw-brand-carousel {
	--vw-brand-carousel-gap: 20px
	}
	
	
}

@media (prefers-reduced-motion: reduce) {
	.vw-brand-carousel__track.is-enhanced.is-animating {
		transition: none;
	}

	.vw-brand-carousel__card-link,
	.vw-brand-carousel__logo,
	.vw-brand-carousel__arrow {
		transition: none;
	}
}

/* Finite carousel endpoint state. */
.vw-brand-carousel__arrow.disabled,
.vw-brand-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
