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

.wp-block-group {

    &.has-background, &[style*=background-color] {

        @extend .has-block-padding;

        .wp-block-group__inner-container {

            > :first-child {
                margin-top: 0;
            }

            > :last-child {
                margin-bottom: 0;
            }
        }
    }

    &__inner-container {
        max-width: var(--content-width);
        margin-left: auto;
        margin-right: auto;

        .alignfull & {
            max-width: min( var(--container-max-width), var(--container-width) );
        }
    }
}
