.team-gallery {
  background: var(--ink);
  color: var(--white);
  padding-top: 0;
  padding-bottom: 130px;
}

.team-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 32px;
}

.team-gallery figure {
  min-width: 0;
  margin: 0;
}

.team-gallery-image {
  position: relative;
  overflow: hidden;
  background: #171914;
}

.team-gallery-wide .team-gallery-image {
  aspect-ratio: 3 / 2;
}

.team-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
  transition: transform .55s, filter .45s;
}

.team-gallery figure:hover img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.02);
}

.team-gallery figcaption {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  color: #b8bbb2;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
}

.team-gallery figcaption span {
  color: #7d8178;
  font-family: ui-monospace, monospace;
}

@media (max-width: 760px) {
  .team-gallery {
    padding-bottom: 90px;
  }

  .team-gallery-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .team-gallery-wide .team-gallery-image {
    aspect-ratio: 3 / 2;
  }
}
