media query for rank page grid