/* RESPONSIVE DESIGN */

@media(max-width: 1100px) {
    .right {
        display: none;
    }
}

@media(max-width: 992px) {

    p {
        max-width: 600px;
    }

main {
    padding: 3rem 1rem;}

    /* HERO */
    section#hero {
        margin: 50px auto;
        /* width: 600px; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-inline: 20px;
    }

    #mission img {

        margin-bottom: 20px;
        height: auto;
    }

    /* GALLERY */

    #gallery .grid-container {
        display: grid;
        grid-template-areas:
            "box-1 box-1 box-2"
            "box-1 box-1 box-3"
            "box-4 box-5 box-5";
    }

    section#mission .container {

        flex-direction: column;
    }

    /* CONTACTS */
    .contact {
        padding: 50px;
    }

    .container {
        flex-direction: column;
    }

    .contact .container {
        margin-top: 20px;
    }

    .container .contactInfo {
        /* padding: 10px; */
        width: 100%;
        padding-left: 100px;
    }

    .contact .contactForm {
        padding: 40px;
        width: 100%;
    }

    #our-team .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }


    section#values .content,
    section#problems .content {
        width: auto;
        justify-content: center;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media(max-width: 576px) {
    
.header .nav-container {
    padding: 3rem 2rem;}

    h2 {
        max-width: 360px;
    }

    h3 {
        max-width: 360px;
    }


    p {
        max-width: 90%;
        padding-inline: 1rem;
    }

    .dropdown_menu {
        left: 2rem;
        width: unset;
    }

    section#hero {
        max-width: 400px;
    }
    section#advantages p{
        width: 350px;
    }
    #hero h1 {
        font-size: 2.5rem;
    }

    /* GALLERY */

    #gallery .grid-container {
        grid-template-areas:
            "box-1 box-2"
            "box-3 box-2"
            "box-3 box-4"
            "box-5 box-4";
    }


    section#gallery .container {
        gap: 10px;
    }

    #gallery .box img {
        width: 90%;
        height: 90%;
        object-fit: cover;
    }

    #gallery .grid-container {
        grid-auto-columns: 180px;
        grid-auto-rows: 180px;
        gap: 0.2em;
    }

    #gallery .ver2 {
        grid-auto-columns: 180px;
        grid-auto-rows: 180px;
        gap: 0.2em;
    }

    /* CONTACTS */

    footer .contactMethod {
        flex-direction: column;
    }

    #our-team .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }


    section#values .content,
    section#problems .content {
        width: 400px;
        flex-direction: column;
        justify-items: left;
    }

    section#values .content img,
    section#problems img {

        width: 350px;
    }

    section#values .content ul li,
    section#problems ul li {
        text-align: center;
    }
    
section#values .add-content {

    justify-content: center;
}
}