/* SMV news: listing cards and single post */

.smv-news-card {
    border-radius: .5rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.smv-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12) !important;
}

.smv-news-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Responsive video embeds in posts */
.smv-video {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
}

.smv-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: .5rem;
}

/* Cards: light cards on the white section (body background is dark) */
.smv-news-card {
    background: #fff;
    color: var(--bs-dark, #212529);
}

/* Single post */
.smv-news-single-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.smv-news-single p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.smv-news-single .wp-block-quote {
    border-left: 4px solid var(--bs-primary);
    padding: .25rem 0 .25rem 1.25rem;
    margin: 1.5rem 0;
}

.smv-news-single .wp-block-quote p {
    font-size: 1.25rem;
    font-style: italic;
}

.smv-news-single .wp-block-quote cite {
    font-size: .9rem;
    color: var(--bs-secondary);
}

/* Frontpage "latest news" section: centred "all news" button */
.smv-front-news .btn-lg {
    display: table;
    margin: 2.5rem auto 0;
}
