When grid-auto-flow is set to dense, it will take items further down in the markup and fill them in the gaps created after extending single grid cells.
Can I Use CSS Grid