I've posted the following screenshot showing one image exceeding the limits of its container, while the other images are stacked correctly. I haven't done anything in CSS yet. enter image description here
I specifically tried using max-width for that particular image, but as soon as I display the div containing all the images as a grid, it goes over the limit.
You can try using the style
width: 100%
in yourimg
tag. like this: