/* ==========================================================
   EBW Sticky Extension
   ========================================================== */

.ebw-sticky-el {
	position: static;
	transition: background-color .2s ease, box-shadow .2s ease;
}

/* Device gating — sticky only kicks in at/above the relevant breakpoint. */
.ebw-sticky-on-all_devices {
	position: -webkit-sticky;
	position: sticky;
}

@media (min-width: 768px) {
	.ebw-sticky-on-tablet_up {
		position: -webkit-sticky;
		position: sticky;
	}
}

@media (min-width: 1025px) {
	.ebw-sticky-on-desktop {
		position: -webkit-sticky;
		position: sticky;
	}
}

/* "Stick To Parent" mode is finished off in JS (clamps to the parent's
   bottom edge once the parent scrolls past), so it always starts from
   the same sticky base above. */
.ebw-sticky-to-parent {
	will-change: position, top, bottom;
}
