added check for media queries