/* All player portraits use the same crop on the pitch, bench and profile. */
.player-portrait {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  inline-size: var(--player-portrait-size, 2.5rem);
  max-inline-size: 100%;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background-color: #e7ece5;
}
.player-portrait[hidden] { display: none !important; }
.player-portrait > img {
  position: absolute;
  /* Focal coordinates are measured from the physical left, including on RTL pages. */
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.player-portrait > img.is-cropped {
  left: var(--portrait-left);
  top: var(--portrait-top);
  width: var(--portrait-width);
  max-width: none;
  height: auto;
}
