.gallery figure,
.gallery figure img,
.gallery img {
  height: auto !important;
  max-height: none !important;
}
.gallery figure img,
.gallery img {
  width: 100% !important;
  object-fit: contain !important;
}