[semi-solved] unwanted 1fr gaps

https://codepen.io/sdmedworld/pen/emYBOaJ
window-resizing required – please see the above [spicy] codepen.

I am trying to achieve a versatile layout component using a grid-template.
Regarding the ruleset for
layout-container
I thought, that the calculation which subtracts one gap-width from the content-width, would prevent the blowout and overflow – but it does not.

After back and forth, I don't know why anymore.

The issue that comes along with this, is that the "outside" gaps towards the 1fr columns mingle with the inline-padding of the layout-container. Now where have I taken a wrong turn?
Was this page helpful?