/*@import url('https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:300|Crimson+Text|Open+Sans:400,600,700');*/
@import url('https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:300,400,500,600,700|Barlow:400,500,600|Crimson+Text:400,500|Open+Sans:400,600,700');

*,:after,:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 16px 16px 0;
    background: #f2f2f2;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #757575;
}

a:link {
    color: #ff9900;
    text-decoration: none;
}
a:visited {
    color: #ff9900;
}
a:hover {
    color: #cc6600;
    text-decoration: underline;
}
a:active {
    color: #cc6600;
}

.main {
    max-width: 970px;
    background: #fff;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0px 0px 11.88px 0.12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e1e1;
}

#header {
    background: #fafafa;
    margin-top: 32px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    line-height: 1;
/*    margin-bottom: 72px;*/
    margin-bottom: 48px;
}

.logo {
    padding: 16px 0;
}
.logo a {
    display: block;
    background-image: url('images/logo.png');
    width: 38px;
    height: 38px;
} 

.nav {
    text-align: right;
    flex-grow: 1;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    display: inline-block;
    padding: 0 11px;
}
.nav ul li:last-child {
    padding-right: 0;
}

.nav a:link {
    color: #999;
    text-decoration: none;
}
.nav a:visited {
    color: inherit;
}
.nav a:hover {
    color: #ff9900;
    border-bottom: 1px solid #ffcc66;
    padding-bottom: 4px;
}
.nav a:active {
    color: #cc6600;
    border-bottom: 1px solid #ff9900;
}
.nav a.selected {
    border-bottom: 1px solid #999;
    color: #575757;
    padding-bottom: 4px;
    pointer-events: none;
}


.intro {
    margin: 0 80px 88px;
/*
    font-size: 35px;
    font-weight: 400;
    line-height: 48px;
    font-family: 'Crimson Text', serif;
*/
    text-align: center;
    position: relative;
    padding-top: 24px;
}

.content {
    padding: 0 48px;
}

.section {
    padding-bottom: 40px;
}

h1 {
/*    font-family: 'Barlow Semi Condensed', sans-serif;*/
    font-family: 'Crimson Text', serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 48px;
    font-family: 'Crimson Text', serif;
/*
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 8px;
    padding: 0;
*/
}

h2  {
    margin: 0;
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.section-wrap {
/*    padding-top: 40px;*/
    padding-top: 32px;
}

.section-subheader {
    margin-bottom: 16px;
}
.section-subheader h3 {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: #999;
    font-family: 'Open Sans', sans-serif;
}

.section-describe {}

.section-describe+.section-subheader {
    padding-top: 12px;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    margin-right: -32px;
}

.section-content a {
    border: 7px solid #f4f4f4;
    width: 194px;
    height: 135px;
    margin: 0 32px 32px 0;
    display: block;
}

.section-content a img {
    width: 100%;
}
.section-content a:hover {border-color: #e1e1e1;}
.section-content a:active {border-color: #ccc;}


.border {
    height: 4px;
    background-color: #FFCC80;
    margin-bottom: 16px;
    width: 64px;
}


@media (max-width: 768px) {
    
    .content {
        padding: 0 40px;
    }
}

@media (max-width: 426px) {
    
    body {
        padding: 0;
    }
    
    .main {
/*
        border-left: none;
        border-right: none;
        border-bottom: none;
*/
        border: none;
    }
    
    #header {
        margin-top: 0;
    }
    
    .content {
        padding: 0 32px;
    }
    
    .intro {
        padding-top: 8px;
        margin: 0 40px 64px;
    }
    
    .section-content a {
        width: 43%;
        height: 119px;
        margin: 0 24px 24px 0;
    }
    
    .section {
        padding-bottom: 32px;
    }
    
    .column-one {
        flex-basis: auto;
        margin-right: 0;
    }
    
    .column-two {
        margin-top: 0;
    }
    
    .row-one {
        flex-direction: column;
    }
    
    .row-one div {
        margin-right: 0;
        margin-bottom: 24px;
    }
}

@media (max-width: 376px) {
    
    .intro {
        padding-top: 0;
        margin: 0 32px 56px;
    }
    
    h1 {
        font-size: 30px;
        font-weight: 500;
        line-height: 138%;
    }
    
     .content {
        padding: 0 24px;
    }
    
    .section-content {
        margin-right: 0;
    }
    
    .section-content a {
        margin-right: 0;
        width: 100%;
        height: 225px;
    }
}


@media (max-width: 320px) {
        
    .intro {
        padding-top: 0;
        margin: 0 32px 56px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 138%;
    }
    
     .content {
        padding: 0 24px;
    }
    
    .section-content {
        margin-right: 0;
    }
    
    .section-content a {
        margin-right: 0;
        width: 100%;
        height: 188px;
    }
}

/* CASE STUDY */

.casestudy .section-content, 
.about .section-content {
    margin: 0;
    padding: 0;
    flex-direction: row;
}

.casestudy .section-content a {
    border: none;
    width: auto;
    height: auto;
    margin: 0;
    display: block;
}

.casestudy .column-one {
    display: flex;
    flex-direction: column;
    flex-basis: 70%;
    margin-right: 24px;
}
.casestudy .column-two {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 32px;
}
.casestudy .column-two div {
    margin-bottom: 16px;
}

.casestudy .row-one {
    display: flex;
    padding-bottom: 16px;
    justify-content: space-around;
    width: 100%;
}
.casestudy .row-one div {
    margin-right: 24px;
}
.casestudy .row-one div:last-child {
    margin-right: 0;
}

.about .casestudy  .column-one {
    flex-basis: 20%;
}
.about .casestudy .column-two {}

.casestudy .section-content div img {
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.casestudy .section-content p {
    margin-top: 0;
    padding: 0;
    margin-bottom: 24px;
}

.casestudy .section-content h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #dfdfdf; 
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 5px;
    max-width: 430px;
}

.casestudy h1 {
/*    margin-bottom: 32px;*/
/*    border-bottom: 1px dashed #dfdfdf;*/
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 500;
    letter-spacing: -0.5px;
    padding-bottom: 24px;
}

.casestudy h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 4px;
}

.casestudy .border {
    margin-bottom: 40px;
}

@media (max-width: 426px) {
    
    
    
   .casestudy .column-one {
        flex-basis: auto;
        margin-right: 0;
    }
    
    .casestudy .column-two {
        margin-top: 0;
    }
    
    .casestudy .row-one {
        flex-direction: column;
    }
    
    .casestudy .row-one div {
        margin-right: 0;
        margin-bottom: 24px;
    }
}

/* ABOUT PAGE */

.ilya {
    width: 250px;
    height: 250px;
    background: #BADA55;
    border-radius: 50%;
    background: url(images/ilya-sq.jpg) center no-repeat;
    background-size: 100%;
}
.ilya-border {
    width: 264px;
    height: 264px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Lighbox CSS overwrites */

.lb-data .lb-caption {
    display: inline-block;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 7px;
    margin-top: 3px;
}


#header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    margin-top: 0;
    max-width: 970px;
    /*box-shadow: 0px 7px 21px -6px rgba(0,0,0,0.25);*/
    background-color: #ccc;
    /*border-bottom: 1px solid #ccc;*/
}

/* // */


/* STICKY HEADER */
.sticky .logo {
    padding: 12px 0;
}
.sticky .logo a {
    background-size: 14px 14px;
    background-repeat: no-repeat;
    width: 14px;
    height: 14px;
}

/*.sticky + .intro {
    margin-top: 16px;
}