.basic-page__flow--gallery {
  grid-column: 1 / -1;
  max-width: none;
}

.basic-page__flow--gallery > :not(.wp-block-gallery):not(.gallery) {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.basic-page__flow--gallery > .wp-block-gallery,
.basic-page__flow--gallery > .gallery {
  margin-top: 28px;
  margin-bottom: 36px;
}

html body figure.wp-block-gallery.has-nested-images,
html body div.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px;
}

html body figure.wp-block-gallery img,
html body div.gallery img {
  margin-bottom: 0;
}

html body figure.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  flex-grow: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

html body figure.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) > a,
html body figure.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
html body figure.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a,
html body figure.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
  flex: none;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

html body div.gallery .gallery-item,
html body ul.wp-block-gallery .blocks-gallery-item {
  float: none;
  width: auto;
  margin: 0;
}
