/* Projects */

.project-thumb {
    width: 20%;
    float: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    opacity: 0;
    transition: opacity .5s ease-in;
}

.thumb-hover {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    transition: top .15s linear;
}

@media (hover: hover) {
    .project-thumb:hover .thumb-hover {
        top: 50%;
    }
}

.thumb-text {
    display: table;
    width: 100%;
    height: 100%;
}

.thumb-text p {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 16px;
    line-height: 1.25;
    color: #FFF;
    padding: 16px;
}

.thumb-text p span {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 8px;
    color: #B1D5EF;
}

@media only screen and (max-width: 1920px) {
    .project-thumb {
        width: 25%;
    }
}

@media only screen and (max-width: 1024px) {
    .project-thumb {
        width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .project-thumb {
        width: 100%;
    }
}

/* Project */

#project {
    position: fixed;
    height: calc(100% - 120px);
    width: 100%;
    top: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    transition: top .25s linear;
}

#project h2 {
    margin-top: 48px;
    display: none;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
}

#project-wrapper {
    padding-bottom: 48px;
}

#project-wrapper p {
    font-family: "GothamBook", sans-serif;
    font-size: 16px;
    text-align: center;
    max-width: 640px;
    margin: auto;
    padding: 16px;
    margin-top: 48px;
    visibility: hidden;
}

#project-wrapper p a {
    text-decoration: underline;
}

@media (hover: hover) {
    #project-wrapper p a:hover {
        color: inherit;
    }
}

.project-image {
    max-width: 960px;
    margin: auto;
    margin-top: 48px;
}

.project-image img {
    width: 100%;
    opacity: 0;
    transition: opacity .5s ease-in;
}

footer {
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    display: none;
}

.footer-link {
    line-height: 1;
    display: inline-block;
    margin-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: top;
}

.footer-link span {
    font-family: "GothamBook", sans-serif;
    display: block;
    margin-top: 8px;
    line-height: 1.25;
}

#footer-social {
    position: absolute;
    right: 32px;
    top: 32px;
}

#footer-social a {
    float: left;
    margin-left: 24px;
}

#footer-social a img {
    height: 16px;
}

@media only screen and (max-width: 768px) {
    #project h2 {
        display: block;
    }

    footer {
        height: 256px;
    }

    .footer-link {
        padding-left: 12px;
        padding-right: 12px;
        width: 50%;
    }

    #footer-social {
        top: auto;
        bottom: 96px;
        width: 100%;
        right: 0;
        text-align: center;
    }

    #footer-social a {
        float: none;
        margin-left: 12px;
        margin-right: 12px;
    }
}