Trouble with object-fit: contain

I’m trying to fit apply object-fit: contain to my 2 images here:

https://codepen.io/El_Escandalo/pen/rNOzGKw

But I can’t figure out how to contain the img s to their divs. It seems object-fit: contain is having no effect on them. What am I missing?