/*  Fonts  */
@font-face {
    font-family: 'raleway-regular';
    src: url('../fonts/raleway-regular.eot');
    src: url('../fonts/raleway-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/raleway-regular.woff') format('woff'),
         url('../fonts/raleway-regular.ttf') format('truetype'),
         url('../fonts/raleway-regular.svg#ralewayregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'raleway-bold';
    src: url('../fonts/raleway-bold.eot');
    src: url('../fonts/raleway-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/raleway-bold.woff') format('woff'),
         url('../fonts/raleway-bold.ttf') format('truetype'),
         url('../fonts/raleway-bold.svg#ralewaybold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'raleway-semibold';
    src: url('../fonts/raleway-semibold.eot');
    src: url('../fonts/raleway-semibold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/raleway-semibold.woff') format('woff'),
         url('../fonts/raleway-semibold.ttf') format('truetype'),
         url('../fonts/raleway-semibold.svg#ralewaysemibold') format('svg');
    font-weight: normal;
    font-style: normal;
}

/*  General CSS*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

img{
    max-width: 100%;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    color: #454545;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000; 
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;   
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}

body{
    background: #fff;
}

.wrapper{
    width: 92.72727272727273%;
    margin: 0 auto;
}

header ul.social li a,
.main .work a .caption,
header nav ul li a{
    transition:all .1s linear;
    -webkit-transition:all .1s linear;
    -moz-transition:all .1s linear;
    -o-transition:all .1s linear;
}

h1, h2, h3, h4, h5 ,h6{
    color: #4b4848;
    font-family: "raleway-regular", arial;
    letter-spacing: 1px;
}

h1              { font-size: 2em; margin: .67em 0 }
h2              { font-size: 1.5em; margin: .75em 0 }
h3              { font-size: 1.17em; margin: .83em 0 }
h5              { font-size: .83em; margin: 1.5em 0 }
h6              { font-size: .75em; margin: 1.67em 0 }
h1, h2, h3, h4,
h5, h6          { font-weight: bolder }

.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
 
.clearfix {  
    *zoom 1;  
}

.divider {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

/*  Header  */
@media (min-width:1099px){
    header{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        min-height: 100%;
        background: #ffffff; 
        float: left;
        overflow: hidden;
        z-index: 9999;
    }

    header .logo{
        margin: 50px 35px;
    }

    header nav, header .footer {
        padding: 0 0 0 50px;
    }

    header nav ul{
        display: block;
        overflow: hidden;
        margin-top: 50px;
        list-style: none;
    }

    header nav ul li{
        display: block;
        margin-bottom: 30px;
    }

    header nav ul li a{
        color: #454545;
        font-family: "raleway-regular", arial;
        font-size: 14px;
        text-decoration: none;
        letter-spacing: 1px;
    }

    header nav ul li a:hover{
        color: #969595;
    }

    header .footer{
        position: absolute;
        bottom: 50px;
    }

    header ul.social{
        list-style: none;
        margin-bottom: 5px;
    }

    header ul.social li{
        display: block;
        float: left;
        position: relative;
        margin: 0 5px 15px 0;
    }

    header ul.social li a{
        display: block;
        width: 30px;
        height: 30px;
        background: url('../img/sm.png') no-repeat;
        background-position: 0 0;
    }

    header ul.social li a:hover{
        background: url('../img/sm_hover.png') no-repeat;
    }

    header ul.social li a.ig,
    header ul.social li a.ig:hover{
        background-position: 0 0;
    }

    header ul.social li a.email,
    header ul.social li a.email:hover{
        background-position: -31px 0;
    }


    header .rights p{
        color: #454545;
        font-family: "raleway-regular", arial;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 18px;
    }

    header .rights a{
        font-family: "raleway-bold", arial;
        font-weight: bold;
        text-decoration: none;
    }
    #menu_icon,
    .close_menu{
        display: none;
    }
}

#menu_icon,
.close_menu{
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: url('../img/men_icons.png') no-repeat;
}

#menu_icon{    
    background-position: 0 0;
}
.close_menu{
    background-position: -41px 0!important;
}

/*  Main  */
.main{
    width: 100%;
    height: 100%;
    padding-left: 300px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    z-index: 55;
    background: #ffffff;
    clear: both;
}

/*  Home/portfolio  */
.main .work{
    display: block;
    width: 33.33333333333333%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
}

.main .work .media{
    width: 100%;
    vertical-align: middle;
}

.main .work .caption{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
        background: rgba(255,255,255,0.9);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .35s ease, transform .35s ease;
        will-change: opacity, transform;
}

.main .work a:hover .caption{
        opacity: 1;
        transform: translateY(0);
}

.main .work .media {
        transition: transform .45s cubic-bezier(.2,.8,.2,1);
        will-change: transform;
}
.main .work:hover .media {
        transform: scale(1.04);
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transition: opacity .6s ease;
    will-change: opacity;
}
.fade-in.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { transition: none; transform: none; }
    .main .work .media, .main .work .caption { transition: none; }
}

