master
.container { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; } .image { height: 100%; width: 100%; object-fit: cover; object-position: top center; }