/**
 * Homepage hero carousel overrides.
 * Heights and dynamic slide widths only — slider behaviour lives in home-carousel.js.
 */

/* Desktop carousel height */
@media (min-width: 768px) {
	.homepage-d-all-breakpoints .rectangle-2__carousel {
		height: 420px;
		display: flex;
		flex-direction: column;
	}

	.homepage-d-all-breakpoints .rectangle-2__track {
		height: 100%;
		min-height: 100%;
	}

	.homepage-d-all-breakpoints .rectangle-2__slide {
		height: 100%;
	}
}

/* Mobile carousel: full-width cover at fixed 110px height */
.main-pageu35trial .rectangle-2__carousel {
	width: 100%;
	max-width: 100%;
	height: 138px;
	overflow: hidden;
}

.main-pageu35trial .rectangle-2__track {
	height: 138px;
	min-height: 138px;
}

.main-pageu35trial .rectangle-2__slide {
	width: 100vw;
	height: 138px;
	flex-shrink: 0;
}

.main-pageu35trial .rectangle-2__image {
	width: 100%;
	height: 138px;
	object-fit: cover;
	object-position: center center;
}

/* Support any slide count configured in Home Settings */
.homepage-d-all-breakpoints .rectangle-2__track {
	width: calc(var(--carousel-slide-count, 4) * 100%) !important;
}

.homepage-d-all-breakpoints .rectangle-2__slide {
	width: calc(100% / var(--carousel-slide-count, 4)) !important;
}