.projects-hero {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.project-overview-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #111;
}

.project-overview-gallery img {
  display: block;
  width: 100%;
  height: clamp(190px, 28vw, 430px);
  object-fit: cover;
}

.project-gallery-section {
  background: #f5f5f5;
}

.project-gallery-intro {
  max-width: 780px;
  line-height: 1.65;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.project-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
}

.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-gallery figcaption {
  padding: 0.7rem 0.85rem;
  color: #555;
  font-size: 0.78rem;
}

.project-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}

.project-gallery-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid #bbb;
  color: #111;
  text-decoration: none;
}

.project-gallery-pagination a[aria-current="page"] {
  color: #fff;
  border-color: #f10b0b;
  background: #f10b0b;
}

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

@media (max-width: 520px) {
  .project-overview-gallery,
  .project-gallery {
    grid-template-columns: 1fr;
  }
}
