/** Begin reset */
* {
    margin  : 0;
    padding : 0;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
ol,ul,dl { list-style-position : inside;}

h1,h2,h3,h4,h5,h6 {font-weight: normal;}

input:focus, textarea:focus, img{
    outline: none;
    border:none;
}

body {
    font-family: 'Raleway', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    font-size: 16px;
    background-color: #fefefe;
    height:100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

h1 {
    font-size: 51px;
    color: #7b7b7b;
    line-height: 100%;
}

h2 {
    font-size: 30px;
    color: #8b534d;
    line-height: 100%;
}

h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 100;
    line-height: 100%;
    color: #7b7b7b;
    width:100%;
}

h4 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: #ececec;
    font-weight: 300;
    padding: 8px 25px;
    line-height: 100%;
    backface-visibility: hidden;
    background-color: rgba(0, 0, 0, 0.005);/*windows FireFox prevents black background from showing up*/
}

h5{
    font-size: 16px;
    font-weight: 700;
}

p {
    font-weight: 300;
    color:#ececec;
    font-size: 16px;
}

a:link, a:visited {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    text-decoration: none;
    color:#ececec
}

a:hover {
    color:#933d35;
}

#wrapper {
    margin: 0 auto;
    padding: 0 10px;
    max-width: 1220px;
    min-width: 415px;
    width:100%;
}

#content {
    visibility:hidden;
    padding-top: 45px;
    padding-bottom: 50px;
    margin: 0 auto;
    text-align: left;
}

#header {
    position:relative;
    font-family: 'Playfair Display', serif;
    height: 315px;
    padding-top: 60px;
    width:100%;
    z-index: 1;
    text-align: center;
    overflow:hidden;
}

#header a{
    color:#666666;
}

#header a:hover{
    color:#933d35;
}

#header h3 {
    position:absolute;
    bottom:40px;
}

hr {
    width:160px;
    color:#3b3b3b;
    height: 1px;
    border:none;
    background-color: #9f9f9f;
    margin: 15px auto 7.5px auto;
    text-align: center;

}

.background {
    position:absolute;
    height:315px;
    border-top:5px solid #933d35;
    background-color: #f1f1f1;
    width:100%;
    left:0;
    z-index: 0;
}

.project {
    position:relative;
    display: inline-block;
    margin-right:-5px;
    margin-bottom: -5px;
    min-width: 330px;
    max-width: 380px;
    height:330px;
    overflow: hidden;
    text-align: center;
    color:#ececec;
}

.project hr {
    width:145px;
    background-color: #ececec;
    margin: 0 auto 8px auto;
}

.hit {
    position:absolute;
    width:98%;
    height:98%;
    z-index: 1;
    background-color: rgba(255, 0, 0, 0);
}

.project h3{
    opacity: 0;
    color:#ececec;
    padding-left: 10px;
    padding-right: 10px;
}

.summary {
    text-align: center;
    overflow: hidden;
    width:100%;
    z-index: 0;
}

.overlay {
    display:none;
    position:absolute;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.5);
    width:100%;
    height:100%;
    z-index: 2;
}

.overlay div{
    position:absolute;
    bottom:50px;
    width:100%;
}

.summary img{
    position:relative;
    z-index: 0;
}

.desaturate{
    -webkit-filter: blur(10px) grayscale(0.5);
    -webkit-filter: blur(10px) grayscale(50%);
    filter: blur(10px) grayscale(50%);
}

.resaturate{
    -webkit-filter: blur(0px) grayscale(0);
    -webkit-filter: blur(0px) grayscale(0%);
    filter: blur(0px) grayscale(0%);
}

.summary a{
    display:inline-block;
    opacity: 0;
    line-height: 110%;
}

.summary a:hover{
    color:orange;
}

.project-details {
    display:none;
    position: absolute;
    top:0;
    padding: 10px 0;
    width:100%;
    height:100%;
    color:#ececec;
    background-color: rgba(48, 48, 48, 0);
    z-index: 3;
    cursor:default;
}

.project-details h4{
    padding: 20px 40px 8px 40px;
}


.project-details div{
    position: absolute;
    width:100%;
    bottom:40px;
}

.project-details div p{
    padding-bottom: 15px;
    font-size: 14px;
}

.project-details div p:last-of-type {
    padding-bottom: 30px;
}

.detail-close {
    display:none;
    position:absolute;
    top:5px;
    right:0;
    width:34px;
    height:36px;
    z-index: 10;
}


#ctas .mobile-contact {
    display:none;
}

#ctas .resume {
    opacity:0;
}

#ctas {
    padding-bottom: 45px;
}

h6 {
    font-weight: 100;
    font-size: 16px;
    color: #111111;
}

#footer {
    display:none;
    width: 100%;
    bottom:0;
    border-bottom:5px solid #933d35;
}

#landscape-notification {
    position:absolute;
    display:none;
    width:100%;
    height:100%;
    background-color: #fefefe;
}

