Grid gallery trouble with scaling

Hello. I faced a problem with scaling my custom grid gallery. The right side is always go trough the viewport like this Monosnap even on mobile Monosnap

I used this example to make this but i guees i just somwhere missed in layaout itself. Can someone kick me in the right direction?

My link

Here is my site Read-Only: LINK
(how to share your site Read-Only link)