dopasuj obraz w CSS GID

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