.section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 18px;
}

.gallery-grid .work-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;      
  overflow: hidden;
  border-radius: 14px 14px 0 0; 
  background: rgba(0, 0, 0, 0.25);
}

.gallery-grid .work-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        
  object-position: center;
  filter: contrast(1.06) saturate(0.92);
}

.gallery-grid .work-body {
  padding: 14px 14px 16px;
}

.gallery-grid .work-body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.3px;
}

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

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .work-thumb {
    aspect-ratio: 16 / 9;
  }
}

.gallery-back {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.nav-links .active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 1;
}

