/* Three photos per row; the final pair is centered on desktop. */
.showcase-grid.athlete-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: none;
}
.athlete-gallery figure {
  grid-column: span 2;
  min-height: 0;
  aspect-ratio: 3 / 4;
}
.athlete-gallery .showcase-large { grid-row: auto; }
.athlete-gallery .team-photo img {
  object-fit: contain;
  object-position: center;
}
.athlete-gallery .team-photo:hover img { transform: none; }
.athlete-gallery .competition-new {
  grid-column: 2 / span 2;
  aspect-ratio: 3 / 4;
  scroll-margin-top: 92px;
}
.athlete-gallery .competition-medal {
  grid-column: 4 / span 2;
  scroll-margin-top: 92px;
}
.athlete-gallery .competition-medal img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 107.23%;
  height: auto;
  max-width: none;
  object-fit: fill;
  object-position: top left;
}
@media (max-width: 860px) {
  .showcase-grid.athlete-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .athlete-gallery figure,
  .athlete-gallery .competition-new,
  .athlete-gallery .competition-medal {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}
@media (max-width: 560px) {
  .showcase-grid.athlete-gallery { grid-template-columns: 1fr; }
}
