.blocks-gallery-grid:not(.has-nested-images),
.ispc-block-gallery:not(.has-nested-images) {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-image,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-item {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  margin: 0 1em 1em 0;
  position: relative;
  width: calc(50% - 1em);
}
.blocks-gallery-grid:not(.has-nested-images)
  .blocks-gallery-image:nth-of-type(2n),
.blocks-gallery-grid:not(.has-nested-images)
  .blocks-gallery-item:nth-of-type(2n),
.ispc-block-gallery:not(.has-nested-images)
  .blocks-gallery-image:nth-of-type(2n),
.ispc-block-gallery:not(.has-nested-images)
  .blocks-gallery-item:nth-of-type(2n) {
  margin-right: 0;
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-item figure {
  align-items: flex-end;
  display: flex;
  height: 100%;
  justify-content: flex-start;
  margin: 0;
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-image img,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-item img {
  display: block;
  height: auto;
  max-width: 100%;
  width: auto;
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption {
  background: linear-gradient(0deg, #000000b3, #0000004d 70%, #0000);
  bottom: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 0.8em;
  margin: 0;
  max-height: 100%;
  overflow: auto;
  padding: 3em 0.77em 0.7em;
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 2;
}
.blocks-gallery-grid:not(.has-nested-images)
  .blocks-gallery-image
  figcaption
  img,
.blocks-gallery-grid:not(.has-nested-images)
  .blocks-gallery-item
  figcaption
  img,
.ispc-block-gallery:not(.has-nested-images)
  .blocks-gallery-image
  figcaption
  img,
.ispc-block-gallery:not(.has-nested-images)
  .blocks-gallery-item
  figcaption
  img {
  display: inline;
}
.blocks-gallery-grid:not(.has-nested-images) figcaption,
.ispc-block-gallery:not(.has-nested-images) figcaption {
  flex-grow: 1;
}
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,
.blocks-gallery-grid:not(.has-nested-images).is-cropped
  .blocks-gallery-image
  img,
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,
.blocks-gallery-grid:not(.has-nested-images).is-cropped
  .blocks-gallery-item
  img,
.ispc-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,
.ispc-block-gallery:not(.has-nested-images).is-cropped
  .blocks-gallery-image
  img,
.ispc-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,
.ispc-block-gallery:not(.has-nested-images).is-cropped
  .blocks-gallery-item
  img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,
.ispc-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,
.ispc-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item {
  margin-right: 0;
  width: 100%;
}
@media (min-width: 600px) {
  .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(33.33333% - 0.66667em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(25% - 0.75em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(20% - 0.8em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(16.66667% - 0.83333em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(14.28571% - 0.85714em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,
  .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,
  .ispc-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,
  .ispc-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item {
    margin-right: 1em;
    width: calc(12.5% - 0.875em);
  }
  .blocks-gallery-grid:not(.has-nested-images).columns-1
    .blocks-gallery-image:nth-of-type(1n),
  .blocks-gallery-grid:not(.has-nested-images).columns-1
    .blocks-gallery-item:nth-of-type(1n),
  .blocks-gallery-grid:not(.has-nested-images).columns-2
    .blocks-gallery-image:nth-of-type(2n),
  .blocks-gallery-grid:not(.has-nested-images).columns-2
    .blocks-gallery-item:nth-of-type(2n),
  .blocks-gallery-grid:not(.has-nested-images).columns-3
    .blocks-gallery-image:nth-of-type(3n),
  .blocks-gallery-grid:not(.has-nested-images).columns-3
    .blocks-gallery-item:nth-of-type(3n),
  .blocks-gallery-grid:not(.has-nested-images).columns-4
    .blocks-gallery-image:nth-of-type(4n),
  .blocks-gallery-grid:not(.has-nested-images).columns-4
    .blocks-gallery-item:nth-of-type(4n),
  .blocks-gallery-grid:not(.has-nested-images).columns-5
    .blocks-gallery-image:nth-of-type(5n),
  .blocks-gallery-grid:not(.has-nested-images).columns-5
    .blocks-gallery-item:nth-of-type(5n),
  .blocks-gallery-grid:not(.has-nested-images).columns-6
    .blocks-gallery-image:nth-of-type(6n),
  .blocks-gallery-grid:not(.has-nested-images).columns-6
    .blocks-gallery-item:nth-of-type(6n),
  .blocks-gallery-grid:not(.has-nested-images).columns-7
    .blocks-gallery-image:nth-of-type(7n),
  .blocks-gallery-grid:not(.has-nested-images).columns-7
    .blocks-gallery-item:nth-of-type(7n),
  .blocks-gallery-grid:not(.has-nested-images).columns-8
    .blocks-gallery-image:nth-of-type(8n),
  .blocks-gallery-grid:not(.has-nested-images).columns-8
    .blocks-gallery-item:nth-of-type(8n),
  .ispc-block-gallery:not(.has-nested-images).columns-1
    .blocks-gallery-image:nth-of-type(1n),
  .ispc-block-gallery:not(.has-nested-images).columns-1
    .blocks-gallery-item:nth-of-type(1n),
  .ispc-block-gallery:not(.has-nested-images).columns-2
    .blocks-gallery-image:nth-of-type(2n),
  .ispc-block-gallery:not(.has-nested-images).columns-2
    .blocks-gallery-item:nth-of-type(2n),
  .ispc-block-gallery:not(.has-nested-images).columns-3
    .blocks-gallery-image:nth-of-type(3n),
  .ispc-block-gallery:not(.has-nested-images).columns-3
    .blocks-gallery-item:nth-of-type(3n),
  .ispc-block-gallery:not(.has-nested-images).columns-4
    .blocks-gallery-image:nth-of-type(4n),
  .ispc-block-gallery:not(.has-nested-images).columns-4
    .blocks-gallery-item:nth-of-type(4n),
  .ispc-block-gallery:not(.has-nested-images).columns-5
    .blocks-gallery-image:nth-of-type(5n),
  .ispc-block-gallery:not(.has-nested-images).columns-5
    .blocks-gallery-item:nth-of-type(5n),
  .ispc-block-gallery:not(.has-nested-images).columns-6
    .blocks-gallery-image:nth-of-type(6n),
  .ispc-block-gallery:not(.has-nested-images).columns-6
    .blocks-gallery-item:nth-of-type(6n),
  .ispc-block-gallery:not(.has-nested-images).columns-7
    .blocks-gallery-image:nth-of-type(7n),
  .ispc-block-gallery:not(.has-nested-images).columns-7
    .blocks-gallery-item:nth-of-type(7n),
  .ispc-block-gallery:not(.has-nested-images).columns-8
    .blocks-gallery-image:nth-of-type(8n),
  .ispc-block-gallery:not(.has-nested-images).columns-8
    .blocks-gallery-item:nth-of-type(8n) {
    margin-right: 0;
  }
}
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,
.ispc-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child {
  margin-right: 0;
}
.blocks-gallery-grid:not(.has-nested-images).alignleft,
.blocks-gallery-grid:not(.has-nested-images).alignright,
.ispc-block-gallery:not(.has-nested-images).alignleft,
.ispc-block-gallery:not(.has-nested-images).alignright {
  max-width: 420px;
  width: 100%;
}
.blocks-gallery-grid:not(.has-nested-images).aligncenter
  .blocks-gallery-item
  figure,
.ispc-block-gallery:not(.has-nested-images).aligncenter
  .blocks-gallery-item
  figure {
  justify-content: center;
}
.ispc-block-gallery:not(.is-cropped) .blocks-gallery-item {
  align-self: flex-start;
}
figure.ispc-block-gallery.has-nested-images {
  align-items: normal;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image:not(#individual-image) {
  margin: 0;
  width: calc(50% - var(--ispc--style--unstable-gallery-gap, 16px) / 2);
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  max-width: 100%;
  position: relative;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image > a,
.ispc-block-gallery.has-nested-images figure.ispc-block-image > div {
  flex-direction: column;
  flex-grow: 1;
  margin: 0;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image img {
  display: block;
  height: auto;
  max-width: 100% !important;
  width: auto;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image:has(figcaption):before {
  bottom: 0;
  left: 0;
  max-height: 100%;
  position: absolute;
  right: 0;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image:has(figcaption):before {
  backdrop-filter: blur(3px);
  content: '';
  height: 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 20%, #0000);
  mask-image: linear-gradient(0deg, #000 20%, #0000);
  max-height: 40%;
  pointer-events: none;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption {
  box-sizing: border-box;
  color: #fff;
  font-size: 13px;
  margin: 0;
  overflow: auto;
  padding: 1em;
  text-align: center;
  text-shadow: 0 0 1.5px #000;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption::-webkit-scrollbar-track {
  background-color: initial;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  background-color: initial;
  border: 3px solid #0000;
  border-radius: 8px;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption:focus-within::-webkit-scrollbar-thumb,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption:focus::-webkit-scrollbar-thumb,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption:hover::-webkit-scrollbar-thumb {
  background-color: #fffc;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption {
  scrollbar-color: #0000 #0000;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption:focus,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image
  figcaption:focus-within,
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption:hover {
  scrollbar-color: #fffc #0000;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption {
  will-change: transform;
}
@media (hover: none) {
  .ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption {
    scrollbar-color: #fffc #0000;
  }
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption {
  background: linear-gradient(0deg, #0006, #0000);
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption img {
  display: inline;
}
.ispc-block-gallery.has-nested-images figure.ispc-block-image figcaption a {
  color: inherit;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.has-custom-border
  img {
  box-sizing: border-box;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.has-custom-border
  > a,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.has-custom-border
  > div,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.is-style-rounded
  > a,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.is-style-rounded
  > div {
  flex: 1 1 auto;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.has-custom-border
  figcaption,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.is-style-rounded
  figcaption {
  background: none;
  color: inherit;
  flex: initial;
  margin: 0;
  padding: 10px 10px 9px;
  position: relative;
  text-shadow: none;
}
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.has-custom-border:before,
.ispc-block-gallery.has-nested-images
  figure.ispc-block-image.is-style-rounded:before {
  content: none;
}
.ispc-block-gallery.has-nested-images figcaption {
  flex-basis: 100%;
  flex-grow: 1;
  text-align: center;
}
.ispc-block-gallery.has-nested-images:not(.is-cropped)
  figure.ispc-block-image:not(#individual-image) {
  margin-bottom: auto;
  margin-top: 0;
}
.ispc-block-gallery.has-nested-images.is-cropped
  figure.ispc-block-image:not(#individual-image) {
  align-self: inherit;
}
.ispc-block-gallery.has-nested-images.is-cropped
  figure.ispc-block-image:not(#individual-image)
  > a,
.ispc-block-gallery.has-nested-images.is-cropped
  figure.ispc-block-image:not(#individual-image)
  > div:not(.components-drop-zone) {
  display: flex;
}
.ispc-block-gallery.has-nested-images.is-cropped
  figure.ispc-block-image:not(#individual-image)
  a,
.ispc-block-gallery.has-nested-images.is-cropped
  figure.ispc-block-image:not(#individual-image)
  img {
  flex: 1 0 0%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.ispc-block-gallery.has-nested-images.columns-1
  figure.ispc-block-image:not(#individual-image) {
  width: 100%;
}
@media (min-width: 600px) {
  .ispc-block-gallery.has-nested-images.columns-3
    figure.ispc-block-image:not(#individual-image) {
    width: calc(
      33.33333% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.66667
    );
  }
  .ispc-block-gallery.has-nested-images.columns-4
    figure.ispc-block-image:not(#individual-image) {
    width: calc(25% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.75);
  }
  .ispc-block-gallery.has-nested-images.columns-5
    figure.ispc-block-image:not(#individual-image) {
    width: calc(20% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.8);
  }
  .ispc-block-gallery.has-nested-images.columns-6
    figure.ispc-block-image:not(#individual-image) {
    width: calc(
      16.66667% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.83333
    );
  }
  .ispc-block-gallery.has-nested-images.columns-7
    figure.ispc-block-image:not(#individual-image) {
    width: calc(
      14.28571% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.85714
    );
  }
  .ispc-block-gallery.has-nested-images.columns-8
    figure.ispc-block-image:not(#individual-image) {
    width: calc(12.5% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.875);
  }
  .ispc-block-gallery.has-nested-images.columns-default
    figure.ispc-block-image:not(#individual-image) {
    width: calc(
      33.33% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.66667
    );
  }
  .ispc-block-gallery.has-nested-images.columns-default
    figure.ispc-block-image:not(#individual-image):first-child:nth-last-child(
      2
    ),
  .ispc-block-gallery.has-nested-images.columns-default
    figure.ispc-block-image:not(#individual-image):first-child:nth-last-child(2)
    ~ figure.ispc-block-image:not(#individual-image) {
    width: calc(50% - var(--ispc--style--unstable-gallery-gap, 16px) * 0.5);
  }
  .ispc-block-gallery.has-nested-images.columns-default
    figure.ispc-block-image:not(#individual-image):first-child:last-child {
    width: 100%;
  }
}
.ispc-block-gallery.has-nested-images.alignleft,
.ispc-block-gallery.has-nested-images.alignright {
  max-width: 420px;
  width: 100%;
}
.ispc-block-gallery.has-nested-images.aligncenter {
  justify-content: center;
}
