A container query can contain viewport units, meaning you can compare the window vs the element and make choices.