Detect screen size from media queries