#landscape-notification h3{
    display:table-cell;
    /*background-color: transparent;*/
    text-align: center;
    vertical-align: middle;
}

a.red-link {
    opacity: 0;
    background-color: #933d35;
    font-size: 14px;
    width:100%;
    color:#eaeaea;
    font-weight: 300;
    padding: 10px;
    text-align: center;
    margin:0;
    cursor:pointer;
}

a.red-link:hover {
    background-color: #8c8c8c;
}

#mobile-details {
    display:none;
}

a.detail-close {
    display:none;
    width:17px;
    height:18px;
    top:15px;
    right:15px;
}

.detail-close img{
    width:100%;
    height:auto;
}

#load-animation {
    display:none;
    position:absolute;
    background-color: rgba(0,0,0,0.5);
    width:100%;
    height:100%;
    z-index: 20;
    vertical-align: middle;
    text-align: center;
}

#load-animation:before {
    content:' ';
    display:inline-block;
    vertical-align: middle;
    height:100%;
}

#load-animation img{
    display: inline-block;
    vertical-align: middle;
    width:64px;
    height:64px;
}


@media screen and (max-width: 414px) {
    body {
        background-color: #fefefe;
    }

    hr {
        width:160px;
    }

    h1 {
        font-size: 48px;
        line-height: 100%;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        padding-top:10px;
        font-size: 33px;
        color: #7b7b7b;
        font-weight: 100;
    }

    a:link, a:visited, a:active {
        display:inline;
        padding: 10px;
        color:#eaeaea;
        font-size: 16px;
        margin: 0 5px;
        font-weight: 300;
        line-height: 100%;
        width:100%;
    }

    a.red-link:hover {
        background-color: #933d35;
    }

    #wrapper {
        position: absolute;
        width:100%;
        min-width: 0;
        padding: 0;
        z-index: 0;
        height:100px;
    }

    .background {
        height:280px;
    }

    #header {
        text-align: center;
        padding-top:70px;
        padding-left: 0;
        height:320px;
        border-top:5px solid #933d35;
        background-color: #f1f1f1;
        position:relative;
        z-index: 100;
    }

    #header.minimized {
        padding-top:10px;
        height:70px;
        position:fixed;
        top:0;
    }

    #header h3 {
        /*padding-top: 20px;*/
    }

    h1.minimized {
        font-size: 28px;
    }

    h2.minimized {
        font-size: 16px;
    }

    h3.minimized {
        display:none;
    }

    hr.minimized {
        display:none;
    }

    #ctas.minimized {
        display:none;
    }

    .summary a:hover{
        color:#eaeaea;
    }

    #content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .project-details a.red-link{
        display:inline;
    }

    .overlay {
        display:block;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .overlay div h3{
        opacity:1;
    }

    .overlay div a{
        opacity:1;
    }

    .overlay div hr {
        margin-top:8px;
    }

    a.detail-close {
        position:absolute;
        display:inline-block;
        width:34px;
        height:36px;
        top:5px;
        right:5px;
    }

    #header a {
        color:#eaeaea;
        background-color: #8c8c8c;
    }


    #ctas .desktop-contact {
        display:none;
    }

    #ctas .mobile-contact {
        display:inline;
        opacity:0;
    }

    #ctas .resume {
        opacity:0;
    }

    .project {
        max-width: 414px;
        width:100%;
    }

    #ctas {
        padding-top:15px;
        padding-bottom: 40px;
    }

    #footer {
        display:block;
        width:100%;
    }

    #mobile-details {
        display:none;
        position:absolute;
        width:100%;
        /*background-color: #fefefe;*/
        background-color: rgba(254, 254, 254, 0.5);
        z-index: 100;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    #mobile-details h2 {
        font-family: 'Playfair Display', serif;
        color: #7b7b7b;
    }

    #mobile-details h3 {
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 18px;
        color:#8b534d;
        background-color: transparent;
        line-height: 10px;
        padding-top: 5px;
    }

    .detail-head {
        position: absolute;
        border-top:5px solid #933d35;
        padding-top: 15px;
        background-color: rgba(240, 240, 240, 1);
        top:0;
        width:100%;
        height: 85px;
        z-index: 1;
        text-align: center;
    }

    .detail-holder {
        padding-top: 100px;
        padding-bottom: 70px;
        z-index: 0;
        width:100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        text-align: center;
        background-color: rgba(254, 254, 254, 1);
    }

    .detail-holder img{
        margin-bottom: 10px;
        width:90%;
        /*border: 1px solid #d6d6d6;*/
    }

    .detail-foot {
        position: absolute;
        color:#666666;
        width:100%;
        height:70px;
        bottom:0;
        padding-top:13px;
        font-weight: 100;
        z-index: 200;
        text-align: center;
        background-color: rgba(240, 240, 240, 1);
    }

    video {
        width:90%;
        margin-bottom: 10px;
        border: 1px solid #ccc;
    }

    .close-btn {
        position:absolute;
        top:20px;
        right:20px;
    }


}



