Scale the grid based on screen size.