@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-heading {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        .heading-container {
            display: flex;
            justify-content: var(--justify);

            .center {
                display: flex;

                .border {
                    background-color: var(--border-color);
                    width: var(--border-size);
                    margin: 8px 10px 3px 0;
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            margin: 0 10px 0 0;
                        }
                    }
                }
    
                @include heading;
            }
        }

        @include message;
    }
}

.acf-block-preview {
    .rdg-heading {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
