/*
 ***************
 ** CSS RESET **
 ***************
 */

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*
 ********************
 ** GENERAL STYLES **
 ********************
 */

img {
    max-width: 100%;
}

body {
    color: #262626;
    font: 18px Ubuntu, sans-serif;
    text-shadow: 0px 0px 1px rgba(128,128,128,0.01);
}

body.home {
    max-width: 100%;
}

a {
    color: #06D;
    text-decoration: none;
    transition: color 0.25s;
}
a:hover {
    color: #0CF;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 ratio */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.embed-container.instagram {
    padding-bottom: 120%;
}

.embed-container.vine {
    padding-top: 0;
    padding-bottom: 100%;
}

.embed-container iframe,
.embed-container embed,
.embed-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#content {
    max-width: 960px;
    margin: 0 auto;
}

/*
 ********************
 ** VARIOUS PLACES **
 ********************
 */

.appstore {
    text-align: center;
    margin: 20px 0;
}

.appstore img {
    width: 270px;
    height: 80px;
}

/*
 ************
 ** HEADER **
 ************
 */

#header {
    background-color: #262626;
    margin-bottom: 50px;
}

#header a {
    display: block;
    color: #fff;
    padding: 25px 0;
}

#header .name {
    display: block;
    position: relative;
    bottom: 0;
    transition: bottom 0.25s, color 0.25s;
    font: 60px Quicksand;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

#header a:hover .name {
    bottom: 5px;
    color: #0CF;
}

#header .subtitle {
    font: 24px Quicksand;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-top: 25px;
}

/*
 ********************
 ** PORTFOLIO PAGE **
 ********************
 */

.page-template-portfoliopage #header {
    margin: 25px auto 25px auto;
}

.portfolio-group {
    padding: 0 25px;
}

.portfolio-group:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.portfolio-group-title {
    text-align: center;
    font: 32px Quicksand;
    font-weight: 700;
    margin-bottom: 25px;
}

.portfolio-piece {
    float: left;
    margin-right: 6.25%;
    margin-bottom: 6.25%;
    width: 29.16666667%;
}

.portfolio-piece.half-spacer {
    width: 11.458333333%;
}

.portfolio-piece:nth-child(3n+3) {
    margin-right: 0;
}

.portfolio-piece:nth-child(3n+1) {
    clear: left;
}

.portfolio-piece-main-link {
    display: block;
}

.portfolio-piece-image img {
    border-radius: 10px;
    position: relative;
    bottom: 0;
    transition: bottom 0.25s;
}
.portfolio-piece-main-link:hover img {
    bottom: 5px;
}

.portfolio-piece img {
    display: block;
}

.portfolio-piece-text {
    text-align: center;
}

.portfolio-piece-text h3 {
    font: 24px Quicksand;
    font-weight: 700;
}

.portfolio-piece-text p {
    font-size: 16px;
    font-weight: 300;
}

/*
 ************
 ** FOOTER **
 ************
 */

#footer {
    margin: 50px 0;
    text-align: center;
    font-size: 18px;
    line-height: 1.5em;
}

#footer-links .fa {
    padding-right: 3px;
}

#footer-links li {
    display: inline;
    margin: 0 10px;
}

#footer-links li a .footer-link-riser {
    position: relative;
    bottom: 0;
    transition: bottom 0.25s;
}

#footer-links li a:hover .footer-link-riser {
    bottom: 5px;
}

#copyright {
    color: #ccc;
    font-size: 14px;
    font-weight: 300;
}

/*
 *********************
 ** SMALLER SCREENS **
 *********************
 */

@media only screen and (max-width: 640px) {
    #footer-links li {
        display: block;
        padding: 0;
    }
}
@media only screen and (max-width: 480px) {
    #header .name {
        font-size: 48px;
    }
    #header .subtitle {
        font-size: 18px;
    }
    #footer {
        margin-top: 25px;
    }
}

/* Portfolio Page */
@media only screen and (max-width: 640px) {
    .portfolio-group {
        max-width: 300px;
        margin: 0 auto;
    }
    .portfolio-piece {
        margin-right: auto;
        margin-left: auto;
        width: 100%;
        float: none;
    }
    .portfolio-piece img {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    #content {
        width: 90%;
    }
}

@media only screen and (max-width: 500px) {
    #content {
        width: 100%;
    }
}

@media only screen and (max-width: 320px) {
    #footer {
        font-size: 16px;
    }
}
