.card-figure,
.card-img-container,
.card-img {
  aspect-ratio: 1 / 1;
  /* Forces square shape */
  height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center; }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fills container while cropping overflow */ }
