Rewriting media queries for homepage graphics