@media screen and (min-width: 1660px) {
    .feature_panels_inner>ul>li {
        padding-left: calc((100vw - 1500px)/2);
        padding-right: calc((100vw - 1500px)/2);
    }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
    
    #hero_header.hero-mode-split,
    #slideshow.split_slideshow.full_list,
    .type-fullscreen #header, 
    .layout-hero-header #header, 
    .header-fixed-wrapper #header,
    .type-fullscreen #page_header, 
    .layout-hero-header #page_header, 
    .header-fixed-wrapper #page_header,
    #hero_header > .inner,
    #container {
        padding-left: 40px;
        padding-right: 40px;
    }
    #hero_heading {
        left: 40px;
        right: 40px;
    }
    .fullscreen_slideshow ul li .content .inner {
        padding: 0 40px;
    }

    .feature_panels_inner>ul>li {
        padding-left: 40px;
        padding-right: 40px;
    }
}


/* tablet */
@media screen and (max-width: 1023px) {

    body .page_header_enable.scrolling-down #header.header_fixed:not(.header_fixed_no_follow){
        transform: translate3d(0, -150%, 0) !important;
    }

    #page_header, 
    #sticky_sub_nav.navigation {
        display: none !important;
    }

    #header .inner:before {
        right: 0;
        left: 0;
    }

    .feature_panels_inner>ul>li {
        padding-left: 30px;
        padding-right: 30px;
    }

    #sub_nav.navigation{
        margin-bottom: var(--heading-spacing);
    }

    #sub_nav.navigation ul{
        display: flex;
        flex-wrap: wrap;
    }
    #sub_nav.navigation ul li{
        flex: 0 0 auto;
        width: auto;
        float: none !important;
    }
    #sub_nav.navigation ul li.artists-browser{
        flex: 0 0 100%;
        width: 100%;
        justify-self: flex-start;
    }

    /* -----------------------------------------------------------
       records list
    ----------------------------------------------------------- */
    .section-home .records_list.record-count-1>ul>li{
        margin-bottom: 0;
    }

    /* -----------------------------------------------------------
       Artist
    ----------------------------------------------------------- */
    .subsection-artist-detail-page .panel_biography .subsection-biography .content_module{
        flex: 1;
    }
    .layout-hero-header .subsection-artist-detail-page .heading_wrapper.heading_wrapper_alternative #sub_nav.navigation .artists-browser{
        float: none;
        display: inline-block;
        margin-top: var(--space-sm);
        margin-bottom: 0;
    }

    /* -----------------------------------------------------------
       Exhibition
    ----------------------------------------------------------- */
    .subsection-exhibition-detail-page .panel_overview .subsection-overview .content_module{
        flex: 1;
    }

    /* -----------------------------------------------------------
       News
    ----------------------------------------------------------- */
    .section-latest-news .records_list.feature_list ul li a::after{
        visibility: visible;
    }

    /* -----------------------------------------------------------
       Store
    ----------------------------------------------------------- */
    .section-store #main_content::before{
        display: none !important;
    }
    .section-store #hero_header{
        position: relative;
        margin-top: var(--tablet-header-height);
    }
    .section-store #hero_header .inner{
        display: none
    }

    /* -----------------------------------------------------------
       Footer
    ----------------------------------------------------------- */

    #footer.advanced_footer .advanced_footer_item{
        padding: 0;
    }
    #footer.advanced_footer .copyright {
        display: block;
    }
    #footer #social_links {
        padding: 0;
        margin: var(--space-md) 0;
    }
    

}

