Template:ContentGrid/styles.css

.tpl-contentgrid { margin: 1em 0; display: grid; }

.tpl-contentgrid .mw-tpl-colorbox { margin: 0; /* in favour of grid-gap on Template:ContentGrid */ }