Use the align-content property to vertically align the grid inside the container.
With the value "space-evenly" the grid lines are evenly distributed in the grid container, with equal space on top, bottom and between: