/**
 * Stronghold Sticky V1 frontend behavior.
 *
 * Native sticky positioning keeps the container in normal document order and
 * lets its natural parent establish the release boundary.
 */

/* Elementor's later .e-con rule sets position and flex layout variables. */
.e-con.sh-sticky {
	position: sticky;
	top: var(--sh-sticky-top, 30px);
	align-self: flex-start;
	height: fit-content;
	z-index: var(--sh-sticky-z, 2);
}

/* The theme's #page overflow boundary otherwise disables native sticky positioning. */
#page:has(.sh-sticky),
#page:has(.sh-sticky-stack) {
	overflow: visible;
}
