[data-embedded="video"] {
    position: relative;
    &:has( iframe) {
        aspect-ratio: 16 / 9;
    }
    margin: 0 auto;
    width: 100%;
    max-width: 750px;

    iframe {
        @include o-position-absolute(0, 0, 0, 0);
        width: 100% !important;
        height: 100%;
        min-height: auto !important;
    }

    &.media_iframe_video_size_for_vertical {
        max-width: 315px;
        &:has(iframe) {
            aspect-ratio: 9 / 16;
        }
    }
}
