.taPhotoFrameHost {
    overflow: visible !important;
    position: relative !important;
}

.taPhotoFrameHost > img {
    position: relative;
    z-index: 1;
}

.taPhotoFrameHost > .taPhotoFrameOverlay {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    height: 145%;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 145%;
    z-index: 4;
}

#elProfilePhoto {
    overflow: visible !important;
}

#elProfilePhoto > .taPhotoFrameHost {
    overflow: visible !important;
}

.cUserHovercard__header {
    overflow: visible !important;
}

.cUserHovercard__header > a.taPhotoFrameHovercardHost {
    overflow: visible !important;
}

.cUserHovercard__header > a.taPhotoFrameHovercardHost > img.cUserHovercard__photo {
    z-index: 3;
}

.taPhotoFrameHovercardHost > .taPhotoFrameOverlay {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 132px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 15px;
    transform: translate(-50%, -50%);
    width: 132px;
    z-index: 4;
}

.taPhotoFrameGallery {
    min-height: 560px;
}

.taPhotoFrameGallery_grid {
    display: grid;
    gap: 28px 34px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 560px;
    overflow-y: auto;
    padding: 28px 32px 36px;
}

.taPhotoFrameGallery_item {
    cursor: pointer;
    display: block;
    position: relative;
    text-align: center;
}

.taPhotoFrameGallery_item input {
    height: 1px;
    left: 50%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
}

.taPhotoFrameGallery_preview {
    border: 3px solid transparent;
    border-radius: 50%;
    display: inline-block;
    height: 128px;
    position: relative;
    transition: border-color .15s ease, transform .15s ease;
    width: 128px;
}

.taPhotoFrameGallery_preview img {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.taPhotoFrameGallery_overlay {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 145%;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 145%;
    z-index: 2;
}

.taPhotoFrameGallery_item input:checked + .taPhotoFrameGallery_preview {
    border-color: #2d8fcb;
    transform: scale(1.04);
}

.taPhotoFrameGallery_noPermission .taPhotoFrameGallery_item {
    cursor: default;
}

.taPhotoFrameGallery_noPermission .taPhotoFrameGallery_preview {
    opacity: .72;
}

.taPhotoFrameGallery_noPermission .taPhotoFrameGallery_item input:checked + .taPhotoFrameGallery_preview {
    border-color: transparent;
    transform: none;
}

.taPhotoFrameGallery_name {
    display: block;
    margin-bottom: 20px;
    margin-top: 30px;
}

.taPhotoFrameNewBadge {
    background: var(--new-badge--background, #ed7a16);
    border-radius: 3px;
    color: var(--new-badge--color, #fff);
    display: inline-block;
    font-size: 9px;
    line-height: 2;
    margin-right: 4px;
    padding: 0 4px;
    position: relative;
    text-shadow: none;
    top: -2px;
    vertical-align: middle;
}

.taPhotoFrameGallery_footer {
    border-top: 1px solid rgba(0, 0, 0, .08);
}

@media screen and (max-width: 767px) {
    .taPhotoFrameGallery_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 22px 18px 30px;
    }
}
