Optimize media queries