.wp-block-simple-slideshow-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	--ssb-fade-duration: 1s;
	--ssb-zoom-duration: 6s;
}

.wp-block-simple-slideshow-banner .ssb-slides {
	position: absolute;
	inset: 0;
}

.wp-block-simple-slideshow-banner .ssb-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity var(--ssb-fade-duration) ease-in-out;
	z-index: 0;
}

.wp-block-simple-slideshow-banner .ssb-slide.is-active {
	opacity: 1;
	z-index: 1;
}

.wp-block-simple-slideshow-banner .ssb-slide.is-zoom {
	animation: ssb-kenburns var(--ssb-zoom-duration) ease-in-out forwards;
}

@keyframes ssb-kenburns {
	from {
		transform: scale( 1 );
	}
	to {
		transform: scale( 1.08 );
	}
}

.wp-block-simple-slideshow-banner .ssb-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.wp-block-simple-slideshow-banner .ssb-content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem;
	text-align: center;
	color: #fff;
}

.wp-block-simple-slideshow-banner .ssb-content * {
	color: inherit;
}

/* Respect users who've asked for reduced motion. */
@media ( prefers-reduced-motion: reduce ) {
	.wp-block-simple-slideshow-banner .ssb-slide.is-zoom {
		animation: none;
	}
}