/* mobile */
@media screen and (max-width: 767px) {

    :root{
        --section-spacing: 50px;
    }

    .layout-fixed-header #main_content, #main_content{
        padding-top: var(--section-spacing);
    }

    /* -----------------------------------------------------------
       records list
    ----------------------------------------------------------- */
    .section-home .records_list.record-count-1>ul>li{
        margin-bottom: 0;
    }

    /* -----------------------------------------------------------
       Header
    ----------------------------------------------------------- */
    #header .inner{
        height: var(--mb-header-height);
    }
    #header.header_layout_center #logo{
        position: absolute;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    #header #logo.user-custom-logo-image a{
        position: relative;
        text-align: center;
    }


    #quick_search form{
        align-items: center;
    }
    
    .records_list.feature_list ul li {
        flex-direction: column;
    }

    .fullscreen_slideshow ul li .content h2 {
        font-size: 30px;
    }

    .fullscreen_slideshow ul li .content h2 a .separator, 
    .fullscreen_slideshow ul li .content h2 .h1_subtitle, 
    .fullscreen_slideshow ul li .content h2 a .h1_subtitle {
        font-size: 1.6rem;
    }

    .fullscreen_slideshow ul li .content h2 .h1_subtitle {
        padding-top: 20px;
    }

    /* -----------------------------------------------------------
       Feature panels
    ----------------------------------------------------------- */
    .section-home #content:not(.no_homepage_slideshow) .feature_panels:not(.first_panel_full_bleed){
        padding-top: 0;
    }

    .feature_panels_inner > ul > li {
        /* padding: 50px var(--container-padding-mb); */
        padding: var(--section-spacing) 0;
        width: 100% !important; 
        left: 0;
        margin: 0 auto;
    }

    .feature_panels .panel_header h2 {
        text-align: center;
    }

    .feature_panels .records_list.record-count-1 .content h2 {
        font-size: 30px;
    }

    .feature_panels .records_list.record-count-1.grid_dynamic_layout_feature_panels:not(.feature_list) > ul > li {
        width: 100%;
    }

    /* -----------------------------------------------------------
       Home
    ----------------------------------------------------------- */
    .section-home .feature_panels .panel_content_alignment_center .image{
        width: 100%;
    }
    .section-home .feature_panels .panel_content_alignment_center .subtitle{
        margin-bottom: var(--space-md);
    }
    .section-home .feature_panels .panel_content_alignment_center .fp_title{
        font-size: 30px;
    }

    /* -----------------------------------------------------------
       Gallery
    ----------------------------------------------------------- */

    .section-gallery #main_content h1 ,
    .section-contact #main_content h1 {
        font-size: 30px;
    }

    /* -----------------------------------------------------------
       Artists
    ----------------------------------------------------------- */

    .subsection-artist-detail-page .panel_biography .subsection-biography{
        flex-direction: column;
    }
    .subsection-artist-detail-page .panel_biography .subsection-biography .sidebar{
        position: relative;
        top: 0px;
    }

    
    

    /* -----------------------------------------------------------
       Exhibitions
    ----------------------------------------------------------- */

    #exhibitions-grid-forthcoming .records_list.feature_list ul li, 
    #exhibitions-grid-forthcoming_featured .records_list.feature_list ul li {
        width: 100%;
    }

    .section-exhibitions #exhibitions_years_nav {
        position: relative;
        top: 0;
        left: 0;
    }

    .section-exhibitions #exhibitions_years_nav.navigation ul {
        justify-content: start;
    }

    .section-exhibitions #exhibitions_years_nav.navigation ul {
        column-count: 3;
    }

    .subsection-exhibition-detail-page .panel_overview .subsection-overview {
        flex-direction: column;
    }
    .subsection-exhibition-detail-page .panel_overview .subsection-overview .sidebar{
        position: relative;
        top: 0px;
    }

    /* -----------------------------------------------------------
       Art fair
    ----------------------------------------------------------- */
    .section-art-fairs #main_content{
        padding-top: 0 !important;
    }
    .section-art-fairs .event-list-header{
        margin-bottom: 0 !important;
    }

    /* -----------------------------------------------------------
       News
    ----------------------------------------------------------- */

    .section-latest-news #main_content{
        padding-top : 0 !important;
    }
    .section-latest-news .records_list.feature_list ul li{
        margin-bottom: 0;
    }
    .section-latest-news .records_list.feature_list ul li .image ,
    .section-latest-news .records_list.feature_list ul li .content {
        width: 100%;
    }

    /* -----------------------------------------------------------
       Store
    ----------------------------------------------------------- */
    .section-store #hero_header{
        margin-top: var(--mb-header-height);
    }
    .section-store #hero_heading .heading_wrapper {
        padding: 0 15px;
        margin: 0;
    } 
    .section-store #hero_heading .heading_wrapper h1.has_subtitle, 
    .section-store #hero_heading .heading_wrapper h1 {
        font-size: 30px;
    } 

    /* -----------------------------------------------------------
       Gallery / contact
    ----------------------------------------------------------- */
    .section-gallery .feature_panels .panel_text .content .fp_title, .section-contact .feature_panels .panel_text .content .fp_title{
        font-size: 30px;
    }
    
}