/* Candidate avatar — base render rules.
 * Helper outputs either:
 *   <img class="wi-avatar">                  (legacy / no crop set)
 *   <div class="wi-avatar wi-avatar--cropped" style="background-...">  (cropped)
 *
 * Round shape and aspect ratio come from here so both branches look identical.
 */
.wi-avatar {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.wi-avatar--cropped {
    /* background-image / size / position supplied via inline style attr */
}

/* Video card: cropped avatar acts as the poster behind the video element. */
#video_container { position: relative; }
#video_container .wi-avatar-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#video_container video {
    position: relative;
    z-index: 1;
    background: transparent;
}
