/* Dual-row homepage gallery-bleed. Scoped overrides only. */

.gallery-bleed {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow: hidden;
}

.gallery-bleed .gallery-track {
	display: none;
}

.gallery-bleed .photo-strip {
	display: block !important;
	width: 100%;
	height: 160px;
	overflow: hidden;
	border-radius: 0;
}

.gallery-bleed .photo-strip-track {
	display: flex;
	width: max-content;
	height: 100%;
	align-items: stretch;
	gap: 8px;
}

.gallery-bleed .photo-strip.is-animated .photo-strip-track {
	animation: lrs-gallery-marquee 55s linear infinite;
	will-change: transform;
}

.gallery-bleed .photo-strip--reverse.is-animated .photo-strip-track {
	animation-name: lrs-gallery-marquee-reverse;
	animation-duration: 60s;
	animation-delay: -18s;
}

.gallery-bleed .photo-strip-item {
	margin: 0;
	flex: 0 0 auto;
	height: 100%;
	overflow: hidden;
}

.gallery-bleed .photo-strip-item .gallery-open,
.gallery-bleed .photo-strip-item img,
.gallery-bleed .photo-strip-item .gallery-bleed-image {
	display: block;
	height: 100%;
	width: auto;
	min-width: 220px;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.gallery-bleed .photo-strip-item .gallery-open {
	cursor: pointer;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gallery-bleed .photo-strip-item img,
	.gallery-bleed .photo-strip-item .gallery-bleed-image {
		transition: transform 0.35s ease;
	}

	.gallery-bleed .photo-strip-item .gallery-open:hover img,
	.gallery-bleed .photo-strip-item .gallery-open:focus-visible img {
		transform: scale(1.02);
	}
}

@keyframes lrs-gallery-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@keyframes lrs-gallery-marquee-reverse {
	from { transform: translate3d(-50%, 0, 0); }
	to { transform: translate3d(0, 0, 0); }
}

.gallery-bleed .photo-strip.is-static {
	overflow-x: auto;
	scrollbar-width: none;
}

.gallery-bleed .photo-strip.is-static::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.gallery-bleed {
		gap: 8px;
	}

	.gallery-bleed .photo-strip {
		height: 200px;
	}

	.gallery-bleed .photo-strip-item img,
	.gallery-bleed .photo-strip-item .gallery-bleed-image {
		min-width: 280px;
	}
}

@media (min-width: 1024px) {
	.gallery-bleed .photo-strip {
		height: 220px;
	}

	.gallery-bleed .photo-strip-item img,
	.gallery-bleed .photo-strip-item .gallery-bleed-image {
		min-width: 320px;
	}
}

@media (min-width: 1280px) {
	.gallery-bleed .photo-strip {
		height: 300px;
	}

	.gallery-bleed .photo-strip-item img,
	.gallery-bleed .photo-strip-item .gallery-bleed-image {
		min-width: 360px;
	}
}

@media (min-width: 1440px) {
	.gallery-bleed .photo-strip-item img,
	.gallery-bleed .photo-strip-item .gallery-bleed-image {
		min-width: 400px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gallery-bleed .photo-strip.is-animated .photo-strip-track,
	.gallery-bleed .photo-strip--reverse.is-animated .photo-strip-track {
		animation: none;
		transform: none;
	}
}
