/* Gallery block with the class "cdf-slideshow": one photo at a time, fading (front end only). */
.wp-block-gallery.cdf-slideshow {
	display: grid !important; position: relative; gap: 0 !important;
	aspect-ratio: 5 / 4; width: 100%; max-width: 480px; margin-inline: auto;
	border: 5px solid #fff; border-radius: 4px; overflow: hidden; background: #012;
	box-shadow: 0 12px 28px rgba(0,30,10,.5);
}
.wp-block-gallery.cdf-slideshow > figure.wp-block-image {
	pointer-events: none;
	grid-area: 1 / 1; width: 100% !important; height: 100%; margin: 0 !important;
	opacity: 0; transition: opacity 1.2s ease;
}
.wp-block-gallery.cdf-slideshow:not(.is-ready) > figure.wp-block-image:first-child,
.wp-block-gallery.cdf-slideshow > figure.wp-block-image.is-active { opacity: 1; z-index: 1; }
.wp-block-gallery.cdf-slideshow > figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; }
.wp-block-gallery.cdf-slideshow > figure.wp-block-image figcaption {
	font-family: var(--wp--preset--font-family--vollkorn); font-weight: 700; font-size: 1rem;
	text-shadow: 0 1px 3px rgba(0,0,0,.8); padding: 2.5em .9em 1.9em; text-align: left;
	background: linear-gradient(transparent, rgba(0,0,0,.75)); max-height: none; overflow: visible;
}
@media (prefers-reduced-motion: reduce) { .wp-block-gallery.cdf-slideshow > figure.wp-block-image { transition: none; } }
