.articles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.articles article:nth-child(1) {
    grid-column: 1/7;
}

.articles article:nth-child(1) .articles--post {
    flex-direction: row;
    align-items: center;
}

.articles article:nth-child(1) .post--image {
    height: 300px;
    min-height: 100%;
}

.articles article:nth-child(2) {
    grid-column: 1/4;
}

.articles article:nth-child(2) .post--image,
.articles article:nth-child(3) .post--image {
    height: 300px;
}

.articles article:nth-child(3) {
    grid-column: 4/7;
}

.articles article:nth-child(2+n) .articles--post {
    flex-direction: column;
}

.articles article {
    grid-column: span 2;
}

.articles {
    margin-bottom: 42px !important;
}

.articles--post {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column-reverse;
    border: 1px solid #E3E3E3;
    border-radius: 5px;
    height: 100%;
    justify-content: flex-end;
}

.articles--post:hover .heading {
    color: var(--liberty);
    transition: 0.1s;
}

.articles article:nth-child(1) .articles--post > div {
    flex: 1;
}

.articles--post > div:first-child {
    padding: 1rem;
}

.post--image {
    height: 200px;
}

.post--image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.post--date + .heading {
    margin-top: 0;
}

.post--date {
    font-size: 14px;
    font-weight: 500;
}

.post--readmore {
    font-weight: bold;
    font-size: 1.5rem;
}

.button.selected {
    background: var(--midnightBlue);
    color: white;
}

.filters {
    margin: 0 24%;
    width: fit-content;
}

.filters > a {
    cursor: pointer;
    font-size: 22px;
}

.filters > a:not(:last-child) {
    margin-right: 12px;
}

.filters > a:not(.selected) {
    border: solid 2px var(--liberty);
    color: var(--liberty);
}

.filters > a.selected {
    border: solid 2px var(--midnightBlue);
}

.filters > span {
    display: block;
    font-size: 20px;
    font-weight: 500;
}

/* single post */
.post > * {
    padding-right: 40%;
    padding-left: 15%;
    max-width: 100%;
}

.post > *:not(.post--thumbnail):not(:first-child) {
    margin-top: 28px;
}

.post > p, .post > ul, .post > ol {
    font-size: 18px;
}

.post--share-links {
    position: fixed;
    top: 45%;
    left: 70%;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    gap: 12px;
}

.post--share-links a {
    background-color: white;
    height: fit-content;
    display: flex;
    transition: 0.1s;
    border-radius: 5px;
}

.post--share-links a:hover {
    background-color: var(--ghostWhite);
    transition: 0.1s;
}

.post--share-links img {
    height: 48px;
    width: auto;
}

.post--header {
    padding-top: 36px;
    padding-bottom: 130px;
    background-color: var(--ghostWhite);
    margin-top: 0;
}

.post--category {
    padding-bottom: 36px;
}

.post--thumbnail {
    --margin: -115px;
    transform: translateY(var(--margin));
    margin-bottom: var(--margin);
    height: 400px;
}

.post--thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.last-articles article {
    background: white;
    align-self: stretch;
}

.last-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem 15% 2rem;
    gap: 1.175rem;
    align-items: baseline;
    z-index: 2;
    background: var(--ghostWhite);
    place-items: center;
    position: relative;
    margin-top: 68px !important;
}

.last-articles article {
    grid-column: span 1;
}

.last-articles > .heading {
    grid-column: 1/4;
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 12px;
}

.last-articles .articles--post .heading {
    font-size: 20px;
    margin: 12px 0;
    transition: 0.1s;
}

.post--excerpt {
    font-size: 15px;
}

.see-more {
    grid-column: 1/4;
    justify-content: center;
    margin-top: 12px;
}

.see-more a {
    padding: 10px 12px;
    font-weight: 500;
}

.see-more a:hover {
    text-decoration: underline;
}

.blog-cover {
    background-color: var(--ghostWhite);
    margin-top: 0;
    padding: 3rem 0;
}

.blog-cover h1 {
    text-align: center;
}

.post--children {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.175rem;
    margin-bottom: 32px;
}

.post > .post--header h1 {
    margin-top: 0;
}

@media screen and (max-width: 1280px) {
    .post--children {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px) {
    .articles {
        display: flex;
        flex-direction: column;
    }

    .post--image {
        height: 200px !important;
    }

    .post--thumbnail {
        margin-bottom: 0;
        transform: translateY(0);
    }

    .articles article:nth-child(1) .articles--post {
        flex-direction: column-reverse;
    }

    .post--share-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .post > * {
        padding: 0;
    }

    .post > .post--header {
        padding: 32px 5% 110px;
        margin-bottom: -120px;
    }

    .post > .post--category {
        padding-bottom: 32px;
        margin-bottom: 0;
    }

    .post > .post--header h1 {
        margin: 0;
    }

    .last-articles {
        display: flex;
        flex-direction: column;
        padding: 2rem 5%;
        margin-top: 36px !important;
    }

    .articles article:nth-child(1) .articles--post {
        align-items: initial;
    }

    .articles article:nth-child(1) .articles--post > div {
        flex: initial;
    }

    .filters {
        margin: 0 5%;
    }

    .filters > * {
        font-size: 20px !important;
    }

    .mobile-bottom-margin {
        margin-bottom: 32px !important;
    }
}