/*
 * Global Appon + WPBakery nested full-width fix
 *
 * Fixes full-width rows placed inside full-width sections.
 * Applies across the entire site.
 */

.vc_section[data-vc-full-width="true"]
> .vc_row[data-vc-full-width="true"] {
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Standard contained rows on large screens */
@media (min-width: 1200px) {
    .vc_section[data-vc-full-width="true"]
    > .vc_row[data-vc-full-width="true"]:not([data-vc-stretch-content="true"]) {
        padding-left: calc((100vw - 1170px) / 2) !important;
        padding-right: calc((100vw - 1170px) / 2) !important;
    }
}

/* Standard contained rows on medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .vc_section[data-vc-full-width="true"]
    > .vc_row[data-vc-full-width="true"]:not([data-vc-stretch-content="true"]) {
        padding-left: calc((100vw - 970px) / 2) !important;
        padding-right: calc((100vw - 970px) / 2) !important;
    }
}

/* Standard contained rows on tablet screens */
@media (min-width: 768px) and (max-width: 991px) {
    .vc_section[data-vc-full-width="true"]
    > .vc_row[data-vc-full-width="true"]:not([data-vc-stretch-content="true"]) {
        padding-left: calc((100vw - 750px) / 2) !important;
        padding-right: calc((100vw - 750px) / 2) !important;
    }
}

/* Standard contained rows on mobile */
@media (max-width: 767px) {
    .vc_section[data-vc-full-width="true"]
    > .vc_row[data-vc-full-width="true"]:not([data-vc-stretch-content="true"]) {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Rows intentionally configured to stretch their content */
.vc_section[data-vc-full-width="true"]
> .vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}