.agent-photo-frame {
  display: grid;
  place-items: stretch;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #edf0f4;
}
.agent-photo-frame[hidden] { display: none; }
.agent-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: auto;
  object-fit: var(--photo-fit, contain);
  object-position: var(--photo-horizontal, center) var(--photo-vertical, center);
}
.agent-photo-frame[data-fit="cover"] { --photo-fit: cover; }
.agent-photo-frame[data-horizontal="left"] { --photo-horizontal: left; }
.agent-photo-frame[data-horizontal="right"] { --photo-horizontal: right; }
.agent-photo-frame[data-vertical="top"] { --photo-vertical: top; }
.agent-photo-frame[data-vertical="bottom"] { --photo-vertical: bottom; }
