.main-home-blog {
    overflow: visible;
}

.main-home-blog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}

.main-home-blog__cell {
    min-width: 0;
    overflow: visible;
    display: flex;
}

.main-home-blog__cell--featured {
    grid-column: span 2;
}

.main-home-blog__cell--span-2 {
    grid-column: span 2;
}

.main-home-blog__cell--span-4 {
    grid-column: span 4;
}

@media screen and (max-width: 1288px) {
    .main-home-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-home-blog__cell--featured,
    .main-home-blog__cell--span-2,
    .main-home-blog__cell--span-4 {
        grid-column: span 2;
    }
}

@media screen and (max-width: 864px) {
    .main-home-blog__grid {
        grid-template-columns: 1fr;
    }

    .main-home-blog__cell--featured,
    .main-home-blog__cell--span-2,
    .main-home-blog__cell--span-4 {
        grid-column: span 1;
    }
}

.main-home-blog__card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.main-home-blog__card.article-item .text {
    overflow: visible;
}

.main-home-blog__card .brief:not(.truncated) {
    overflow: visible;
}

.main-home-blog__card .image {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: block;
    overflow: hidden;
}

.main-home-blog__card .background-image {
    display: block;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.main-home-blog__card--featured .image {
    height: 348px;
}

.main-home-blog__card--regular .image {
    height: 170px;
}

.main-home-blog__card .text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 20px;
    position: relative;
}

.main-home-blog__card .title {
    margin-bottom: 10px;
}

.main-home-blog__card .brief-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.main-home-blog__card .brief-wrapper:hover {
    z-index: 5;
}

.main-home-blog__card .brief {
    color: #777;
}

.main-home-blog__card .brief p {
    margin: 0;
}

.main-home-blog__card .brief.truncated {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.main-home-blog__card--regular:not(.main-home-blog__card--row-head) .brief.truncated {
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media screen and (min-width: 1289px) {
    .main-home-blog__card--row-head .text {
        flex: 1 1 auto;
        min-height: 0;
    }

    .main-home-blog__card--row-head .brief-wrapper {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .main-home-blog__card--row-head .brief {
        flex: 1 1 auto;
        min-height: 0;
        line-height: 18px;
    }
}

.main-home-blog__card--featured .brief.truncated {
    line-height: 18px;
    max-height: 144px;
}

.main-home-blog__card .brief.truncated::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.main-home-blog__card .tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    background: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-width: min(100%, 420px);
    box-sizing: border-box;
    color: #777;
    font-size: 14px;
    line-height: 18px;
    white-space: normal;
    pointer-events: none;
}

.main-home-blog__card .tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

.main-home-blog__card--regular .title {
    height: 60px;
    line-height: 20px;
}

.main-home-blog__card--featured .title {
    line-height: 20px;
    max-height: 60px;
}

.main-home-blog__card .bottom-panel {
    margin-top: auto;
    position: static;
}

@media screen and (min-width: 865px) and (max-width: 1288px) {
    .main-home-blog__card--featured .image {
        border-bottom-left-radius: 5px;
        border-top-right-radius: 0;
        float: left;
        height: 230px;
        width: 50%;
    }

    .main-home-blog__card--featured .text {
        overflow: visible;
        height: 230px;
    }

    .main-home-blog__card--regular .image {
        height: 230px;
    }
}

@media screen and (max-width: 864px) {
    .main-home-blog__card .text {
        padding: 16px;
    }

    .main-home-blog__card--featured .image,
    .main-home-blog__card--regular .image {
        height: 170px;
    }

    .main-home-blog__card--regular .title {
        height: auto;
        max-height: none;
    }
}

@media screen and (max-width: 440px) {
    .main-home-blog__card--featured .text {
        height: auto;
    }
}
