img { width: 100%; height: 100%; object-fit: contain; }
object-fit: cover;
img { width: 200px; height: 400px; object-fit: cover; }