.single-content_author {
    background-image: url("../../image/expert-bg.webp");
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
}

.author-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.author-hero,
.author-hero * {
    box-sizing: border-box;
}

.author-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.author-hero__bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-user-drag: none;
}

.author-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
}

.author-hero__breadcrumbs {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    margin-bottom: 30px;
}

.author-hero__breadcrumbs .breadcrumbs,
.author-hero__breadcrumbs nav,
.author-hero__breadcrumbs span,
.author-hero__breadcrumbs a,
.author-hero__breadcrumbs * {
    color: rgba(119, 145, 178, 0.3);
}

.author-hero__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.author-hero__title {
    margin: 0;
}

.author-hero__grid {
    display: grid;
    grid-template-areas:
        "person position"
        "person body";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    align-items: stretch;
}

.author-hero__visual {
    grid-area: person;
    min-width: 0;
}

.position {
    grid-area: position;
    min-width: 0;
    align-self: end;
    margin-bottom: 0;
}

.author-hero__body {
    grid-area: body;
    min-width: 0;
    align-self: start;
    margin-top: 0;
}

.author-hero__body p:not(:last-child) {
    padding-bottom: 20px;
}

.author-hero__text {
    width: 100%;
}

.author-hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.author-hero__image-container {
    position: relative;
    width: 100%;
}

.author-hero__image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 32px;
}

.author-hero__image-img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.author-hero__ai-label {
    display: none;
    width: 75px;
    position: absolute;
    z-index: 10;
    color: var(--blue-light);
    pointer-events: none;
}

.header-content-author__meta {
    position: absolute;
    right: 0;
    bottom: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 220px;
    z-index: 2;
    text-align: right;
}

.header-content-author__social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-light);
    text-decoration: none;
    transition: 0.3s ease;
}

.header-content-author__social-item:hover {
    color: var(--green);
}

.header-content-author__social-item svg {
    display: block;
    width: 14px;
    height: 20px;
    fill: currentColor;
}

.author-hero__explanation {
    max-width: 520px;
}

.author-hero__explanation > :first-child {
    margin-top: 0;
}

.author-hero__explanation > :last-child {
    margin-bottom: 0;
}

.author-hero__actions {
    margin-top: 30px;
}

.main-inner__author {
    overflow: hidden;
}

.blog-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.blog-posts__empty {
    text-align: center;
    padding: 80px 0;
}

.button-expert {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.contact-form--no-person .container {
    padding-inline: 0;
}

@media (max-width: 1023px) {
    .author-hero__grid {
        grid-template-areas:
            "position person"
            "body body";
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 30px 22px;
        align-items: start;
    }

    .position {
        align-self: center;
        margin-bottom: 0;
        max-width: 365px;
    }

    .author-hero__visual {
        justify-self: end;
    }

    .author-hero__image-wrapper {
        width: 138px;
        max-width: 138px;
    }

    .author-hero__image-container {
        width: 138px;
        height: 138px;
    }

    .author-hero__image {
        width: 138px;
        height: 138px;
        aspect-ratio: 1;
        border-radius: 50%;
        background-image: url("../../image/background-for-authors-photo.webp");
        background-repeat: no-repeat;
        background-position: top;
        background-size: cover;
        transform: none;
        overflow: hidden;
    }

    .author-hero__image-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .author-hero__ai-label {
        display: block;
        top: 0;
        right: 0;
        transform: translate(30px, 0px);
    }

    .author-hero__body,
    .author-hero__text,
    .author-hero__explanation {
        width: 100%;
        max-width: none;
    }

    .author-hero__actions {
        margin-top: 30px;
    }

    .header-content-author__meta {
        position: relative;
        inset: auto;
        margin-top: 15px;
        right: auto;
        bottom: auto;
        max-width: none;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .contact-form--no-person .container {
        padding-inline: var(--container-safe-padding);
    }
}

@media (max-width: 767px) {
    .author-hero {
        padding-top: 130px;
        padding-bottom: 80px;
    }

    .author-hero__breadcrumbs {
        display: none;
    }

    .author-hero__grid {
        grid-template-areas:
            "person"
            "position"
            "body";
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .author-hero__visual {
        justify-self: start;
        width: 100%;
        margin-bottom: 10px;
    }

    .author-hero__image-wrapper {
        width: 100%;
        max-width: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .author-hero__image-container {
        position: relative;
        width: 88px;
        min-width: 88px;
        height: 88px;
    }

    .author-hero__image {
        width: 88px;
        height: 88px;
        aspect-ratio: 1;
        flex-shrink: 0;
        border-radius: 50%;
    }

    .author-hero__image-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .author-hero__ai-label {
        display: block;
        left: 0;
        bottom: 0;
        transform: translate(-25px, 60px);
        text-align: center;
    }

    .header-content-author__meta {
        position: relative;
        inset: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        max-width: none;
        text-align: left;
    }

    .header-content-author__social-item svg {
        width: 16px;
        height: 20px;
    }

    .position {
        text-align: left;
        align-self: auto;
        margin: 0;
    }

    .author-hero__body {
        width: 100%;
    }

    .author-hero__text {
        width: 100%;
    }

    .author-hero__actions {
        margin-top: 30px;
    }
}