.block-profile {
    position: relative;
    max-width: 480px;
    border-radius: 4px;
}

.block-profile__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 480/560;
    object-fit: cover;
    border-radius: inherit;
}
.block-profile__content {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--wp--preset--color--grey-98);
    width: 271px;
    padding-top: 24px;
    padding-right: 24px;
    border-top-right-radius: inherit;
}
.block-profile__content::before,
.block-profile__content::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-bottom-left-radius: 4px;
    background: transparent;
    box-shadow: -2px 1px 0 0 var(--wp--preset--color--grey-98);
}
.block-profile__content::before {
    top: -8px;
    left: 0;
}
.block-profile__content::after {
    bottom: 0;
    right: -8px;
}

.block-profile__title {
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--wp--preset--color--blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.page-type--retention .block-profile__title {
    color: var(--wp--preset--color--red);
}

.block-profile__name {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.block-profile__description {
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
    margin-top: 4px;
}


@media screen and (max-width: 991px) {
    .block-profile {
        max-width: none;
    }
    .block-profile__image {
        aspect-ratio: 435/407;
        object-position: top center;
    }

    .block-profile__content {
        width: auto;
        left: 64px;
        right: 64px;
        padding: 16px 16px 0;
        border-top-left-radius: 4px;
        max-width: 298px;
    }
    .block-profile__content::before {
        top: auto;
        left: -8px;
        bottom: 0;
        border-bottom-right-radius: 4px;
        border-bottom-left-radius: 0;
        box-shadow: 1px 2px 0 0 var(--wp--preset--color--grey-98);
    }

    .block-profile__title {
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 767px) {
    .block-profile__image {
        aspect-ratio: 335/407;
    }
    .block-profile__content {
        max-width: none;
        left: 18px;
        right: 18px;
    }
}
