I updated the article with a new section and image explaining background-size: cover and contain, among the others.
I did a bit of research on object-fit that I have never heard of before. But I think it would make current tutorial too convoluted. So, I will reserve it for a separate article.
Thanks for the suggestions!