.newsfeed-content {
    overflow-wrap: anywhere;
}

.newsfeed-content > :last-child {
    margin-bottom: 0;
}

.newsfeed-content p,
.newsfeed-content blockquote,
.newsfeed-content ul,
.newsfeed-content ol,
.newsfeed-content figure {
    margin-bottom: 0.75rem;
}

.newsfeed-content blockquote {
    border-left: 3px solid #adb5bd;
    margin-left: 0;
    padding-left: 0.75rem;
}

.newsfeed-content figure.image {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.newsfeed-content img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 24rem;
    max-width: 100%;
    object-fit: contain;
}

.newsfeed-content figcaption {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 0.35rem;
    text-align: center;
}

.newsfeed-video-facade {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #172033, #263758);
    border-radius: 0.375rem;
    display: flex;
    justify-content: center;
    max-height: 24rem;
    overflow: hidden;
    width: 100%;
}

.newsfeed-video-load {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #172033;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
}

.newsfeed-video-load:focus-visible {
    outline: 3px solid #86b7fe;
    outline-offset: 3px;
}

.newsfeed-video-play-icon {
    color: #dc3545;
}

.newsfeed-video-player {
    border: 0;
    height: 100%;
    width: 100%;
}

.newsfeed-content--login {
    max-height: 28rem;
    overflow: hidden;
    position: relative;
}

.newsfeed-content--collapsed:not(.newsfeed-content--expanded)::after {
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 85%);
    bottom: 0;
    content: '';
    height: 2.5rem;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.newsfeed-content--expanded {
    max-height: none;
}

.newsfeed-content--login.newsfeed-content--expanded {
    max-height: none;
}

.newsfeed-content--expanded::after {
    display: none;
}

.newsfeed-expand-toggle {
    display: block;
    margin: 0.25rem auto 0;
}

@media (max-width: 575.98px) {
    .newsfeed-content--login {
        max-height: 18rem;
    }

    .newsfeed-content img,
    .newsfeed-video-facade {
        max-height: 16rem;
    }
}
