img {
    object-fit: cover;
}

/*

object-fit: cover crops the exact same way background-size: cover does, but is used for styling imgs, videos and other media tags rather than background images.

object-fit has fairly decent support in the latest browsers and there’s a polyfill for older browsers (IE8+).
https://github.com/anselmh/object-fit

*/