/* simple lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
}
.lightbox img { max-width: 92%; max-height: 92%; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.lightbox.show { display:flex; }

.work .caption .work_title{
    display: block;
    width: 100%;
    position: absolute;
    text-align: center;
    top: 50%;
    margin-top: -40px;
}

.main .work .caption h1{
    position: relative;
    display: inline-block;
    max-width: 90%;
    padding: 20px 0;
    z-index: 77;
    color: #454545;
    font-family: "raleway-regular", arial;
    font-size: 16px;
    letter-spacing: .5px;
    border-bottom: 1px solid #bfbbbb;
    border-top: 1px solid #bfbbbb;
}

/*  Inner Page  */

.work-nav{
    display: block;
    width: 100%;
}

.work-nav .btn{
    float: right;
}

.work-nav ul{
    list-style: none;
}

.work-nav ul li{
    display: block;
    float: left;
    margin: 0 0 1px 1px;
    position: relative;
}

.work-nav a{
    display: block;
    width: 40px;
    height: 40px;
    background: url('../img/p_navigation.png') no-repeat;
    background-position: 0 0;
}

.work-nav a.previous{
    background-position: 0 0;
}

.work-nav a.grid{
    background-position: -41px 0;
}

.work-nav a.next{
    background-position: -82px 0;
}

.details{
    display: table;
    background: #fff;
    width: 100%;
}

.details.landscape .main-image {
    display: table-row;
    text-align: center;
}

.details.landscape .details-description-row{
    display: table-row;
}

.details.landscape .details-description {
    padding: 30px;
    display: table-cell;
}

.details.portrait .main-image{
    display: table-cell;
    width: 60%;
    text-align: center;
}

.details.portrait .main-image img{
    width: 100%;
}

.details.portrait .details-description{
    padding: 30px;
    display: table-cell;
    vertical-align: top;
    width: 40%;
}

.details-text{
    color: #4b4848;
    font-family: "raleway-regular", arial;
    font-size: 15px;
    padding: 30px 30px;    
}

.details-text p{
    margin-bottom: 20px;
    line-height: 22px;
}

.details-text section{
    margin-bottom: 40px;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6{
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 30px;

}

.details-image img {width: 100%;}
.details-image {
        --i: 0;
}

/* Ensure images inside masonry/grid fade in with staggered delay */
.details-image img {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
}
.details-image.is-visible img {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
    .details-image img, .details-image.is-visible img { transition: none; transform: none; opacity: 1; }
}
.details-image iframe {width: 100%;}

.process-description td{
    vertical-align: top;
}

.process-description th:nth-child(1){
    width: 35%;
    padding: 0 30px;
}

.process-description tr td:nth-child(2){
    padding: 0 30px;
}

.process-description-text{
    color: #4b4848;
    font-family: "raleway-regular", arial;
    font-size: 15px;
    padding: 0px 30px;    
}

.process-description-text p{
    margin-bottom: 20px;
    line-height: 22px;
}

.process-description-text section{
    margin-bottom: 40px;
}


/* fluid 5 columns */
.details-more-images .grid-sizer { width: 20%; }
.details-more-images .details-image.portrait { width: 19.8%; }
.details-more-images .details-image.landscape { width: 39.8%; }

/* fluid 2 columns */
.details-more-images.two-columns .grid-sizer { width: 50%; }
.details-more-images.two-columns .details-image { width: 49.8%; }

/*  Responsive code  */
@media (max-width:1099px){

    header{
        display: block;
        width: 100%;
        min-height: 100px;
        padding: 0;
    }
    header .logo{
        margin: 40px 40px 40px 40px;
        text-align: center;
    }

    header .logo a{
        display: block;
    }
    
    header .footer{
        display: none;
    }
    header #menu_icon,
    header .close_menu{
        margin: auto;
        margin-top: 40px;
    }
    
    header nav{
        width: 100%;
        position: absolute;
        left: 0;
        z-index: 9999;
    }

    header nav ul{
        list-style: none;
        display: none;
        position: relative;
    }
    header nav ul li a{
        display: block;
        width: 100%;
        padding: 30px 0;
        text-align: center;
        color: #454545;
        font-family: "raleway-regular", arial;
        font-size: 14px;
        text-decoration: none;
        border-top: 1px solid #f7f5f5;
        background: #fff;
    }
    header nav ul li a:active{
        background: #f7f5f5;
    }
    #menu_icon,
    .close_menu,
    .show_menu{
        display: block;
    }
    .show_menu{
        display: block;
    }

    .main .work{
        width: 50%;
    }
    .main{
        width: 100%;
        position: relative;
        padding-left: 0;
    }
}

@media (max-width:550px){
     .main .work{
        width: 100%;
    }
}

/* Download CV Button */
.cv-button {
    display: inline-block;
    padding: 20px 50px;
    background: #599586;
    color: #ffffff;
    font-family: "raleway-regular", arial;
    font-size: 16px;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    transition: all .3s ease;
    cursor: pointer;
    will-change: background, transform;
}

.cv-button:hover {
    background: #4a7a6f;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .cv-button { transition: none; transform: none; }
}

/* Download CV Button */
.cv-button {
    display: inline-block;
    padding: 20px 50px;
    background: #599586;
    color: #ffffff;
    font-family: "raleway-regular", arial;
    font-size: 16px;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    transition: all .3s ease;
    cursor: pointer;
    will-change: background, transform;
}



.cv-button:hover {
    background: #4a7a6f;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .cv-button { transition: none; transform: none; }
}