.rst-socialfeed {
    width: 100%;
}

.rst-socialfeed__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.rst-socialfeed__post {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.rst-socialfeed__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.rst-socialfeed__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.rst-socialfeed__media:hover img {
    transform: scale(1.03);
}

.rst-socialfeed__body {
    padding: .8rem;
}

.rst-socialfeed__platform {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.rst-socialfeed__text {
    margin: 0;
    line-height: 1.45;
}

.rst-socialfeed__date {
    display: block;
    margin-top: .45rem;
    font-size: .75rem;
    opacity: .65;
}

.rst-socialfeed__count,
.rst-socialfeed__video-icon {
    position: absolute;
    right: .65rem;
    top: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .75rem;
}

.rst-socialfeed__video-icon {
    left: .65rem;
    right: auto;
    top: auto;
    bottom: .65rem;
}

.rst-socialfeed__video-placeholder,
.rst-socialfeed__no-media {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #222;
}

.rst-socialfeed--masonry .rst-socialfeed__grid {
    display: block;
    columns: 1;
}

.rst-socialfeed--masonry .rst-socialfeed__post {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.rst-socialfeed--carousel .rst-socialfeed__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.rst-socialfeed--carousel .rst-socialfeed__post {
    flex: 0 0 82%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .rst-socialfeed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rst-socialfeed--masonry .rst-socialfeed__grid {
        columns: 2;
    }

    .rst-socialfeed--carousel .rst-socialfeed__post {
        flex-basis: 48%;
    }
}

@media (min-width: 992px) {
    .rst-socialfeed__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rst-socialfeed--masonry .rst-socialfeed__grid {
        columns: 3;
    }

    .rst-socialfeed--carousel .rst-socialfeed__post {
        flex-basis: 31%;
    }
}
