@media (min-width: 1680.02px) {
    #header .pre-header .container:after {
        left: 0;
        width: 100%;
        -webkit-transform: none;
        transform: none;
    }
}

@media (max-width: 1270px) {
    #header .pre-header .container:after {
        width: calc(100% - 30px);
    }
}

@media (min-width: 768px) and (max-width: 1270px) {
    #header .pre-header .container:after {
        height: 6px;
        background-size: 100% auto;
    }
}

:root {
    --header-h: 262px;
}

html {
    scroll-padding-top: 130px;
}

#content,
.logged-in #content {
    padding-top: var(--header-h);
}

@media (max-width: 1559.98px) {
    :root {
        --header-h: 258px;
    }
    html {
        scroll-padding-top: 126px;
    }
}

@media (max-width: 1199.98px) {
    :root {
        --header-h: 186px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-h: 167px;
    }
    html {
        scroll-padding-top: 107px;
    }
}

.logged-in .pre-header {
    bottom: 0;
}

@media screen and (min-width: 783px) {
    .admin-bar #header {
        top: 32px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

@media (min-width: 1200px) {
    #header .main-header .row > .col-xl-2,
    #header .main-header .row > .col-lg {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    #header .primary-menu {
        flex: 1 1 auto;
        padding-left: 0;
        padding-right: 0;
    }
    #header .primary-menu > ul.menu {
        flex: 1 1 auto;
        justify-content: space-between;
        margin-left: 55px;
        margin-right: 30px;
    }
    #header .header-right .btn {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1559.98px) {
    #header .primary-menu > ul.menu {
        margin-left: 38px;
        margin-right: 30px;
    }
}

#header {
    -webkit-transition: -webkit-transform .34s cubic-bezier(.4, 0, .2, 1), box-shadow .34s ease;
    transition: transform .34s cubic-bezier(.4, 0, .2, 1), box-shadow .34s ease;
}

#header .main-header {
    -webkit-transition: padding .34s cubic-bezier(.4, 0, .2, 1);
    transition: padding .34s cubic-bezier(.4, 0, .2, 1);
}

.post-header {
    overflow: hidden;
    -webkit-transition: height .34s cubic-bezier(.4, 0, .2, 1), padding .34s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
    transition: height .34s cubic-bezier(.4, 0, .2, 1), padding .34s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

#header.sticky .post-header {
    height: 0;
    padding-bottom: 0;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #header,
    #header .main-header,
    .post-header {
        -webkit-transition: none;
        transition: none;
    }
}
