object-fit: cover
image would. We recommend using images that either have a centred focal point, or where you don't mind users seeing different crops based on their window size or device orientation. Check out the Castor Docs for a great example of this kind of approach!