Handle media queries.