/* Image Grid — images edge to edge in a grid (Views/Partials/imageGrid), scoped to .image-grid.
   Values from the reference ESG Social image grid (main.css .grid, .grid-3, .grid-3 a img), measured 2026-10-21:
   full page width above 850px, 20px side margins at ≤850px; three equal columns without gaps, two at ≤639px;
   each image fills its column width at its natural proportions, square corners.
   Bottom spacing from sectionComposition.spacingBottom (none / small / medium / large); empty = medium,
   80px (40px at ≤850px). The gap above comes from the section before it (reference 100px, 50px at ≤700px:
   the Rich Text Block default). */

.image-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.image-grid__image {
  display: block;
  width: 100%;
  height: auto;
}

.image-grid--space-none {
  padding-bottom: 0;
}

.image-grid--space-small {
  padding-bottom: 50px;
}

.image-grid--space-medium {
  padding-bottom: 80px;
}

.image-grid--space-large {
  padding-bottom: 170px;
}

@media (max-width: 850px) {
  .image-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .image-grid--space-small,
  .image-grid--space-medium {
    padding-bottom: 40px;
  }

  .image-grid--space-large {
    padding-bottom: 100px;
  }
}

@media (max-width: 639px) {
  .image-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}
