Here we use "object-fit: cover;", so when we resize the browser window, the aspect ratio of the images is preserved: