html, body {
    height: 100%;
    width: 100%;
}

body {
    /* https://css-tricks.com/perfect-full-page-background-image/ */
    background: #363939 url("../images/background.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: white;
    
    
  font-size: 12px;
    position: relative;
}

#content {
    height: 100%;
    min-height: 100%;
}

.container {
    max-width: 1200px;
    height: 100%;
    position: relative;
}

#header {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* heading  */

#heading {
    max-width: 50px;
}

#heading h1 {
/*     font-spacing: 0.3em; */
    letter-spacing: 0.3em;
    line-height: 1.3em;
    font-size: 50px;
    margin-bottom: 50px;
}

#sub-heading {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.6em;
    font-weight: 200;
    max-width: 380px;
}

.section-heading {
    display: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section, .wrapper {
    padding-right: 220px;
    position: relative;
}

nav {
    position: fixed;
    height: 100%;
    right: 0;
    left: 0;
    top: 0;
    z-index: 999;
    pointer-events: none;
    transition: background 0.3s ease-in-out;
}

nav .close-btn, nav .menu-btn {
    display: none;
    position: absolute;
    z-index: 9999;
    right: 50px;
    top: 20px;
    font-size: 50px;
    font-weight: 100;
    opacity: 0.5;
    color: white;
    text-decoration: none;
    pointer-events: auto;
    font-weight: 100;
    cursor: pointer;
}

nav .close-btn:hover, nav .menu-btn:hover {
    opacity: 0.8;
}

nav .menu-btn {
    font-size: 25px;
    top: 45px;
    right: 52px;
}

#vertical_nav {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%); /* https://css-tricks.com/centering-css-complete-guide/ */
    transition: left 0.3s ease-in-out;
}

#vertical_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#vertical_nav ul li {
    margin-bottom: 20px;
}

#vertical_nav label {
    cursor: pointer;
    margin-bottom: 0;
}

#vertical_nav a {
    color: white;
    font-weight: 400;
    letter-spacing: 0.2em;
    padding-bottom: 3px;
    text-decoration: none;
    position: relative;
}

/* http://stackoverflow.com/questions/8572952/border-length-smaller-than-div-width */
#vertical_nav a:after {
    content: "";
    position: absolute;
    height: 1px;
    bottom: 0;
    left: 25%;
    right: 25%;
    border-bottom: 1px solid white;
    display: none;
    pointer-events: none;
}

#vertical_nav a:hover:after, #vertical_nav a.active:after {
    display: block;
}

.portfolio-image {
    height: 100%;
}

.portfolio-image > div {
    height: 50%;
    margin-bottom: 25px;
}

.wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    padding-left: 15px;
    padding-right: 220px;
    transform: translateY(-25%);
}

.portfolio-image a {
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
    display: block;
}

.portfolio-image a figure {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.portfolio-image a, figcaption span {
    display: block;
    color: white;
}

.portfolio-image a:hover {
    color: white;
}

.portfolio-image figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 1;
    background: rgba(0,0,0,0.6);
    transition: opacity 0.2s ease-in-out;
}

.portfolio-image a:hover figcaption {
    opacity: 0;
}


.hidden {
    display: none;
}

#portfolio-1 {
    background-image: url("../images/portfolio_1.jpg");
}

#portfolio-2 {
    background-image: url("../images/portfolio_2.jpg");
}

#portfolio-3 {
    background-image: url("../images/portfolio_3.jpg");
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    margin: 40px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.portfolio-heading {
    font-size: 50px;
    font-weight: 500;
    letter-spacing: .2em;
}

.portfolio-body {
    font-weight: 200;
}

.photo-grid > div {
    height: 100%;
    padding: 0;
}

.photo-grid .photo {
    height: 50%;
    background-size: cover;
    background-position: center center;
}

#photography .row {
    height: 100%;
}

.photo-grid {
    padding: 0;
    height: 100%;
}

.section#photography {
    padding: 0 !important;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.section#photography .row {
    margin: 0;
}

.section#photography .section-heading {
    padding: 0 15px;
}


#photo-1 {
    background-image: url("../images/photo_1.jpg");
}

#photo-2 {
    background-image: url("../images/photo_2.jpg");
}

#photo-3 {
    background-image: url("../images/photo_3.jpg");
}

#photo-4 {
    background-image: url("../images/photo_4.jpg");
}

#photo-5 {
    background-image: url("../images/photo_5.jpg");
}

#photo-6 {
    background-image: url("../images/photo_6.jpg");
}

#contact .wrapper {
    top: 30%;
    height: auto;
    transform: translateY(-25%);
}

form {
    height: 100%;
    width: 100%;
    max-width: 560px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(25%);
}

form a {
    color: white;
}

form a:hover {
    color: #eee;
}

form textarea {
    max-width: 100%;
}

.form-field.personal-info {
    margin-bottom: 50px;
}

.form-field {
    width: 100%;
    margin-bottom: 10px;
}

.form-field input, .form-field textarea {
    width: 100%;
    border: 0;
    padding: 15px;
    border: 1px solid #6C6E6E;
    background: rgba(0,0,0,0.5);
    outline: none;
}

.form-field input:focus, .form-field textarea:focus {
    background: rgba(0,0,0,0.7);
}


.btn.btn-primary {
    border-radius: 0;
    border: 2px solid #d7d8da;
    background: transparent;
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 12px 20px;
    letter-spacing: 0.2em;
    transition: all 0.2s ease-in-out;
}

.btn.btn-primary:hover, .btn.btn-primary:active {
    background: white;
    color: #333;
}


footer {
    background: rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 15px 0;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

footer:hover {
    opacity: 1;
}

footer p {
    margin: 0;
    padding: 0;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #6C6E6E;
}

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

footer ul li {
    display: inline-block;
    margin-right: 10px;
}

footer a {
    color: #8f8f8f;
    text-decoration: underline;
}

footer a:hover {
    color: white;
}


@media(max-width: 750px) {  
    
    .section {
        margin-bottom: 300px;
    }
    
    .section, .wrapper {
        padding-right: 15px;
    }
    
    .portfolio-image > div {
        height: 50%;
    }
    
    .section-heading {
        display: block;
    }
    
    .wrapper {
        position: relative;
        top: 20px;
        padding: 0;
        transform: translateY(0);
    }
    
    .section#photography h3 {
        margin-bottom: 30px;
    }
    
    .photo-grid {
        padding: 0 15px;
    }
    
    .photo-grid > div {
        height: 50%;
    }
    
    form {
        transform: none;
        padding: 0 15px;
    }
    
    nav .menu-btn {
        display: block;
    }
    
    #vertical_nav {
        left: 100%;
    }
    
    #vertical_nav ul li {
        margin-bottom: 30px;
        font-size: 14px;
    }

    #contact.section {
        margin-bottom: 0;
    }
    
    #contact .wrapper {
        top: 50%;
        height: 100%;
        transform: translateY(-50%);
    }
    
    /* https://gist.github.com/tomhodgins/caf1db7fd7452c02af34 */
    
    #menu-state:checked + nav {
        left: 0;
        background: rgba(0,0,0, 0.8);
    }
    
    #menu-state:checked + nav #vertical_nav {
        left: 0;
    }
    
    #menu-state:checked + nav .close-btn {
        display: block;
    }
    
    #menu-state:checked + nav .menu-btn {
        display: none;
    }
}