/* Niños En Acción — scrolling Gallery albums (front end only, so galleries
   stay as an easy-to-edit grid inside the WordPress editor). */

.wp-block-gallery.has-nested-images.is-style-nea-carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 12px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	border-radius: 18px;
}
.wp-block-gallery.has-nested-images.is-style-nea-carousel::-webkit-scrollbar { display: none; }

.wp-block-gallery.has-nested-images.is-style-nea-carousel figure.wp-block-image:not(#individual-image) {
	flex: 0 0 min(86%, 640px) !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
.wp-block-gallery.has-nested-images.is-style-nea-carousel figure.wp-block-image img {
	width: 100% !important;
	height: clamp(240px, 40vw, 440px) !important;
	object-fit: cover;
	border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.is-style-nea-carousel,
	.nea-carousel-track { scroll-behavior: auto; }
}
