/*
 * Gutenberg content adjustments for migrated news articles.
 * Keep editor-selected image widths while remaining responsive on small screens.
 */
body.single-news .single-cnt .wp-block-image.is-resized img {
    width: auto;
    max-width: 100%;
    height: auto;
}

body.single-news .single-cnt .wp-block-image.is-resized img[style*="width:"] {
    height: auto !important;
}

/* Prevent long visible URLs from expanding migrated article layouts. */
body.single-news .single-cnt {
    overflow-wrap: anywhere;
}

/* Keep legacy auto-embedded YouTube players inside the mobile article width. */
body.single-news .single-cnt iframe[src*="youtube.com"],
body.single-news .single-cnt iframe[src*="youtube-nocookie.com"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Keep the featured image readable without stretching it across the full desktop container. */
@media (min-width: 768px) {
    body.single-news .single-head .thumbnail {
        max-width: 100rem;
        margin-right: auto;
        margin-left: auto;
    }
}
