* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.card-image img{
    width: 100%;
}

.card-image {
    padding: 0 10px 0 0;
    width: 50%;
    float: left;
}

p,
h1,
h2,
h3,
ul,
ol {
    color: white;
    font-family: Arial, Helvetica, sans-serif;

}

body {
    background-color: #093A3E;
}

#menu {
    background-color: #E01A4F;
    position: fixed;
    top: 0%;
    width: 90%;
    height: 50px;
    margin: auto;
}

#hamburger {
    margin-top: 7px;
    margin-left: 10px;
}

#main {
    background-color:#A21A4F;
    display: grid;
    gap: 10px;
    padding: 10px;
}

#main h2 {
    text-align: center;
}

#gallery {
    background-color: #64E9EE;
    padding: 10px;
}
#gallery h2 {
    padding-top: 10px;
    color:#093A3E;
}

#wrapper {
    width: 90%;
    margin: auto;
    display: grid;
    gap: 10px;
}

#hero {
    margin-top: 50px;
}
#intro {
    background: rgba(9,58,62,.6);
    padding: 10px;
}

#footer {
    text-align: center;
}

#footer a {
    background-color: #03666f;
    color: white;
    padding: 10px 20px 10px 20px;   
}

#footer a:hover{
    background-color: #E01A4F;
}

#links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 10vh;
}

a{
    text-decoration: none;
}

@media only screen and ( max-width: 767px ) {

    #hero {
        background-image: url("../pics/chris_jacobs_tall.jpg");
        background-size: cover;
        background-position: center;
        height: calc(100vh - 50px);
    }

    #gallery {
        display: flex;
        overflow: scroll;
        position: relative;
        gap: 10px;
    }
    
    #gallery h2 {
        position: absolute;
        top: 0%;
        right: 50%;
        transform: translate(50%, 0);
    }
    
    #gallery .art {
        margin-top: 40px;
    }

    .art img {
        height: 40vw;
    }
    
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #wrapper
    {
        grid-template-columns: 2fr 1fr;
    }

    #hero {
        background-image: url("../pics/chris_jacobs_wide.jpg");
        background-size: cover;
        background-position: right;
        grid-column: 1 / 3
    }
    #intro{
        width: 50%;
        min-height: 50vw;
    }

    #main{
        align-content: start;
    }

    #gallery{
        order: 1;
        display: grid;
        gap: 10px;
        align-content: start;
    }

    .art img {
        width: 100%;
    }

    #footer{
        grid-column: 1 / 3;
        order: 2;
    }

}

@media only screen and ( min-width: 1025px) {

    #wrapper{
        width: 90%;
    }

    #hero {
        background-image: url("../pics/chris_jacobs_wide.jpg");
        background-size: cover;
        background-position: right;
    }
    #intro{
        width: 50%;
        height: 50vw;
    }
    /*
    #gallery{
        order: 1;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        position: relative;
        min-height: 100vh;
    }

        #gallery{
        display: flex;
        flex-wrap: wrap;
        justify-content:space-between;
    }
    .art{
        width: 25%;
    }
    .art img{
        width: 100%;
    }*/
    #gallery{
        padding-top: 40px;
        order: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;   
        position: relative;
        align-items: center;
        
    }
        .art{
        min-width: 0;

    }
    .art img{
        width: 100%;
    }

    #gallery h2 {
        position: absolute;
        top: 0%;
        right: 50%;
        transform: translate(50%, 0);
    }

    
    .card-image {
        padding: 0 10px 0 0;
        width: auto;
        float: left;
        display: flex;
    }
    
    .card-image img {
        width: 22.5vw
    }

    #footer{
        order: 2;
    }

    #menu a {
        border: none;
    }
}