*,
*:before,
*:after {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}
html {
    background-color: #D9D9D9;
}
body {
    font-family: 'Work Sans', sans-serif;
    color: #42463D;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}
@media (min-width: 960px) {
    body {
        font-size: 18px;
    }
}
h1, h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #42463D;
    font-weight: 600;
    margin: 0 0 15px 0
}
@media (min-width: 960px) {
    h1, h2 {
        font-size: 18px;
    }
}
p + h1,
p + h2 {
    margin-top: 35px;
}
* + p {
    margin-top: 15px;
}
p,
ul,
ol {
    margin: 0 0 15px 0;
}

b,
strong {
    font-weight: 600;
}

a,
a:visited,
a:hover {
    color: inherit;
    text-decoration: underline;
}

/*
* Figure
*/
figure img {
    width: 100%;
}
/*
* Figure: tiles
*/
figure.tile figcaption {
    padding-top: 10px;
}
figure.tile figcaption h1,
figure.tile figcaption h2 {
    margin: 0;
}
figure.tile figcaption *:last-child {
    margin-bottom: 0;
}

/*
* Containers
*/
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    background-color: #ECE9E5;
}
@media (min-width: 960px) {
    .container {
        padding: 70px;
    }
}

/*
* Sections
*/
section + section {
    margin-top: 25px;
}
@media (min-width: 960px) {
    section + section {
        margin-top: 50px;
    }
}

.alternating-background section + section {
    margin-top: 0;
}
.alternating-background section .container {
    background-color: transparent;
}
.alternating-background section:nth-child(even) {
    background-color: #ECE9E5;
}
.alternating-background section:nth-child(odd) {
    background-color: #D9D9D9;
}

section.works {
    background-color: #fff;
}
section.works .container {
    background-color: transparent;
}
section.image_grid .container {
    background-color: transparent;
    padding: 0;
}

/*
* Grid: column-reverse-mobile
*/
@media (max-width: 959px) {
    .column-reverse-mobile {
        flex-direction: column-reverse !important;
    }
}

/*
* Header
*/
header {
    z-index: 1000;
    background-color: #9EA19A;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
header.homepage {
    background-color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 960px) {
    header {
        text-align: center;
        height: 110px;
    }
}

/*
* Header: logo
*/
header .logo a {
    display: inline-block;
}
header .logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    padding: 20px 0;
}
@media (min-width: 960px) {
    header .logo img {
        /*padding: 20px 0;*/
        max-width: 420px;
        padding: 20px 0 5px 0;
    }
}

/*
* Header: page-title
*/
header h1.page-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: #42463D;
}
header.homepage h1.page-title {
    color: #9EA19A;
}

/*
* Header: navicon
*/
.navicon {
    position: absolute;
    top: 10px;
    right: 10px;
}
.navicon > a {
    display: inline-block;
}
.navicon img {
    width: 50px;
    height: auto;
    padding: 0;
}
@media (min-width: 960px) {
    .navicon {
        top: 30px;
        right: 25px;
    }
}

/*
* Navigation: sidebar
*/
.uk-offcanvas-bar {
    background-color: #9EA19A;
    padding: 10px 10px;
}
@media (min-width: 960px) {
    .uk-offcanvas-bar {
        padding: 30px 25px 30px 10px;
     } 
}
.uk-offcanvas-bar #sidebar-close {
    text-align: right;
    cursor: pointer;
}
.uk-offcanvas-bar #sidebar-close img {
    width: 50px;
    height: auto;
}
ul.nav {
    text-align: right;
    list-style-type: none;
    margin-top: 10px;
    padding: 0;
}
@media (min-width: 960px) {
    ul.nav {
        margin: 30px 0 0 0;
    }
}
ul.nav > li  {
    border-top: 1px solid #ECE9E5;
}
ul.nav li a,
ul.nav li a:visited {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #ECE9E5;
    transition: color 0.2s;
}
ul.nav li a:hover,
ul.nav li.active a {
    color: #fff;
}

/*
* Main
*/
main {
    margin-top: 70px;
}
@media (min-width: 960px) {
    main {
        margin-top: 110px;
    }
}
header.homepage + main {
    margin-top: 0;
}

/*
* Footer
*/
footer {
    background-color: #3D373C;
    padding: 20px 0;
}
footer .wrapper {
    max-width: 1400px;
    margin: 0 auto;
}
footer .wrapper > div {
    text-align: center;
}
footer img {
    display: inline-block;
    height: 30px;
    width: auto;
}
footer a,
footer a:visited,
footer a:hover {
    vertical-align: middle;
    font-weight: 300;
    color: #ECE9E5;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/*
* Table
*/
table {
    width: 100%;
    border-spacing: 0;
}
table tr {
    border-bottom: 1px solid #fff;
}
table tr:last-of-type,
table tr:last-of-type td {
    border-bottom: 0;
}
table td {
    vertical-align: top;
    line-height: 1.4;
}
table td *:last-of-type {
    margin-bottom: 0;
}

/*
* Table: stack (on small screens)
*/
@media (max-width: 959px) {
    table td:empty {
        display: none !important;
        padding: 0 !important;
    }
    table,
    table tbody,
    table td,
    table th,
    table tr {
        display: block;
    }
    table th,
    table td {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    table td:first-child {
        font-weight: 600;
    }
    table th:not(:last-child),
    table td:not(:last-child) {
        padding-bottom: 2px !important;
    }
    table td:not(:first-child),
    table th:not(:first-child) {
        padding-top: 2px !important;
    }
    table td {
        padding: 10px 0px;
        vertical-align: top;
    }
}

@media (min-width: 960px) {
    table td {
        /*border-bottom: 1px solid #E0D9D4;*/
        padding: 8px 0;
    }
    table td:first-of-type {
        width: 50%;
        padding-right: 10px;
    }
    .uk-modal-container table td {
        padding: 3px 0;
    }
}

/*
* Slideshow
*/
.slideshow .uk-overlay {
    padding: 5px;
}
.slideshow .uk-overlay-primary {
    font-size: 16px;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    color: #fff;
    background-color: transparent;
}
.slideshow a.scroll-down {
    bottom: 30px;
    color: #fff;
}