I think I'd rather put the aspect-ratio on the element that wraps the img. And then use object-fit on the img. Two reasons:<p>- Allows for using the img tag sizes (and srcset)<p>- When using sizes (w/ srcset) I don't have to worry if the image the browser picks from the srcset isn't the correct size and/or aspect ratio.