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

.wp-block-image {
    img {
        max-width: 100%;
        display: block;
    }

    figure {
        &.alignleft,
        &.alignright {
            margin-top: 0;
        }
    }

    &.aligncenter {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    &.is-resized {
        width: min-content;

        img {
            max-width: none;
        }
    }
}
