.ImageGallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.1rem var(--spaceLg);
  counter-reset: galleryList;
}

.ImageGallery:last-child {
  margin-bottom: 0;
}

.ImageGallery-item {
  margin: .1rem;
  width: calc(25% - .2rem);
  background: var(--colorBrand);
  overflow: hidden;
  counter-increment: galleryList;
  position: relative;
}

@media (max-width: 48rem) {
  .ImageGallery-item {
    width: calc(50% - .2rem);
  }
}

.ImageGallery-itemText {
  font-size: var(--textBaseSize);
}

.ImageGallery-item:after {
  content: counter(galleryList, decimal-leading-zero);
  color: hsl(0, 0%, calc((var(--colorBrand-l) - 60) * -100%));
  font-weight: 700;
  font-size: var(--textLg);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--animationBase);
  transform: scale(0);
  opacity: 0;
  text-align: center;
  padding: var(--spaceSm);
}

@media (max-width: 23.4375rem) {
  .ImageGallery-item:after {
    font-size: var(--testSm);
  }
}

.ImageGallery-item.is-last img {
  opacity: .3;
}

.ImageGallery-item.is-last:after {
  content: attr(data-more-text);
  transform: scale(1);
  opacity: 1;
}

.ImageGallery-item:hover:after {
  transform: scale(1);
  opacity: 1;
}

.ImageGallery-item:hover img {
  opacity: .4;
}

.ImageGallery-item img {
  transition: var(--animationBase);
}

/*# sourceMappingURL=image-gallery.min.css.map */
