/* SAJA_FULL_TEXT_ALL_CARDS_EXCEPT_ARTICLE_INDEX_V10 */
body :is(
    .news-list-card,
    .news-feature-card,
    .content-feature-card,
    .project-card,
    .service-card,
    .book-card,
    .saja-bottom-link-card,
    .home-cta-card,
    .contact-info-card,
    .about-profile-strip
) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body :is(
    .news-list-card,
    .news-feature-card,
    .content-feature-card,
    .project-card,
    .service-card,
    .book-card,
    .saja-bottom-link-card,
    .home-cta-card,
    .contact-info-card,
    .about-profile-strip
) :is(h1, h2, h3, h4, p, span, .card-title, .card-summary, .news-feature-title, .news-feature-summary) {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

/* Keep article index cards controlled */
.saja-articles-section .saja-article-card {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    overflow: hidden !important;
}

.saja-articles-section .saja-article-card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 3em !important;
}

.saja-articles-section .saja-article-card p,
.saja-articles-section .saja-article-card-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 3.1em !important;
}

@media (max-width: 640px) {
    .saja-articles-section .saja-article-card {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }
}