/* Use the same framing geometry in the editor and public trainer cards. */
.trainer-photo-frame {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.trainer-photo-frame > .trainer-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--trainer-photo-x, 50%) var(--trainer-photo-y, 50%);
    transform-origin: var(--trainer-photo-x, 50%) var(--trainer-photo-y, 50%);
    transform: scale(var(--trainer-photo-zoom, 1));
    border-radius: 0;
}

.trainer-photo-frame[hidden] {
    display: none;
}
