.c-author {
    background: var(--w-color);
}

.c-author > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 40px;
    z-index: 3;
}

.c-author .container .c-author__content-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.c-author .container .c-author__content .overline {
    color: var(--s-color);
    display: block;
    font-size: 18px;
    margin-bottom: 24px;
}

.c-author .container .c-author__content-name .h2 {
    color: var(--p-color);
    padding: 0;
}

.c-author .container .c-author__content .body {
    color: var(--p-color);
    margin-bottom: 0;
}

.c-author .container .c-author__content .h4 {
    display: block;
    margin-bottom: 24px;
}

.c-author.c-author__content-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-author .c-author__content-social a {
    display: block;
    height: 24px;
}

.c-author .c-author__content-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.c-author .c-author__content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.c-author .c-author__content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.c-author .bg-diagonal {
    transform-origin: bottom;
    background: var(--t1-color);
    height: 100%;
    display: block;
    width: 100%;
    position: absolute;
    z-index: 0;
    transform: skewY(-7deg);
    z-index: 2;
}

.c-author .bg-diagonal-white {
    transform-origin: bottom;
    background: #fff;
    height: 20%;
    display: block;
    width: 100%;
    position: absolute;
    z-index: 0;
    transform: skewY(5deg);
    z-index: 1;
}

.c-author .c-author__content-posts {
    background: var(--t1-color);
    padding-bottom: 50px;
}

.c-author .c-author__content-posts .container {
    padding-top: 50px !important; /* override the default padding-top */
    z-index: 3;
}

.c-author .c-author__content-posts .h2 {
    color: var(--p-color);
    margin-bottom: 0;
    text-align: center;
}

.c-author .c-author__content-posts .h2 span {
    color: var(--s-color);
}

.c-author .c-author__content-posts .c-author__content-posts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.c-author .c-author__content-posts .c-author__card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-image a{
    display: block;
    width: 100%;
    height: 300px;
} 

.c-author .c-author__content-posts .c-author__card .c-author__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    text-align: left;
    justify-content: flex-start;
    margin-top: 24px;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content .overline {
    color: var(--s-color);
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content .h2 {
    color: var(--p-color);
    text-align: left;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content .p {
    color: var(--p-color);
    margin-bottom: 0;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content .body {
    color: var(--p2-color);
    margin: 0;
}

.c-author .c-author__content-posts .c-author__card .c-author__card-content > * {
    width: 100%;
}

.c-author .c-author__content-posts .o-button {
    text-align: center;
    margin: 40px auto 0;
    width: fit-content;
    display: flex;
}


/* Hide posts beyond initial limit */
.author-post-hidden {
    display: none !important;
}

@media screen and (min-width: 768px) {
    .c-author .c-author__content-posts .c-author__card {
        width: calc(100% / 2 - 20px);
    }

    .c-author .c-author__content-posts {
        margin-top: 50px;
    }
}

@media screen and (min-width: 1024px) {
    .c-author > .container {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 80px;
        padding-top: 100px !important; /* override the default padding-top */
    }

    .c-author .c-author__content-posts .container {
        padding-top: 100px !important; /* override the default padding-top */
    }

    .c-author .c-author__content-posts .c-author__content-posts-list {
        margin-top: 60px;
        gap: 40px;
    }

    .c-author .c-author__content-posts .o-button {
        margin-top: 80px;
    }
}