/* Group Sections Slide
 * Structural styles only. Colors and sizes come from the Elementor Style tab.
 *
 * The overlay effect needs no JS: every section is `position: sticky; top: 0`.
 * Later sections sit after earlier ones in the DOM, so the browser paints them
 * on top as the page scrolls past each one. The first section is simply the
 * first element in normal flow, so it is visible on load with no extra space.
 *
 * The navigation is `position: fixed` so it never reserves layout space (that
 * reserved space was the bug causing a blank area before the first section).
 * JS toggles its visibility while the widget is in the viewport.
 */
.rmh-group-sections-slide {
	position: relative;
	width: 100%;
}

.rmh-group-sections-slide__sections {
	position: relative;
	width: 100%;
}

.rmh-group-sections-slide__section {
	min-height: unset;
	height: unset;
}

@media (min-width: 768px) {
	.rmh-group-sections-slide__section {
		position: sticky;
		top: 0;
		min-height: 100vh;
		height: 100vh;
		width: 100%;
		overflow: hidden;
		box-sizing: border-box;
	}
}

.rmh-group-sections-slide__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 2px dashed currentColor;
	box-sizing: border-box;
	opacity: 0.5;
}

/* Navigation: fixed to the viewport, hidden until the widget scrolls into view. */
.rmh-group-sections-slide__nav {
	--rmh-gss-nav-offset: 24px;
	position: fixed;
	top: 50%;
	left: var(--rmh-gss-nav-offset);
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.rmh-group-sections-slide__nav.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Dots variant */
.rmh-group-sections-slide__dot {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(127, 127, 127, 0.5);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.rmh-group-sections-slide__dot:hover,
.rmh-group-sections-slide__dot:focus-visible {
	transform: scale(1.2);
}

.rmh-group-sections-slide__dot.is-active {
	background-color: currentColor;
}

/* Labels variant (e.g. 2022, 2023) */
.rmh-group-sections-slide__label {
	display: block;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s ease;
	aspect-ratio: 1;
	border-radius: 50%;
	font-size: 13px;
	font-weight: bold;
	padding: 7px;
	font-family: var(--font-display);
}

.rmh-group-sections-slide__label:hover,
.rmh-group-sections-slide__label:focus-visible {
	color: #fff;
	background-color: rgba(0, 0, 0, 0.13);
}

.rmh-group-sections-slide__label.is-active {
	color: #fff;
	background-color: rgba(0, 0, 0, 0.13);
}
