I have a grid in flexbox, for example:

They are all located using flexbox, and then the panels themselves (colored bits) have a margin: 5px .
codepen here: https://codepen.io/callumacrae/pen/bRoZdp
Since the upper right section has two elements, there is more field there, so it is slightly squeezed out - I do not want this to happen!
I think there are two possible corrections - either to make the margin wrong, or to make the components five pixels smaller, and not five pixels more, as it is now, but I donβt know how to do any of these things.
How can I add more elements without resizing the parent?
source share