Add CSS media queries to ensure sidebar is not positionned statically when not appropriate