.masonry .boxed {
    padding-bottom: 20px;
}

.masonry .boxed > .heading, .masonry .boxed > .content {
    display: flex;
    justify-content: center;
}

.masonry .boxed > .heading {
    font-size: 64px;
    font-weight: 500;
    line-height: 72px;
    letter-spacing: -5.12px;
    margin-bottom: 6px;
}

.masonry .boxed > .content * {
    font-size: 36px;
    line-height: normal;
    font-family: Instrument-400, sans-serif;
}

.masonry .boxed > .content *:last-child {
    margin-bottom: 0;
}

.masonry .boxed .content {
    margin-bottom: 80px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 10px;
    gap: 40px;
}

.masonry-grid > * {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.masonry-grid .masonry-item {
    box-sizing: border-box;
    position: relative;
}

.masonry-grid .masonry-item img {
    margin-bottom: 26px;
}

.masonry-grid .masonry-item .heading {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -2.24px;
    margin-bottom: 12px;
}

.masonry-grid .masonry-item .date {
    color: var(--plum);
    font-family: Instrument-400, sans-serif;
    font-size: 24px;
    line-height: normal;
    margin-bottom: 14px;
}

.masonry-grid .masonry-item .readingtime {
    margin-bottom: 14px;
}

.masonry-grid .masonry-item .content {
    margin-bottom: 40px;
}

.masonry-grid .masonry-item .btn {
    max-width: fit-content;
    cursor: pointer;
}

.masonry-item .theme-tags {
    position: absolute;
    top: 1em;
    left: 1.5em;
}

/* filters */
.masonry-filters {
    margin-bottom: 4rem;
}

.filter-group {
    margin-bottom: .75rem;
    text-align: center;
}

.masonry-item {
    transition: opacity 0.3s ease;
}

.masonry-item.hidden {
    display: none;
}


@media (max-width: 789px) {
    .masonry .boxed > .heading {
        font-size: 32px;
        line-height: 46px;
        letter-spacing: -1.92px;
        text-align: center;
    }
    .masonry .boxed > .content * {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        display: block;
    }
    
    .masonry-grid .masonry-item .btn {
        font-size: 16px;
    }

    .masonry-grid .masonry-item {
        margin-bottom: 3em;
    }
}