.eme-embedded-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 3px;
}

.eme-embedded-video {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Responsive embed wrapper for iframes (Rumble, Imgur, etc.) */
.eme-responsive-embed {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 10px 0;
}

.eme-responsive-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Imgur embeds auto-resize via postMessage — don't force aspect-ratio */
.eme-responsive-embed iframe[src*="imgur.com"] {
    aspect-ratio: auto;
    max-width: 540px;
    min-height: 250px;
}

/* Responsive oEmbed containers */
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
