.factory-carousel {
	position: relative;
	margin-top: 12rem;
}

.factory-showcases {
	margin: 0;
}

.factory-showcases--horizontal-scroll {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.factory-showcases--horizontal-scroll::-webkit-scrollbar {
	display: none;
}

.factory-showcases--horizontal-scroll > .factory-showcase {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.factory-carousel__controls {
	position: absolute;
	z-index: 4;
	top: -4rem;
	right: clamp(1rem, 2vw, 2rem);
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .45rem;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	background: rgba(4, 42, 88, .72);
	box-shadow: 0 .5rem 1.5rem rgba(2, 28, 64, .2);
	backdrop-filter: blur(8px);
}

.factory-carousel__button,
.factory-carousel__dot {
	margin: 0;
	border: 0;
	color: #fff;
	background: transparent;
	cursor: pointer;
}

.factory-carousel__button {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	font-size: 1.45rem;
	line-height: 1;
}

.factory-carousel__button:hover,
.factory-carousel__button:focus-visible {
	background: rgba(255, 255, 255, .18);
}

.factory-carousel__dots {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.factory-carousel__dot {
	width: .65rem;
	height: .65rem;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	transition: width .25s ease, background-color .25s ease;
}

.factory-carousel__dot.is-active {
	width: 1.65rem;
	background: #fff;
}

.factory-carousel__button:focus-visible,
.factory-carousel__dot:focus-visible,
.factory-showcases--horizontal-scroll:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.factory-showcase {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 92% 12%, rgba(26, 155, 220, .4), transparent 35%),
		linear-gradient(145deg, #073a78 0%, #075c9d 52%, #078cc5 100%);
	padding: clamp(4rem, 6vw, 7.5rem) 4rem clamp(2.5rem, 4vw, 4rem);
}

.factory-showcase--juarez {
	background:
		radial-gradient(circle at 86% 10%, rgba(20, 133, 198, .35), transparent 34%),
		linear-gradient(145deg, #07366f 0%, #075c99 50%, #0789c0 100%);
}

.factory-showcase__inner {
	display: grid;
	grid-template-columns: minmax(24rem, .82fr) minmax(0, 1.38fr);
	gap: clamp(2.5rem, 5vw, 6rem);
	max-width: 106rem;
	margin: 0 auto;
}

.factory-showcase__summary {
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 5vw, 5.5rem);
	min-width: 0;
}

.factory-showcase__title {
	max-width: none;
	color: #fff;
	font-size: clamp(2.25rem, 3vw, 4.5rem);
	font-weight: 400 !important;
	line-height: 1.05;
	letter-spacing: -.035em;
	text-transform: uppercase;
	white-space: nowrap;
}

.factory-showcase__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 3rem);
	margin: 0;
}

.factory-stat {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: clamp(8.5rem, 11vw, 11rem);
	padding-left: clamp(1rem, 1.5vw, 1.5rem);
	border-left: 2px solid rgba(255, 255, 255, .84);
}

.factory-stat__value {
	font-size: clamp(2.25rem, 3.2vw, 3.75rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.025em;
	white-space: nowrap;
}

.factory-stat__label {
	max-width: 17rem;
	font-size: clamp(.95rem, 1.25vw, 1.2rem);
	line-height: 1.4;
}

.factory-showcase__gallery {
	display: grid;
	grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 2.25rem);
	align-self: center;
	margin-top: clamp(2.5rem, 3vw, 4rem);
}

.factory-photo {
	position: relative;
	overflow: hidden;
	min-width: 0;
	margin: 0;
	border: 1.5px solid rgba(255, 255, 255, .9);
	border-radius: clamp(1.25rem, 2vw, 2.25rem);
	aspect-ratio: 1.7 / 1;
	background: #0a2b60;
}

.factory-photo--main {
	grid-column: 1 / -1;
	aspect-ratio: 2.32 / 1;
}

.factory-photo > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.factory-photo--main > img {
	object-position: center 48%;
}

.factory-showcase__brand {
	grid-column: 1 / -1;
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-top: clamp(.5rem, 2vw, 1.75rem);
	font-weight: 600;
}

.factory-showcase__brand-mark {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 3.25rem;
	border: .45rem solid currentColor;
	border-top: 0;
	font-size: 0;
}

.factory-showcase__wordmark {
	font-size: clamp(1.4rem, 2.2vw, 2.5rem);
	line-height: 1;
	letter-spacing: -.025em;
}

@media (max-width: 74rem) {
	.factory-showcase__inner {
		grid-template-columns: 1fr;
	}

	.factory-showcase__gallery {
		margin-top: 0;
	}

	.factory-showcase__summary {
		gap: 2.75rem;
	}

	.factory-showcase__title {
		max-width: none;
	}

	.factory-showcase__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.factory-stat {
		min-height: 8.5rem;
	}
}

@media (max-width: 47.99rem) {
	.factory-carousel {
		margin-top: 5rem;
	}

	.factory-carousel__controls {
		top: -3.5rem;
		right: .75rem;
		gap: .35rem;
	}

	.factory-carousel__button {
		width: 2.35rem;
		height: 2.35rem;
	}

	.factory-showcase {
		padding: 4rem 1rem 2.5rem;
	}

	.factory-showcase__inner,
	.factory-showcase__gallery {
		gap: 1rem;
	}

	.factory-showcase__title {
		font-size: clamp(2.25rem, 11vw, 3.75rem);
		white-space: normal;
	}

	.factory-showcase__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25rem .75rem;
	}

	.factory-stat {
		min-height: 8rem;
		padding-left: .75rem;
	}

	.factory-stat__value {
		font-size: clamp(1.8rem, 8vw, 2.6rem);
	}

	.factory-stat__label {
		font-size: .875rem;
		line-height: 1.35;
	}

	.factory-photo,
	.factory-photo--main {
		aspect-ratio: 1.6 / 1;
		border-radius: 1.25rem;
	}

	.factory-showcase__brand {
		margin-top: 1rem;
	}
}

@media (max-width: 32rem) {
	.factory-showcase__gallery {
		grid-template-columns: 1fr;
	}

	.factory-photo,
	.factory-photo--main {
		grid-column: 1;
	}
}
