Using object-fit in CSS for automatic image cropping - YouTube
CSS object-fit property - javatpoint
Wes Bos on Twitter: "🔥 Use CSS object-fit: contain; and object-fit: cover; to scale 100% width and 100% height images as large as they will go without messing up aspect ratios. Works