.anchored-box { position : absolute; inset-block-start : anchor(bottom); visibility : hidden; justify-self : anchor-center; &.active { visibility : visible; } }