/* Fold */

.fold {
    margin-top: 151px;
}

.fold > div {
    border-radius: var(--radius-l);

    background-color: var(--color-01);
    background: var(--gradient-01);

    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);

    padding: var(--space-xxl);
}

.fold > div > .c-heading {
    color: var(--color-03);
}

.fold-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.fold-breadcrumbs > a,
.fold-breadcrumbs > span {
    color: var(--color-03);
}

.fold-breadcrumbs > img {
    height: 12px;
}

/* Sections wrapper */

.sections-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xxl);

    padding: var(--space-xxl);
}

/* Posts */

.posts {
    width: calc((2 * ((100% / 3) - ((2 * var(--space-xxl)) / 3))) + var(--space-xxl));

    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
}

.posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xxl);
}

.post {
    width: calc(50% - (var(--space-xxl) / 2));

    border: 1px solid var(--color-05);
    border-radius: var(--radius-l);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transition: var(--transition-02);
    -webkit-transition: var(--transition-02);
}

.post:hover {
    box-shadow: var(--box-shadow-01);
}

.post._mobile-only {
    display: none;
}

.post-thumbnail-wrapper {
    height: 250px;

    display: flex;

    position: relative;
}

.post-thumbnail-wrapper::before {
    content: "";

    width: 100%;
    height: 100%;

    position: absolute;

    background-color: rgba(41, 135, 249, 0.2);

    top: 0;
    left: 0;

    z-index: 1;
}

.post-thumbnail-wrapper > img {
    width: 100%;
    height: 100%;

    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.post-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);

    padding: var(--space-xxl);
}

.post-main-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.post-main-top > .c-subheading {
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;

    white-space: nowrap;

    overflow-x: hidden;
}

.post-main-top > p {
    box-orient: vertical;
    -webkit-box-orient: vertical;
    
    line-clamp: 3;
    -webkit-line-clamp: 3;

    text-overflow: ellipsis;

    white-space: normal;

    display: -webkit-box;
    
    overflow: hidden;
}

.post-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-metadata > a {
    color: var(--color-01);

    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.post-metadata > a > img {
    height: 12px;

    transition: var(--transition-02);
    -webkit-transition: var(--transition-02);
}

.post-metadata > a:hover > img {
    margin-left: var(--space-xxs);
}

.load-more-btn-wrapper {
    display: flex;
}

/* Sidebar */

.sidebar {
    width: calc(((100% / 3) - ((2 * var(--space-xxl)) / 3)));

    border: 1px solid var(--color-05);
    border-radius: var(--radius-l);

    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);

    padding: var(--space-xxl);

    overflow: hidden;

    transition: var(--transition-02);
    -webkit-transition: var(--transition-02);
}

.sidebar:hover {
    box-shadow: var(--box-shadow-01);
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.sidebar-block-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

@media only screen and (max-width: 1000px) {
    /* Sections wrapper */

    .sections-wrapper {
        flex-direction: column;
    }

    /* Posts */

    .posts {
        width: 100%;
    }

    .post {
        width: calc(50% - (var(--space-xxl) / 2));
    }

    .post-thumbnail-wrapper {
        height: 250px;
    }
    
    /* Sidebar */

    .sidebar {
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    /* Fold */

    .fold-breadcrumbs {
        flex-direction: column;
        align-items: flex-start;
    }

    .fold-breadcrumbs > img {
        display: none;
    }

    /* Posts */

    .posts {
        flex-direction: column;
    }

    .post {
        width: 100%;
    }
}