/* FRONTPAGE */

@media only screen and (min-width: 1000px) {
    #intro-container {
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    #intro-text {
        max-width: 45%!important;
        padding-left: 30px;
    }
    
    #intro-image figure {
        margin-right: 0!important;
    }
}

@media only screen and (min-width: 1300px) {
    #intro-text {
        max-width: 40%!important;
    }
    
    #intro-image figure img {
        width: 680px!important;
    }
}

@media only screen and (min-width: 1650px) {
    #intro-text {
        max-width: 45%!important;
    }
}

/* MOBILE MENU */
@media (min-width: 1000px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }
}
/* Remove the WordPress default for 600px */
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

#modal-2-content > ul {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

#modal-2-content > ul > li {
    display: flex;
    align-items: center;
}

#modal-2-content > ul > li > a {
    color: #456C8B;
    font-family:  var(--wp--preset--font-family--itc-officina-sans-bold);
    font-size: 19px!important;
}

#modal-2-content > ul > li ul {
    padding-top: 5px;
    padding-bottom: 15px;
}

#modal-2-content > ul li ul li {
    display: flex;
    align-items: center;
}

.has-modal-open #modal-2-content > ul > li:last-of-type {
    margin-bottom: 30px;
}

#modal-2 > div > div > button {
    position: absolute;
    right: 30px;
    top: 30px;
}




/* MEDIA QURIES*/

@media only screen and (max-width: 1585px) {
    body.home {
        --wp--style--global--content-size: 95%;
        --wp--style--global--wide-size: 95%;
    }
    
    #benefits {
        margin-left: 3%;
        margin-right: 3%;
    }
}

@media only screen and (max-width: 1042px) {
    body {
        --wp--style--global--content-size: 95vw;
        --wp--style--global--wide-size: 95vw;
    }
    
    div#benefits {
        margin-left: unset;
        margin-right: unset;
    }    
}

@media only screen and (max-width: 900px) {
    .leader-staff-container,
    .staff-container {
        display: flex;
        flex-wrap: wrap;       /* allows items to wrap to next row */
        gap: 20px;             /* applies space between both rows and columns */
    }

    .staff-member {
        box-sizing: border-box;
        flex: 1 1 calc(50% - 20px); /* take half width minus gap */
    }

}

@media only screen and (max-width: 781px) {
    #komm-ins-team > div {
        display: flex!important;
        wrap: wrap!important;
        flex-direction: column-reverse!important;
    }
    
    body {
        --wp--style--global--content-size: 90vw;
        --wp--style--global--wide-size: 90vw;
    }
    
    #news-image {
        margin-bottom: 70px;
    }
}

@media only screen and (max-width: 606px) {
    .leader-staff-container,
    .staff-container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;       /* allows items to wrap to next row */
        gap: 20px;             /* applies space between both rows and columns */
        row-gap: 40px;
    }

    .staff-member {
        box-sizing: border-box;
        flex: 1 calc(50% - 20px); /* take half width minus gap */
    }
    
    footer > div > div {
        padding-bottom: 100px!important;    
    }
}

@media only screen and (max-width: 606px) {
    .staff-container.specialization .staff-member figure {
        width: 100%;
        height: auto;
    }
    
    .specialization .staff-member img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .specialization .staff-member {
        display: flex;
        gap: 20px;
        flex-direction: column;
        flex-wrap: wrap;
    }
}

