.w153c-gallery--square .fusion-gallery-image {
  aspect-ratio: 1 / 1 !important;
}

.w153c-gallery--contain .fusion-gallery-image img {
  aspect-ratio: unset !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}

.w153c-gallery--flex {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center;
  height: auto !important;
}

body .awb-gallery-wrapper .fusion-gallery.w153c-gallery--flex > .fusion-grid-column {
  position: static !important;
}

@media (max-width: 1100px) {
  body .awb-gallery-wrapper .fusion-gallery.w153c-gallery--md-4 > .fusion-grid-column {
    width: 25% !important;
  }

  body .awb-gallery-wrapper .fusion-gallery.w153c-gallery--md-3 > .fusion-grid-column {
    width: 33.33% !important;
  }
}

@media (max-width: 800px) {
  body .awb-gallery-wrapper .fusion-gallery.w153c-gallery--sm-3 > .fusion-grid-column {
    width: 33.33% !important;
  }

  body .awb-gallery-wrapper .fusion-gallery.w153c-gallery--sm-2 > .fusion-grid-column {
    width: 50% !important;
  }
}
