/*your custom css goes here*/ 

.img-fit {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
}