.blog-card {
    position: relative;
    width: 100%;
    height: 160px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--color-black);

    @media only screen and (min-width: 576px) {
        &.blog-card--big {
            height: calc(160px * 2 + 20px);
            grid-column-start: 1;
            grid-column-end: 3;
            grid-row-start: 1;
            grid-row-end: 3;

            .blog-card__cover::after {
                height: 110px;
            }
        }
    }

    .blog-card__cover {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;

        & img {
            position: absolute;
            z-index: 1;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
            transform: scale(1.01);
            transition: opacity 0.2s ease;
        }

        & img[data-src] {
            opacity: 0;
        }

        &::after {
            content: '';
            position: absolute;
            z-index: 2;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(0deg, rgba(24, 30, 35, 0.70) 0%, rgba(24, 30, 35, 0.00) 100%);
        }
    }

    .blog-card__body {
        position: relative;
        z-index: 2;
        color: var(--color-white);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 8px 12px;
        gap: 4px;

        @media only screen and (min-width: 576px) {
            .blog-card--big & {
                padding: 16px 20px;
                gap: 8px;
            }
        }
    }

    .blog-card__title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;

        @media only screen and (min-width: 576px) {
            .blog-card--big & {
                font-size: 32px;
            }
        }
    }

    .blog-card__date {
        font-size: 10px;
        line-height: 1.3;
        opacity: 0;
        pointer-events: none;

        @media only screen and (min-width: 576px) {
            .blog-card--big & {
                font-size: 16px;
            }
        }
    }
}
