/* ELEMENTS */
html, body {
    height: 100%;
}
body {
    margin: 0;
    background-color: #000;
    color: #ccc;
}
h1 {
    margin-top: -60px;
    margin-bottom: 20px;
    padding: 0 20px;
    text-align: center;
    color: #ccc;
    font-size: 48px;
    font-family: "Nunito", sans-serif;
    line-height: 44px;
}
.gallery h1, .about h1 {
     margin-top: 10px;
     margin-bottom: -10px;
     font-size: 40px;
}
a {
    text-decoration: none;
}

/* MAIN */
#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*border:  10px solid red;*/
}
#main.homepage {
    height: 100%;
}
#main.gallery,
#main.about {
    justify-content: flex-start;
}
.homepage #logo {
    display: block;
    margin: 0 auto;
    width: 50%;
}

/* NAV */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 70%;
}
.nav-item {
    margin: 0 6px;
}
.nav-item a {
    text-decoration: none;
    color: #ccc;
    font-family: "Poppins", sans-serif;
}
.nav-item a:hover {
    color: #fff;
}

/* GALLERY */
* {
    box-sizing: border-box;
}
.gallery #logo,
.about #logo {
    display: flex;
    margin: 0 auto;
    margin-top: 20px;
    width: 150px;
}
#grid {
    margin: 0 auto;
    width: 80%;
    opacity: 0;
    transition: opacity 0.5s;
}
/* clear fix */
#grid:after {
    content: '';
    display: block;
}
#grid-sizer,
.grid-item {
    /*width: 33.333%;*/ /* without gutter */
    width: 32.333%; /* with gutter */
}
.grid-item {
    float: left;
    margin-bottom: 10px;
}
.grid-item img {
    display: block;
    width: 100%;
}

/* ABOUT */
#main.about {
    font-family: "Poppins", sans-serif;
}
#main.about #content {
    width: 50%;
}
#main.about #content #jed {
    float: left;
    margin-right: 20px;
}

/* FOOTER */
.homepage footer {
    position: absolute;
    bottom: 10px;
}
footer {
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 0 20px;
    color: #ccc;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    text-align: center;
}

@media only screen and (max-width: 792px) {
    /* NAV */
    nav {
        max-width: none;
    }

    /* GALLERY */
    #grid {
        width: 90%;
    }
    #grid-sizer,
    .grid-item {
        width: 100%;
    }

    /* ABOUT */
    #main.about #content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
    }
    #main.about #content #jed {
        display: block;
        width: 90%;
        margin-bottom: 20px;
        float: none;
        margin-right: 0;
    }
}