pub fn layered(child: impl IntoElement) -> LayeredExpand description
Paint child in its own scene layer, giving it a fresh draw order above
everything painted so far in the enclosing layer.
Needed for overlays INSIDE a material card: the card’s single layer means every primitive shares one draw order, and equal orders render grouped by primitive kind (quads, then icons, then images) — so a close button’s circle painted “after” a thumbnail still shows up UNDER the image. A nested layer restores the intended stacking.