:root {
  --airvi-justified-gallery-row-height: 100px;
  --airvi-justified-gallery-gap: 2px;
}

.airvi-justified-gallery.gallery-grid {
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  margin-bottom: calc(-1 * var(--airvi-justified-gallery-gap, 1em));
  margin-left: calc(-1 * var(--airvi-justified-gallery-gap, 1em));
}
.airvi-justified-gallery.gallery-grid:after {
  content: "";
  flex-grow: 999999999;
  min-width: var(--airvi-justified-gallery-row-height);
  height: 0;
}
.airvi-justified-gallery.gallery-grid > * {
  display: block;
  height: var(--airvi-justified-gallery-row-height) !important;
  flex-grow: 1;
  margin-bottom: var(--airvi-justified-gallery-gap, 1em);
  margin-left: var(--airvi-justified-gallery-gap, 1em);
}
.airvi-justified-gallery.gallery-grid > * > img {
  height: var(--airvi-justified-gallery-row-height) !important;
  object-fit: cover;
  max-width: 100%;
  min-width: 100%;
  vertical-align: bottom;
}

@media only screen and (min-width: 768px) {
  :root {
    --gallery-row-height: 150px;
  }
}
@media only screen and (min-width: 1280px) {
  :root {
    --gallery-row-height: 300px;
  }
}