.portrait-container {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.portrait-container.portrait-container-small {
    width: 100px;
    height: 100px;
}

.portrait-container.portrait-container-mini {
    width: 80px;
    height: 80px;
}

.portrait-mask {
    position: absolute;
    width: 80%;
    height: 80%;
    bottom: 0;
    left: 10%;
    border-radius: 100%;
    background: rgba(var(--support-color), 0.8);
    z-index: 1;
    pointer-events: none;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: path('M20 0 L20 120 A80 80 0 0 0 100 200 A80 80 0 0 0 180 120 L180 120 L180 0 L20 0 Z');
    -webkit-clip-path: path('M20 0 L20 120 A80 80 0 0 0 100 200 A80 80 0 0 0 180 120 L180 120 L180 0 L20 0 Z');
}

.portrait-container-small .portrait-wrapper {
    clip-path: path('M10 0 L10 60 A40 40 0 0 0 50 100 A40 40 0 0 0 90 60 L90 60 L90 0 L10 0 Z');
    -webkit-clip-path: path('M10 0 L10 60 A40 40 0 0 0 50 100 A40 40 0 0 0 90 60 L90 60 L90 0 L10 0 Z');
}

.portrait-container-mini .portrait-wrapper {
    clip-path: path('M8 0 L8 48 A32 32 0 0 0 40 80 A32 32 0 0 0 72 48 L72 48 L72 0 L8 0 Z');
    -webkit-clip-path: path('M8 0 L8 48 A32 32 0 0 0 40 80 A32 32 0 0 0 72 48 L72 48 L72 0 L8 0 Z');
}

.portrait-bg-circle {
    height: 80%;
    top: 20%;
    left: 10%;
    width: 80%;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.portrait-wrapper img{
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: upDown 3s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.portrait-wrapper img:hover{
    cursor: pointer;
    animation: none;
    transform: translateY(0px)!important;
}

@keyframes upDown {
    0%, 100% {
        transform: translateY(5px);
    }
    50% {
        transform: translateY(8px);
    }
}
