Added css support for captions and refactored some SASS media queries