.author, .author__content {
    width: 100%;
    background-color: var(--color-white);
}

.author__container {
    display: flex;
    column-gap: 40px;
    padding-block: 40px;
}

.author__container, .author__wrapper {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 15px;
}

.author__photo {
    width: 200px;
    height: 200px;
    border-radius: 100%;
    object-fit: cover;
    object-position: center;
}

.author__about {
    display: flex;
    flex-direction: column;
}

.author__name {
    color: var(--color-text);
    font-family: var(--second-font);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

.author__discription {
    color: var(--color-text);
    font-family: var(--primary-font);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

.author__about .button {
    width: max-content;
    margin-top: 15px;
}

.author__wrapper {
    display: grid;
    grid-template-columns: 1fr .4fr;
    column-gap: 30px;
}

.author__posts {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.author__post {
    position: relative;
}

.author__post:not(:nth-child(1)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 350px;
    column-gap: 20px;
}

.author__post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.author__post:not(:nth-child(1)) > .author__post-image {
    height: 100%;
    max-height: 100%;
}

.author__post-title {
    color: var(--color-text);
    font-family: var(--second-font);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;

    margin-top: 10px;
}

.author__post-title:hover, .author__post-title:focus {
    color: var(--color-olive-green);
}

.author__post-title > a {
    color: inherit;
}

.author__post-title > a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.author__post-text {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-top: 10px;
}

.author__post-category {
    position: relative;
    color: var(--color-text);
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 1.7;
    z-index: 2;

    opacity: .7;
}

.author__post-category:hover, .author__post-category:focus {
    opacity: 1;
    color: var(--color-olive-green);
}

.author__sidebar > .category-posts__title {
    margin-bottom: 20px;
}

.author__sidebar-posts {
    display: flex;
    flex-direction: column;
    row-gap: 40px;

    padding-bottom: 40px;
}

.author__sidebar-posts .post {
    height: 230px;
}

.author__sidebar-posts .post::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -20px;
    
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

@media screen and (max-width: 991px) {
    .author__container {
        flex-direction: column;
        align-items: center;
    }

    .author__about {
        align-items: center;
        text-align: center;
    }

    .author__wrapper {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .author__sidebar-posts .post {
        height: 500px;
    }
}