/* Module: Image gallery */
.st-image-gallery {
  width: min(var(--content-max-width), calc(100% - 2 * var(--space-lg)));
  margin: var(--space-2xl) auto;
  padding: var(--space-xl) 0;
  background: var(--color-surface);
}

.st-image-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.st-image-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f5f5f2;
}

.st-image-gallery__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.st-image-gallery__item--1,
.st-image-gallery__item--5 {
  grid-column: span 2;
}

.st-image-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.st-image-gallery__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f5f5f2;
}


@media (max-width: 781px) {
  .st-image-gallery {
    width: calc(100% - 2 * var(--space-md));
  }

  .st-image-gallery__grid {
    grid-template-columns: 1fr;
  }

  .st-image-gallery__item--1,
  .st-image-gallery__item--5 {
    grid-column: auto;
  }

  .st-image-gallery__item:nth-child(n+2):nth-child(-n+4),
  .st-image-gallery__item:nth-child(6) {
    display: none;
  }
}
