Use the gap property to specify the size of the gap between the rows and the columns.
This grid has a 20px gap between the rows, and a 50px gap between the columns: