HTML/CSS Assessment Image

I’m trying to put the image card as a flex column with the image on top and the text/thumbnail on bottom in a separate div, then add a grey border in the parent container so it adds around all the content. When I do this however, the image won’t stay contained within the border. I’ve tried using object-fit, but it isn’t changing anything once saved and refreshed. What am I doing wrong?

Hi, and welcome! Do you mind posting some of your code and an image of what the card looks like? That would help the rest of us give you some ideas.