/**
 * Catálogo — franja editorial de la single.
 */

body.catalogo-theme.single-product .catalogo-single-gallery-strip {
	grid-column: 1 / -1;
	width: 100vw;
	max-width: none;
	margin: clamp(48px, 6vw, 88px) calc(50% - 50vw) 0;
	overflow: hidden;
	background: var(--wtds-surface, #fff);
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip__track {
	display: flex;
	gap: 0;
	overflow: hidden;
	width: 100%;
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip__item {
	position: relative;
	min-width: 0;
	aspect-ratio: 1 / 1;
	flex: 0 0 calc(100% / var(--catalogo-single-gallery-visible, 4));
	margin: 0;
	overflow: hidden;
	background: var(--wtds-surface-2, #f8f6f2);
	width: calc(100% / var(--catalogo-single-gallery-visible, 4));
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip--carousel .catalogo-single-gallery-strip__track {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip--carousel .catalogo-single-gallery-strip__track::-webkit-scrollbar {
	display: none;
}

body.catalogo-theme.single-product .catalogo-single-gallery-strip--carousel .catalogo-single-gallery-strip__item {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

@media (max-width: 47.9375rem) {
	body.catalogo-theme.single-product .catalogo-single-gallery-strip {
		margin-top: 48px;
		order: 3;
		overflow: visible;
	}

	body.catalogo-theme.single-product .catalogo-single-gallery-strip__track {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.catalogo-theme.single-product .catalogo-single-gallery-strip__track::-webkit-scrollbar {
		display: none;
	}

	body.catalogo-theme.single-product .catalogo-single-gallery-strip__item {
		flex: 0 0 50vw;
		width: 50vw;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.catalogo-theme.single-product .catalogo-single-gallery-strip__track {
		scroll-behavior: auto;
	}
}
