Online CSS Grid generator: configure columns, rows, gaps and alignment visually, preview the layout live and copy the generated Grid code. All local.
justify-* controls the horizontal axis and align-* the vertical one; items-* works inside each cell while content-* positions the whole grid in its container. Distribution only shows when the grid is smaller than the container, which is why the preview leaves extra room. Everything is computed in the browser.