/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #222;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.1rem;
    font-size: 0.8125rem;
    color: white;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: 'Six Caps', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 10rem;
    text-align: center;
    line-height: 9rem;
    margin: 40px auto 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.75rem;
    margin: 10px auto;
}

h5 {
    margin: 20px;
    font-family: 'Playfair Display', serif;
    letter-spacing: normal;
    font-weight: normal;
    font-size: 0.9375rem;
    line-height: 0.9375rem;
}

a, a:visited {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover, a:focus, a:active {
    color: #eee;
    transition: all 0.3s;
}

.button {
    padding: 10px 20px;
    border: solid 1px white;
    text-transform: uppercase;
    background: rgba(255,255,255,0);
    border-radius: 0;
}

.button:hover, .button:focus, .button:active {
    background: rgba(255,255,255,1);
    color: #666;
    border-radius: 50px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav {
    width: 15%;
    background: #666;
}

nav:last-of-type {
    display: none;
}

nav a {
    text-transform: uppercase;
    display: block;
    padding: 5px 0;
    margin: 20px 20px 0;
    border-bottom: solid 1px white;
}

nav a:first-of-type {
    margin-top: 40px;
}

nav a:last-of-type {
    margin-bottom: 40px;
}

nav a:hover, nav a:focus, nav a:active {
    border-bottom: solid 1px #ccc;
    color: #ccc;
    padding-bottom: 10px;
}

#about {
    width: 85%;
    background: #adb8be;
    height: 100vh;
    position: relative;
}

#about .button {
    bottom: 30px;
    position: absolute;
    right: 50%;
    margin-right: -65px;
}

#about ul {
    background: #d6b373;
    width: 200px;
    height: 200px;
    margin: 10% 0 0 10%;
    position: relative;
}

#about ul li {
    padding: 10px 0 10px 20px;
    text-transform: uppercase;
    font-size: 1.75rem;
    line-height: 1.75rem;
}

#about ul li:nth-child(1) {
    padding-top: 20px;
}

#about ul li:nth-child(2) {
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: normal;
}

#about ul li:nth-child(3) {
    font-family: 'Amatic SC', cursive;
    letter-spacing: normal;
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 2.75rem;
}

#about ul .button {
    position: absolute;
    right: -30px;
    bottom: -20px;
    margin-right: inherit;
}

#featured {
    width: 100%;
    overflow: hidden;
    position: relative;
  height: 400px;
}

#left {
    position: absolute;
    left: 0;
    height: 400px;
    width: 40px;
    background: #ccc;
    z-index: 1000;
}

#right {
    position: absolute;
    right: 0;
    height: 400px;
    width: 40px;
    background: #ccc;
    z-index: 1000;
}

#featured article {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 200%;
    /*margin-left: -16.667%;*/
    position: absolute;
    left: 0;
    top: 0;
}

.feature {
    width: 13.333%;
    height: 400px;
}

.feature, .project {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.feature h4, .feature h3, .feature figcaption, .project h4, .project h3, .project figcaption {
    padding: 0 20px;
}

.feature h4, .project h4 {
    text-transform: uppercase;
    padding: 0 0 8px;
    border-bottom: solid 2px white;
    display: inline-block;
    margin-left: 20px;
}

.feature h3, .project h3 {
    font-family: 'Six Caps', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 3rem;
    margin: 10px 0;
}

.feature figcaption, .project figcaption {
    position: absolute;
    bottom: -60px;
    width: calc(100% - 40px);
    padding: 20px;
    transition: all 0.3s;
}

.feature:nth-child(odd) {
    text-align: center;
}

.feature:nth-child(odd) h4, .project:nth-child(3) h4, .project:nth-child(9) h4, .project:nth-child(13) h4, .project:nth-child(19) h4 {
    margin-left: 0;
}

.feature:nth-child(odd) figcaption {
    background: white;
    color: #666;
}

.feature .image, .project .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: -1;
}

.feature:hover .image, .feature:focus .image, .feature:active .image, .project:hover .image, .project:focus .image, .project:active .image {
    background: rgba(0,0,0,0.6);
    transition: all 0.3s;
}

.feature:hover figcaption, .feature:focus figcaption, .feature:active figcaption, .project:hover figcaption, .project:focus figcaption, .project:active figcaption {
    bottom: 0;
    transition: all 0.3s;
}

#projects {
    width: 100%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

#projects aside {
    width: 15%;
    background: #666;
}

#projects aside a {
    display: block;
    margin: 20px;
    padding: 5px 0;
    position: relative;
}

#projects aside a:after {
    content: '';
    width: 0%;
    background: white;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
}

#projects aside a:hover:after {
    width: 100%;
    transition: width 0.3s;
}

#projects article {
    width: 85%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: start;
            -webkit-align-content: flex-start;
            align-content: flex-start;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
}

.project {
    width: 25%;
    height: 325px;
}

.project:nth-child(3), .project:nth-child(9), .project:nth-child(13), .project:nth-child(19) {
    width: 50%;
    text-align: center;
}

.project:nth-child(1) figcaption, .project:nth-child(2) figcaption, .project:nth-child(6) figcaption, .project:nth-child(8) figcaption, .project:nth-child(10) figcaption, .project:nth-child(11) figcaption, .project:nth-child(12) figcaption, .project:nth-child(16) figcaption, .project:nth-child(18) figcaption, .project:nth-child(20) figcaption {
    background: white;
    color: #666;
}

footer {
    width: 100%;
    text-align: center;
    color: #aaa;
}



button {
    position: absolute;
    top: 0;
    left: 0;
}

.container {
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
}

.container.overlay-open {
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(214,179,115,0.9);
}

.overlay-contentscale {
  visibility: hidden;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: -webkit-transform 0.5s, visibility 0s 0.5s;
  transition: transform 0.5s, visibility 0s 0.5s;
}

.overlay-contentscale.open {
  visibility: visible;
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
  transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 1024px) {
    nav:first-of-type {
        display: none;
    }
    
    nav:last-of-type {
        display: block;
    }
    
    nav {
        width: 40px;
    }
    
    nav a {
        margin: 20px 10px 0;
        width: 20px;
        height: 20px;
        padding: 0;
        border: none;
    }
    
    nav a path {
        transition: all 0.3s;
    }
    
    nav a:hover, nav a:focus, nav a:active {
        border: none;
        padding: 0;
    }
    
    nav a:hover path, nav a:focus path, nav a:active path {
        fill: #d6b373;
        transition: all 0.3s;
    }
    
    #about {
        width: calc(100% - 40px);
    }
    
    #projects {
        -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap;
    }
    
    #projects aside, #projects article {
        width: 100%;
    }
    
    #projects aside {
        text-align: center;
    }
    
    h5 {
        margin: 15px 20px 10px;
    }
    
    #projects aside a {
        display: inline-block;
        margin: 0 20px 5px;
    }
}

@media only screen and (max-width: 640px) {
    #featured article {
        margin-left: -33.333%;
    }
    
    .feature {
        width: 16.667%;
    }
    
    .feature:nth-child(odd) {
        text-align: left;
    }
    
    .feature:nth-child(odd) h4, .project:nth-child(3) h4, .project:nth-child(9) h4, .project:nth-child(13) h4, .project:nth-child(19) h4 {
        margin-left: 20px;
    }
    
    .project {
        width: 50%;
    }
    
    .project:nth-child(3), .project:nth-child(9), .project:nth-child(13), .project:nth-child(19) {
        text-align: left;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}