While this works well enough, it is a bit sluggish on resize - not necessarily a blocker, but you could probably improve responsiveness using `matchMedia` with polyfill?