@media screen and (min-width: 1660px) {
    .section-home .feature_panels .panel_type_8,
    .section-home .cms-frontend-list-editable.feature_panels .cms-frontend-list-item.panel_type_8 {
        max-width: 1660px;
        margin: 0 0 60px;
        position: static;
        padding: 0;
        width: 100%;
    }
}

@media screen and (max-width: 1600px) {
    #top_nav.navigation ul li a {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    .navigation ul li {
        margin-right: 16px;
        white-space: nowrap;
    }
    #header #logo.user-custom-logo-image a {
        background-position: left;
    }
}

@media screen and (max-width: 1375px) {
    body.responsive-nav-slide-nav.responsive-nav-side-position-fullscreen #responsive_slide_nav_wrapper .navigation ul li a {
        color: rgba(255, 255, 255, 1);
    }
    
    #header .inner.clearwithin {
        flex-direction: row;
    }

    #logo a {
        margin-bottom: 0;
    }
    
    #header #logo.user-custom-logo-image {
        align-self: center;
        max-height: 32px;
    }

    #header .inner,
    #header .header-ui-wrapper {
        width: auto;
    }
}

@media screen and (max-width: 1279px) {
    #footer {
        padding: 30px 0 0;
    }
    .section-contact #contact_form {
        margin-bottom: 0;
    }
    .section-home .feature_panels .panel_type_8 .content {
        padding: 40px 0 20px 30px;
    }
}

@media screen and (max-width: 1200px) {
    .section-contact #contact_form {
        padding: 40px 10px;
    }
}

@media screen and (max-width: 1200px) {
    .section-exhibitions .heading_wrapper.heading_wrapper_alternative #sub_nav.navigation {
        position: static;
        float: right;
        /*margin: auto;*/
    }
}


/* ------------------------------------------------------------------------
--------------------------------- Size 3 ----------------------------------
------------------------------------------------------------------------ */

@media screen and (max-width: 1023px) {
    /* -----------------------------------------------------------
       Generic
    ----------------------------------------------------------- */
    #hero_header::after,
    #hero_header::before,
    #hero_image_responsive::after,
    #hero_image_responsive::before {
        width: 15px;
    }
    .section-home .feature_panels .panel_type_8 {
        padding-left: 15px;
        padding-right: 15px;
    }
    .section-home .feature_panels .panel_type_8 .content {
        padding: 25px 0 5px 15px;
    }
    #footer .inner {
        padding-left: 70px;
        padding-right: 60px;
        padding-top: 25px;
    }
    #footer.advanced_footer .advanced_footer_item,
    #footer.advanced_footer #social_links {
        flex-basis: 40%;
    }
    #footer.advanced_footer #social_links {
        padding-right: 20px;
        padding-bottom: 20px;
    }
    .section-home .feature_panels .panel_type_8 .content h2 {
        font-size: 1.6rem;
    }
    /* -----------------------------------------------------------
       General layout
    ----------------------------------------------------------- */
    .heading_wrapper #sub_nav.navigation,
    .heading_wrapper #exhibitions_nav.navigation,
    .heading_wrapper .list_grid_control.navigation,
    .heading_wrapper.subsection-navigation.navigation {
        margin-top: 12px;
    }
    /* -----------------------------------------------------------
        Global classes
    ----------------------------------------------------------- */
    /* -----------------------------------------------------------
       Page Specific
    ----------------------------------------------------------- */
    .section-contact #content #content_module {
        column-count: 2;
    }
    .section-contact #contact_form.position-moved {
        display: block;
    }
    .section-contact #contact_form {
        padding-left: 40px;
        padding-right: 40px;
    }
    .section-contact #contact_form.position-moved .form {
        width: 100%;
    }
    #main_content .subsection-overview {
        display: flex;
        flex-direction: column-reverse;
    }
    #main_content .subsection-overview #sidebar,
    #main_content .subsection-overview #content_module {
        width: 100%
    }
    .section-artists .subsection-artist-detail-page #sub_nav ul,
    #sub_nav ul {
        float: left;
    }
    .section-exhibitions .heading_wrapper.heading_wrapper_alternative {
        display: flex;
        flex-direction: column;
    }
}


/* ------------------------------------------------------------------------
--------------------------------- Size 2 ----------------------------------
------------------------------------------------------------------------ */

@media screen and (min-width: 767px) {
    #header #page_header #h1_wrapper {
        min-width: 300px;
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    /* -----------------------------------------------------------
       Generic
    ----------------------------------------------------------- */
    /* -----------------------------------------------------------
       General layout
    ----------------------------------------------------------- */
    /* -----------------------------------------------------------
        Global classes
    ----------------------------------------------------------- */
    /* -----------------------------------------------------------
       Page Specific
    ----------------------------------------------------------- */
    .section-contact #content #sidebar {
        display: block;
    }
    .section-contact #map_basic {
        max-height: 400px;
        width: 100%;
    }
    .section-contact #content #content_module {
        column-count: 1;
    }
    .section-contact #contact_form .form .form_row_fields_container {
        display: block;
    }
    .section-contact #contact_form .form .form_row {
        width: 100%;
    }
    .section-contact #contact_form #contact_form_header {
        width: 100%;
    }
    #footer.advanced_footer .advanced_footer_item,
    #footer.advanced_footer #social_links {
        flex-basis: 80%;
    }
    body.section-home #main_content #content #content_module.full_width {
        flex-direction: column;
    }
}


/* ------------------------------------------------------------------------
--------------------------------- Size 1 ----------------------------------
------------------------------------------------------------------------ */

@media screen and (max-width: 459px) {
    /* -----------------------------------------------------------
       Generic
    ----------------------------------------------------------- */
    #footer #copyright {
        display: block;
    }
    .section-home .feature_panels .panel_type_8 .content h2 {
        font-size: 1.4rem;
    }
    .section-home .feature_panels .panel_type_8 .content {
        padding: 20px 0 5px 20px;
    }
    #hero_header::after,
    #hero_header::before,
    #hero_image_responsive::after,
    #hero_image_responsive::before {
        width: 15px;
    }

    #logo a {
        margin-left: 10px;
    }
    
    /* -----------------------------------------------------------
       General layout
    ----------------------------------------------------------- */
    .page_stats .ps_links {
        float: none;
    }
    /* -----------------------------------------------------------
        Global classes
    ----------------------------------------------------------- */
    /* -----------------------------------------------------------
       Page Specific
    ----------------------------------------------------------- */
}