// Fylgja (https://fylgja.dev)
// Licensed under MIT Open Source

:where(.relative, .sticky, .absolute, .fixed) {
	--z: 1;
	--inset-y: var(--inset, var(--inset-t, auto) var(--inset-b, auto));
	--inset-x: var(--inset, var(--inset-s, auto) var(--inset-e, auto));
	z-index: var(--z);
	inset-block: var(--inset-y);
	inset-inline: var(--inset-x);
}

.relative {
	--z: auto;
	position: relative;
}

.sticky {
	--inset-y: 0 auto;
	position: sticky;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}
