Added support for media queries (and packaged logic in separate npm module)