@media only screen and (max-width: 1400px) {

    .container {
        width: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    .fullweb {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .works_grid {
        grid-column-gap: 1.5em;
        grid-row-gap: 1.5em;
    }

    .portfolioPage {
        flex-direction: column-reverse;
    }

    .portfoliosPage {
        flex-direction: column;
    }

    #sidebar,
    #mainbar {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }

    #mainbar,
    #sidebar {
        padding: 0;
    }

    #mainbar {
        padding: 10px !important;
    }
    .brandline {
        padding: 10px;
        border: 0;
        margin: 0 auto;
    }

    .backbtn {
        display: none;
    }

    .brandline > h1 {
        font-size: 22px;
        font-weight: bold;
        line-height: 31px;
        margin: 0 0 10px;
        padding: 0 9px;
        text-align:center;
    }

    .brandcount {
        border: 0;
        padding: 10px;
        margin: 0;
    }

        .brandcount aside {
            font-size: 14px;
            text-align: center;
        }

            .brandcount aside b {
                font-size: 24px;
                text-align: center;
            }

    .brandline .brandlogo {
        max-width: 100px;
        margin: 0 auto;
    }

    .brandline > h1 > svg {
        width: 42px;
        height: 42px;
    }

    .branddes > h1 {
        text-align: right;
        font-size: 23px;
        margin: 0;
        padding: 10px;
    }

    .branddes > p {
        padding: 0 10px;
        font-size: 14px;
        line-height: 28px;
        margin: 0 auto;
        text-align: center;
    }

    
}

@media only screen and (max-width: 992px) {
    .works_grid {
        grid-column-gap: 1em;
        grid-row-gap: 1em;
    }

    .postdet > ul > li > label, .brandpost svg, .brandpost img {
        display: none;
    }

    .bigdet{
        max-width:90vw;
        padding-top:0px;
        margin-top:0px;
    }

    .brands {
        max-width: 100vw;
        padding: 15px;
    }

        .brands > aside {
            width: 33%;
            padding: 3vw;
        }

    .faces {
        max-width: 100vw;
    }

        .faces > aside {
            width: 50%;
            padding: 10px;
        }

    .facecover {
        height: auto;
    }

    .facedet {
        padding: 15px 20px;
    }

        .facedet h2 {
            font-size: 16px;
        }

        .facedet small {
            font-size: 13px;
            display: block;
            line-height: 20px;
            opacity: 0.6;
        }
}

