
#bg-slider {
    position: fixed;
    overflow: hidden;
    width: 100%;
    z-index: 0;
}

#wrapper {
    position: relative;
    z-index: 10;
}

.wrapper-boxed {
    width: 1170px;
    margin: 0 auto;
    @include box-shadow($wrapper-shadow);

    @media #{$screen-large} {
        width: 970px;
    }

    @media #{$screen-normal} {
        width: 750px;
    }

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

#main {
    position: relative;
    z-index: 0;
    padding: 50px 0 120px;

    @media #{$screen-medium} {
        padding-bottom: 70px;
    }

    body.archive.woocommerce & {
        padding-top: 35px;
    }

    &.wide {
        padding-top: 0;
        padding-bottom: 0;

        .entry-content { /*margin-bottom: 0;*/ }
        h1.page-title {
            margin-bottom: 35px;
            margin-top: 50px;
        }
    }

    .error404 & {
        padding-top: 0;
        padding-bottom: 0;
    }
}

h1,
h2 {
    line-height: 1.2;
    position: relative;
    margin-bottom: 20px;

    &.page-title,
    &.entry-title,
    &.content-title,
    &.wpb_heading {
        font-size: $title-font-size;
        line-height: 50px;
        padding-left: 12px;
        margin-bottom: 34px;
        position: relative;

        @media #{$screen-normal} {
            font-size: 38px;
            line-height: 46px;
        }

        @media #{$screen-medium} {
            font-size: 30px;
            line-height: 36px;
            margin-bottom: 24px;
            padding-left: 10px;
        }

        &.line-heading {
            padding-right: 105px;

            @media #{$screen-medium} {
                padding-right: 90px;
            }
        }

        &:before {
            content: "";
            position: absolute;
            width: 4px;
            left: 0;
            top: 7px;
            bottom: 6px;
            margin: auto;

            @media #{$screen-normal} {
                top: 6px;
                bottom: 6px;
            }

            @media #{$screen-medium} {
                top: 4px;
                bottom: 4px;
            }
        }

        .shortcode-brands &,
        .shortcode-persons &,
        .product-slider &,
        .related-slider & {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }

    &.content-title {
        margin-bottom: 20px;
    }

    &.noborder {
        text-transform: uppercase;
        padding-left: 0;

        &:before {
            display: none;
        }
    }
}

#content-top {
    margin-bottom: 70px;
}

#content-bottom {
    margin-top: 70px;

    #main.wide & {
        padding-bottom: 120px;

        @media #{$screen-medium} {
            padding-bottom: 70px;
        }
    }
}

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

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

.main-content {
    position: relative;
    z-index: 0;
}

.left-sidebar {
    position: relative;

    @media #{$screen-medium} {
        margin-top: 60px;
    }
}

.right-sidebar {
    position: relative;

    @media #{$screen-medium} {
        margin-top: 60px;
    }

    body.blog &,
    body.archive &,
    body.search &,
    body.search-results &{
        margin-top: 83px;

        @media #{$screen-medium} {
            margin-top: 60px;
        }
    }
}

.left-sidebar,
.right-sidebar {
    body.archive.woocommerce & {
        margin-top: -10px;

        @media #{$screen-medium} {
            margin-top: 60px;
        }
    }
}
