/**
 * Rotating Hero – Frontend Styles
 */

/* ── Container ────────────────────────────────────────────────────────────── */

.wp-block-custom-rotating-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	--rh-transition: 800ms;
}

/* ── Track: CSS grid stacking ─────────────────────────────────────────────── */

.rotating-hero__track {
	display: grid;
}

.rotating-hero__track > * {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity var(--rh-transition) ease-in-out;
	pointer-events: none;
	user-select: none;
}

.rotating-hero__track > .is-active {
	opacity: 1;
	pointer-events: auto;
	user-select: auto;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.rotating-hero__track > * {
		transition: none;
	}
}

/* ── Visually hidden live region (screen readers only) ───────────────────── */

.rotating-hero__live-region {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Dot navigation ───────────────────────────────────────────────────────── */

.rotating-hero__dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.85rem;
	z-index: 10;
	padding: 0 0.5rem;
}

.rotating-hero__dot {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border-radius: 1rem;
	border: none !important;
	background-color: rgb(255 255 255 / .5);
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}

.rotating-hero__dot:hover {
	background-color: #fff;
}

.rotating-hero__dot:focus-visible {
	background-color: #fff;
}

.rotating-hero__dot.is-active {
	background-color: rgb(255 255 255 / 1);
	width: 1.5rem;
}


