object-fit
(contain vs scale-down)

(original image)

Chris Nager

contain

Chris Nager

scale-down

Chris Nager