/* Gallery layout source. The gallery keeps complete media coverage while presenting it as project groups with compact previews. */
.gallery-collection {
  display: grid;
  gap: 72px;
}

.gallery-section {
  min-width: 0;
}

.gallery-section + .gallery-section {
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.gallery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.gallery-section-heading > div {
  min-width: 0;
}

.gallery-section-heading .eyebrow {
  margin-bottom: 8px;
}

.gallery-section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.gallery-section-heading .text-link {
  flex-shrink: 0;
}

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

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.gallery-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101317;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 16px 18px;
}

.gallery-state {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-card strong {
  font-size: .98rem;
  line-height: 1.4;
  font-weight: 650;
}

@media (max-width: 900px) {
  .gallery-collection {
    gap: 56px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .gallery-collection {
    gap: 44px;
  }

  .gallery-section + .gallery-section {
    padding-top: 40px;
  }

  .gallery-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .gallery-section-heading h2 {
    font-size: 1.7rem;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-card {
    border-radius: 6px;
  }

  .gallery-card figcaption {
    gap: 4px;
    padding: 10px 11px 12px;
  }

  .gallery-state {
    font-size: .66rem;
  }

  .gallery-card strong {
    font-size: .86rem;
    line-height: 1.35;
  }
}
