This works, but it's pretty expensive. Event handlers on window resize are pretty resource heavy. I think you can find a way to accomplish what you want using only `display: block;` in conjunction with floats for larger viewports.

Save this for last - will be a nice cleanup task.