@media only screen and (max-width: 700px) {
    .sw_pages {
        padding-bottom: 100px !important;
    }

    footer {
        display: none;
    }

    #cursor {
        display: none;
    }

    header .logo {
        width: 175px;
        margin: -3px 0;
        top: 19px;
        right: 20px;
    }

    .nav-item {
        display: none;
    }

    .navbar-nav.headermenu {
        left: 15px;
        top: 32px
    }

    .HideInMobile {
        display: none;
    }

    .ShowInMobile {
        display: block;
    }

    .brandpost svg, .brandpost img {
        display: none;
    }



    #mainbar.portfo {
        order: 1;
    }

    #sidebar.portfo {
        order: 2;
    }



    body {
        padding-top: 50px;
    }

    header .logomobile {
        width: 175px;
        z-index: 9;
        margin: -3px 0;
        top: 19px;
        position: fixed;
        right: 20px;
    }

        header .logomobile svg path {
            fill: var(--color-black);
        }

    .navbar-nav.headermenu {
        left: 15px;
    }

    .topmenu {
        padding: 20px 10px;
    }

    .navbar-nav.headermenu {
        left: 15px;
        top: 32px;
    }

    .menu-wrap {
        display: flex !important;
        padding: 90px 25px;
        left: auto !important;
        right: -100% !important;
        width: 100%;
        transition: all 300ms ease-in-out;
    }

        .menu-wrap.show {
            right: 0 !important;
            transition: all 300ms ease-in-out;
        }

    .menu {
        padding: 10px;
    }

    .headerlinks ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .headerlinks ul li a {
            font-size: 20px;
            line-height: 1.4;
            padding: 15px 0;
            display: block;
            color: var(--color-black);
            font-weight: bold;
        }

    .menu .socials {
        padding: 25px 0;
        justify-content: center;
    }

    .copyright {
        padding: 25px 0;
    }

        .copyright span {
            padding: 0;
            display: block;
            text-align: justify;
        }

    .errorpage {
        max-width: 100%;
    }

    .erroricon svg {
        max-width: 250px;
        margin: 0 auto 40px;
        float: none;
        display: block;
    }

    .maingrid {
        margin: 80px 0 0;
        height: auto;
    }

    .content {
        height: 100vh;
    }

    .grid {
        right: -5% !important;
        left: auto;
    }

    .pos-1 {
        grid-area: 1 / 7 / 14 / 45;
    }

    .pos-2 {
        grid-area: 15 / 7 / 23 / 25;
    }

    .pos-3 {
        grid-area: 15 / 27 / 23 / 45;
    }

    .pos-4 {
        grid-area: 24/ 7/ 32 / 25;
    }

    .pos-5 {
        grid-area: 24/ 27/ 32 / 45;
    }

    .pos-6 {
        grid-area: 33/ 7/ 46/ 45;
    }

    .section {
        padding: 10px;
    }

    .bigdet {
        font-size: 18px;
        line-height: 38px;
    }

    .bigdet {
        padding: 5px;
        max-width: 90vw;
        margin: 0 auto;
    }



    .biglink,
    .biglink:hover,
    .biglink:focus {
        font-size: 19px;
        font-weight: bold;
        line-height: 30px;
        padding: 25px 0;
    }

        .biglink svg {
            height: 21px;
        }

    .title {
        padding: 10px 15px;
    }

        .title h3,
        .title h2,
        .title h1 {
            font-size: 25px;
            line-height: 48px;
        }

    .works_grid {
        margin-bottom: 0;
        grid-auto-flow: row;
        grid-column-gap: 1em;
        grid-row-gap: 1em;
        grid-template-areas: ".";
        -ms-grid-columns: 1fr 1em 1fr 1em 1fr;
        grid-template-columns: 1fr 1fr;
        -ms-grid-rows: minmax(0px, 1fr) 1em auto;
        grid-template-rows: minmax(0px, 1fr) auto;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }

    .work_grid {
        -ms-grid-column: span 1 !important;
        grid-column-start: span 1 !important;
        -ms-grid-column-span: span 1 !important;
        grid-column-end: span 1 !important;
        height: auto !important;
    }

    .grid__item .grid__item-img img,
    .grid__item:hover .grid__item-img img {
        transform: none !important;
        transition: none !important;
    }

    .brandpost {
        height: 20vw;
    }

    .fullcover > svg {
        width: 12vw;
        margin: 4px;
    }

    .swiper-pagination.swiper-sw_thumb-pagination {
        left: 14px;
        bottom: 14px !important;
    }

    .postdet {
        display: none;
    }

    .contactlist li b {
        font-size: 15px;
    }

    .contactlist li label {
        font-size: 18px;
    }





    .postpage .innercontent > * {
        max-width: 95%;
    }

    .postpage .title > h1,
    .postpage .title > h2,
    .postpage .title > h3 {
        font-size: 25px;
    }

    .postpage .innercontent > blockquote {
        border-right: 5px solid var(--color-black);
        font-size: 19px;
        padding: 10px 20px;
        max-width: 80%;
    }

    .title.partitle {
        max-width: 90%;
        margin: 5px auto;
        border-bottom: 4px solid var(--color-primary);
        padding: 0;
    }

        .title.partitle h2 {
            padding: 0 4px;
        }

    .bigdet strong::before,
    .bigdet b::before {
        height: 4px;
    }

    .brands:hover > aside > a,
    .brands:hover > aside:hover > a {
        transform: none !important;
        transition: none !important;
    }



    .categories {
        margin-bottom: 0;
    }

        .categories a {
            padding: 7px 15px;
            font-size: 14px;
        }



    .postinfo {
        margin: 0;
        width: 100%;
        font-size: 15px;
        padding: 7px;
    }

    .scroller {
        max-width: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch !important;
        -webkit-overflow-scrolling: auto !important;
        padding: 0 15px;
        margin-bottom: 15px;
    }

        .scroller > * {
            width: -moz-max-content !important;
            width: -webkit-max-content !important;
            width: -o-max-content !important;
            width: -ms-max-content !important;
            min-width: 100%;
        }

    .scroller {
        cursor: -webkit-grab;
        cursor: -moz-grab;
        cursor: -o-grab;
        cursor: grab;
    }

        .scroller:active {
            cursor: -webkit-grabbing;
            cursor: -moz-grabbing;
            cursor: -o-grabbing;
            cursor: grabbing;
        }

   

    .tags {
        margin: 0 auto;
    }

        .tags > a {
            font-size: 13px;
        }

            .tags > a > svg {
                margin: 4px 1px;
                width: 19px;
                height: 19px;
            }

    .works_grid .error_inner {
        -ms-grid-column: span 2 !important;
        grid-column-start: span 2 !important;
        -ms-grid-column-span: span 2 !important;
        grid-column-end: span 2 !important;
        height: auto !important;
    }

    .errorpage.error_inner h1 {
        font-size: 53px;
    }

    .errorpage.error_inner h2 {
        font-size: 27px;
        margin-bottom: 10px;
    }

    .errorpage p {
        font-size: 16px;
    }

    .socials a img,
    .socials a svg {
        width: 30px;
        height: 30px;
        margin: 5px;
    }

    .copyright span {
        font-size: 13px;
        line-height: 22px;
    }

    .portfoliosPage #mainbar .works_grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media only screen and (max-width: 480px) {
    .portfoliosPage #mainbar .works_grid {
        grid-template-columns: 1fr 1fr;
    }
}
