#gallery {
  border-top: 1px solid var(--brand-accent);
  border-bottom: 1px solid var(--brand-accent);
  background: var(--surface-light);
  color: var(--text-body);
  font-family: var(--font-body);
}

#gallery,
#gallery * {
  box-shadow: none;
}

#gallery > .container {
  box-sizing: border-box;
  padding: var(--section-md) clamp(1rem, 4vw, 4rem);
}

#gallery > .container > h2,
#gallery > .container > p {
  margin: 0;
}

#gallery > .container > h2 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: calc(var(--scale-base) * 2);
  font-weight: 600;
  line-height: 1.2;
}

#gallery > .container > p {
  margin-top: 1rem;
  max-width: 46rem;
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.image-gallery__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--brand-accent);
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  line-height: 0;
}

.image-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .image-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}
