Fit Image Inside CSS Gid

 object-fit: cover;
  width: 100%;
  max-height: 100%;
Ricardo Fonseca