
body {
    @include if-rtl {
        direction: rtl;
        unicode-bidi: embed;
        text-align: right;
    }
    background: if-light(#fff, #000);
}

body.wide {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: $grid-gutter-width;
        padding-right: $grid-gutter-width;
    }
}

.porto-wrap-container {
    .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media #{$screen-medium} {
    .container {
        width: 100%;
    }
}

.page-wrapper {
    position: relative;
    #{$left}: 0;

    &.side-nav {
        > * {
            @media (min-width: 992px) {
                padding-#{$left}: 256px;
            }
        }

        @media (min-width: 992px) {
            .container {
                width: 100%;
                max-width: 100%;
            }
        }
    }
}

body:not(.boxed) .side-nav {
    @media (min-width: 992px) {
        .vc_row[data-vc-stretch-content] {
            padding-left: 0 !important;
            padding-right: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
        }
    }
}

.header-wrapper {
    position: relative;
}

.column2-left-sidebar,
.column2-left-sidebar {
    .main-content {
        float: $right;

        @media #{$screen-normal} {
            float: none;
        }
    }
}

.left-sidebar,
.right-sidebar {
    position: relative;
}

#main {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    background: if-light(#fff, $dark-bg);

    body.wide & {
        max-width: 100%;
    }

    &.wide {
        .vc_row {
            margin-left: 0;
            margin-right: 0;
        }
        .container .vc_row {
            margin-left: -($grid-gutter-width / 2);
            margin-right: -($grid-gutter-width / 2);
        }
        .ads-container.vc_row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        .main-content {
            padding: 0;
        }

        > .container {
            > .row {
                margin-left: -($grid-gutter-width / 2);
                margin-right: -($grid-gutter-width / 2);
            }
        }
    }

    &.boxed {
        .porto-container {
            padding-left: 0;
            padding-right: 0;
            width: 100%;
        }
    }
}

.main-content {
    padding-top: 35px;
    padding-bottom: 40px;

    .no-breadcrumbs &,
    body.woocommerce & {
        padding-top: 20px;
    }
}
.left-sidebar,
.right-sidebar {
    padding-top: 35px;
    padding-bottom: 40px;
	margin-bottom: 35px;
    
	.no-breadcrumbs &,
    body.woocommerce & {
        padding-top: 20px;
    }
}
.left-sidebar,
.right-sidebar {
    @media #{$screen-normal} {
        &,
        .no-breadcrumbs &,
        body.woocommerce & {
            padding-top: 0;
            margin-top: -40px;
        }
    }
}

.content-bottom-wrapper {
    padding-bottom: 20px;
}
#banner-wrapper,
#content-top,
#content-bottom,
#content-inner-top,
#content-inner-bottom {
    .ult-carousel-wrapper {
        margin-bottom: 20px;

        .vc_single_image-wrapper {
            width: 100%;

            img {
                width: 100%;
            }
        }
    }
}

#content-top,
#content-bottom {
    overflow: hidden;
    background: if-light(#fff, $color-dark);
}

body.modal-open {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.clearfix {
    overflow: visible;
}

.porto-container {
    @media #{$screen-medium} {
        padding-left: 0;
        padding-right: 0;
    }
}

.page-wrapper.coming-soon {
    #header .header-top {
        display: block;
        .container {
            min-height: 50px;
        }
        .header-contact {
            display: block;
        }
        @media #{$screen-medium} {
            .header-right {
                display: none;
            }
        }
    }
    #footer .footer-bottom {
        background: transparent;
    }
}
