Rearrange page elements on CSS media query changes