img { width: 100%; object-fit: cover;}img { object-position: center; /* which equals */ object-position: 50% 50%;}