.cl-avatar-frame-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    overflow: visible;
    isolation: isolate;
}

.cl-avatar-frame-wrap > *:not(.cl-avatar-frame__overlay) {
    position: relative;
    z-index: 1;
}

.cl-avatar-frame__overlay {
    position: absolute;
    inset: -10%;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.cl-avatar-frame__overlay img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.18));
}

.cl-avatar-frame-wrap--wide .cl-avatar-frame__overlay {
    inset: -14%;
}

.cl-avatar-frame-wrap--tight .cl-avatar-frame__overlay {
    inset: -7%;
}

.cl-avatar-frame-wrap--profile .cl-avatar-frame__overlay {
    inset: -12%;
}

.cl-avatar-frame-wrap--story .cl-avatar-frame__overlay {
    inset: -8%;
}

.cl-avatar-frame-wrap--gif .cl-avatar-frame__overlay img {
    image-rendering: auto;
}
