////
/// Embed block.
///
/// @group  Blocks
/// @author Sky Shabatura <theme@sky.camp>
/// @link   https://taproot-theme.com
////

.wp-block-embed {
    // Image embeds.
    &.is-type-image {
    }

    // Audio embeds.
    &.is-type-audio {
    }

    // Rich text embeds (text, Twitter, etc.)
    &.is-type-rich {
    }

    // Video embeds.
    &.is-type-video {
    }

    // Caption below embedded content.
    figcaption {
        margin-top: 0.5em;
        text-align: center;
    }
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
