And if still somebody else stumbles into this and wonders why the grid layout doesn't respect the right side padding of the container - the answer is to use fr units instead of % for the grid-template-columns. The fractional units should be the same as percent buuuut here it works only with fr units for some reason.