:root {
    --gutter: 15px;
    --tilewidth: 50%;
}

@media(min-width: 600px) {

}

@media(min-width: 900px) {
    :root {
        --gutter: 30px;
    }
}

@media(min-width: 1200px) {
    :root {
        --gutter: 45px;
        --max-width: 1110px;
    }
}

@media(min-width: 1600px) {
    :root {
        --gutter: 60px;
    }
}


body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background: #001d2f;
    font-size: 1rem;
    line-height: 1.8;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100vw;
    position: relative;
    font-family: montserrat, sans-serif;
    font-weight: 400;
}

figure, picture, img, figcaption, video {
    width:100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    object-fit: contain;
}

figure {
    position: relative;
}
figcaption {
    font-size: .8em;
    line-height: 1.6em;
    width: 100%;
    display: inline-block;
}

figcaption a {
    text-decoration: none;
}

a {
    color: inherit;
}
li > a, a[class] {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    visibility: hidden;
}

h1,h2,h3,h4,h5,h6,p {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
}

p {
    font-weight: 400;
}

.application {
    background: white;
    min-height: 100vh;
}

header {
    background: #001d2f;
    width: 100%;
    padding: calc(var(--gutter) * 2);
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.logo {
    z-index: 998;
    width: 70px;
    display: inline-block;
}

.logo h1 {
    font-size: .45em;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .25em;
    width: 100%;
    white-space: nowrap;
    text-align: center;
    color: #bf9f51;

}

@media(min-width: 1600px) {
    .logo {
        width: 120px;
    }
}

nav {
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 5;
    font-weight: 500;
    font-size: .8em;
}

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

nav ul li {
    cursor: pointer;
    transition: opacity .3s ease 0s;
    opacity: .7;
}

nav ul li.active a {
    border-bottom: 1px solid rgba(191,159,81,1);
}

nav ul li.active, nav ul li:hover {
    opacity: 1;
}

nav ul li:not(:last-child) {
    margin-right: 22px;
}

@media(min-width: 900px) {

    header {
        padding: unset;
    }

    .logo {
        width: 100px;
        position: absolute;
        left: var(--gutter);
        top: var(--gutter);
    }

    .logo h1 {
        font-size: 0.66em;
    }

    header {
        justify-content: unset;
    }

    nav {
        position: absolute;
        right: 50%;
        margin-right: var(--gutter);
        top: calc(var(--gutter) * 1.5);
    }

    nav ul li:not(:last-child) {
        margin-right: 40px;
    }
}

@media(min-width: 1600px) {
    nav ul li:not(:last-child) {
        margin-right: 45px;
    }
}

main {
    margin: 0 auto;
    padding-top: 0;
}

.hero {
    background: #001d2f;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.hero .content h2 {
    font-family: questa-grande, serif;
    font-weight: 400;
    font-size: 2.3em;
    line-height: 1.2em;
    color: #bf9f51;
    margin-top: 8px;
}

.hero .content {
    z-index: 2;
    padding: 30px;
    margin-bottom: -50px;
}

@media(min-width: 900px) {
    .hero {
        width: 100%;
        margin: 0 auto;
        padding-top: 0;
        padding-bottom: 0;
        height: 100vh;
        flex-direction: unset;
        justify-content: unset;
    }
    
    .hero .content {
        margin-bottom: 0;
        width: 50%;
        align-content: center;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .hero .content .text {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 5;
    }

    .hero h2 span {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media(min-width: 1600px) {
    .hero .content h2 {
        font-size: 2.8em;
    }
}

.hero .content h3 {
    color: #fff;
    font-weight: 500;
    font-size: .85em;
}

.hero .content p {
    font-size: .8em;
    line-height: 1.6em;
    color: #eee;
    margin-top: 15px;
}

.hero .content .project-image {
    max-width: 33%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero .content .project-image picture, .hero .content .project-image picture img {
    position: relative;
}

.hero .content .project-image picture::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: -30px;
    bottom: -30px;
    background: #fff;
}

@media(max-width: 1600px) {
    .hero .content .project-image {
        left: -45px;
    }
}

.hero .content .project-image figcaption {
    color: #fff;
    font-size: .66em;
    font-weight: 500;
    left: -30px;
    z-index: 6;
    position:absolute;
    bottom: -60px;
}

.hero .image {
    position: relative;
}

.hero .image::after {
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .66));
    height: 100%;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    z-index: 1;
}

.hero .more {
    left: 30px;
    bottom: 20px;
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    z-index: 7;
    border: 1px solid #fff;
    border-radius: 100%;
    background: #001d2f;
}

a.more {
    cursor: pointer;
}

a.more span {
    cursor: auto;
}

.hero .more span {
    transform: rotate(90deg);
    color: #fff;
    position: absolute;
    top: -50px;
    font-size: .8em;
    font-weight: 500;
}

.hero .more svg {
    pointer-events: none;
    width: 12px;
    height: 12px;
    fill: #fff;
}

@media(min-width: 900px) {

    .hero .image {
        width: 50%;
        position: relative;
        height: calc(100vh - 3px);
    }

    .hero .image figure, .hero .image figure picture {
        height: 100%;
    }

    .hero .image img {
        object-fit: cover;
        object-position: left bottom;
        height: 100%;
    }

    .hero .image::after {
        content: "";
        background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .66));
        height: 100%;
        position: absolute;
        left: 0;
        width: 80%;
        top: 0;
        z-index: 1;
    }

    .hero .more {
        background: transparent;
        left: 50%;
        bottom: 60px;
        transform: translateX(-50%);
    }

    .hero .more span {
        top: -35px;
        transform: unset;
    }
}

@media(min-width: 1600px) {
    .hero .image::after {
        width: 66%;
        background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .66));
    }
}

.hero .image figcaption {
    position: absolute;
    right: 30px;
    color: #fff;
    bottom: 20px;
    z-index: 3;
    font-weight: 500;
    font-size: .66em;
    width: auto;
    padding: 0;
    display: inline-block;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}


.about, .work {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    background: #f7f7f7;
    padding: calc(var(--gutter) * 2);
}

.about .content {
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: nowrap;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    color: #232323;
}

.about h2, .work h2 {
    font-family: questa-grande, serif;
    font-weight: 400;
    font-size: 1.8em;
    line-height: 1.2em;
    color: #001d2f;
    padding: 5px;
    height: 100%;
    white-space: normal;
}

.about .content .paragraph {
    max-width: 420px;
    font-size: .8em;
    margin-top: 5px;
    margin-bottom: 5px;
}

@media(min-width: 600px) {
    .about h2, .work h2 {
        padding-right: 45px;
        margin-right: 45px;
        height: 100%;
        white-space: nowrap;
        border-right: .5px solid #bf9f51;
    }

    .work h2 {
        border-right: 0 none;
        text-align: center;
        padding: 0;
        margin: 0;
        position: relative;
        width: 100%;
        margin-bottom: var(--gutter);
    }
}

.work {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: calc(var(--gutter)/2);
    padding-bottom: calc(var(--gutter) * 3);
}

.work h2::after {
    content: "";
    top: 100%;
    position: absolute;
    width: 60px;
    height: 1px;
    border-bottom: .5px solid #bf9f51;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--gutter);
}

.grid {
    align-items: flex-start;
    margin-left: 120px;
    margin-right: 120px;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 1020px;
}

.grid .tile {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 60px;
    max-width: 800px;
}

.grid .tile .image {
    padding: 0 45px;
    width: 50%;
}

.rig .tile .image figure {
    position: relative;
}

a[data-fslightbox]::before {
    position: absolute;
    content: '';
    background-image: url(../images/full-width.svg);
    background-size: 12px 12px;
    height: 12px;
    width: 12px;
    bottom: 10px;
    right: 10px;
}

a[data-fslightbox] {
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .66));
}

a[data-fslightbox] img {
    opacity: 1;
    transition: all .3s;
}


a[data-fslightbox]:hover img {
    transition: all .3s;
    opacity: 0.9;
}

.grid .tile .content {
    transition: opacity 0.6s, transform 0.8s cubic-bezier(0.25, 0.05, 0.1, 0.94);
    opacity: 1;
    font-size: .8em;
    width: 50%;
    display: flex;
}

.grid .tile .content .text {
    width: 240px;
}

.grid .tile .content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile h3 {
    font-family: questa-grande, serif;
    font-weight: 400;
    font-size: 1.6em;
    line-height: 1.2em;
    color: #bf9f51;
    margin-bottom: 7px;
}

.tile p {
    font-size: .9em;
}

.tile p.date {
    color: #7f7f7f;
    margin-top: 7px;
    font-size: .8em;
    font-weight: 500;
}

.tile p.readmore {
    color: #001d2f;
    font-weight: 500;
    margin-top: 4px;
}

.tile p.readmore a {
    text-decoration: none;
    display: flex;
    align-content: center;
    align-items: center;
    padding: 4px 0;
}

.tile p.readmore a span {
    transform: translateX(-15px);
    transition: transform .3s ease 0s;
}

.tile p.readmore a::before {
    content: "";
    background: url(../images/arrow-right.svg) no-repeat;
    background-size: 9px 7px;
    margin-right: 6px;
    width: 9px;
    height: 7px;
    top: 1px;
    position: relative;
    opacity: 0;
    transition: opacity .3s ease 0s, transform .3s ease 0s;
}

.tile p.readmore a:hover span {
    transform: translateX(0);
}

.tile p.readmore a:hover::before {
    opacity: 1;
}

.grid .tile .content:first-child {
    justify-content: right;
}
.grid .tile .content:first-child .text {
    text-align: right;
}

.tile .content:first-child p.readmore a {
    justify-content: right;
}

.tile .content:first-child p.readmore a span {
    transform: translateX(0);
}

.tile .content:first-child p.readmore a::before {
    transform: translateX(15px);
}

.tile .content:first-child p.readmore a:hover::before {
    transform: translateX(0);
}

.tile[data-project-no="1"] .content {
    padding-top: 45px;
}

@media(min-width: 1100px) {
    .tile[data-project-no="2"] .image {
        margin-top: -90px;
    }
}

.tile[data-project-no="2"] .content {
    align-content: flex-end;
    align-items: flex-end;
    margin-bottom: 45px;
}

.tile[data-project-no="3"] {
    max-width: 900px;
    margin-top: 120px;
    margin-bottom: 30px;
}

.tile[data-project-no="3"] .content, .tile[data-project-no="3"] .image {
    width: 100%;
    padding: 0;
}

.tile[data-project-no="3"] .image {
    position: relative;
}

.tile[data-project-no="3"] .image::before {
    content: "";
    width: 100%;
    height: calc(100% + 120px);
    position: absolute;
    transform: scaleY(0);
    right: -50%;
    top: -60px;
    background: rgba(0, 29, 47, 20%);
    transition: transform 1s ease;
}

.tile[data-project-no="6"] .image {
    position: relative;
}

.tile[data-project-no="6"] .image::before {
    aspect-ratio: 1/1;
    content: "";
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    background: rgba(0, 29, 47, 20%);
    transition: transform 1s ease;
    @media(max-width: 599px) {
        height: calc(100% + 60px);
        left: -30px;
        top: -30px;
        transform: translateY(0);
    }
}

.tile[data-project-no="7"] {
    flex-direction: column-reverse;
    align-items: flex-end;
    .image {
        width: 100%;
        padding: 0;
    }
    .content {
        padding: 30px 0;
        @media (min-width: 600px) {
            padding: 45px;
        }
    }
}

.tile[data-project-no="3"] .content {
    margin-top: 45px;
    padding-left: 30px;
}
.tile[data-project-no="3"] .content .text {
    width: 520px;
}

.tile[data-project-no="4"] .image figure {
    position: relative;
}

.tile[data-project-no="4"] .image figure::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: -60px;
    bottom: -60px;
    background: rgba(0, 29, 47, 20%);
    display:none;
}

.tile[data-project-no="4"] .image figure picture {
    position: relative;
}

.tile[data-project-no="5"] .image picture + picture {
    margin-top: 0;
}

.tile[data-project-no="5"] .content {
    align-content: flex-end;
    align-items: flex-end;
    margin-bottom: 45px;
    position: relative;
}

.tile[data-project-no="5"] .content p.readmore {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
}

.tile[data-project-no="5"] .content p.readmore .divider {
    padding-left: 15px;
    padding-right: 0;
}

footer {
    background: #001d2f;
    padding: var(--gutter);
    color: #fff;
    display: flex;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8em;
    margin-top: 10px;
}

footer ul a {
    text-decoration: underline;
}

.footer-logo {
    width: 90px;
    display: inline-block;
}

.footer-logo span {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .25em;
    width: 100%;
    white-space: nowrap;
    text-align: center;
    color: #bf9f51;
    float: left;
    font-size: .6em;
    margin-top: -2px;
}

.footer-content {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    align-items: center;
}

.footer-content > *:not(:last-child){
    margin-right: 60px;
}

.footer-content > *:first-child {
    margin-right: 90px;
}

.only-mob {
    display: none;
}

/* Mobile specific styling */
@media(max-width: 600px) {

    .hero .image figcaption {
        text-align: right;
    }

    .only-mob {
        display: block;
    }

    .about .content {
        flex-direction: column;
    }

    .work {
        padding-top: calc(var(--gutter) * 3);
    }

    .work h2::after {
        display: none;
    }

    .work h2 {
        margin-bottom: 20px;
    }

    .grid .tile .image, .grid .tile .content {
        width: 100%;
    }

    .grid .tile .image {
        padding: 0;
    }

    .tile[data-project-no="2"] .image {
        margin-top: 0;
    }

    .grid .tile .content .text {
        width: max-content;
    }

    .tile[data-project-no="1"] {
        margin-top: 40px;
    }
    .tile[data-project-no="3"] .image::before {
        right: -30px;
        width: 75%;
        height: calc(100% + 60px);
        top: -30px;
    }

    .tile[data-project-no="3"] .content {
        padding-left: 0;
    }

    .grid .tile .content:first-child {
        justify-content: left;
    }

    .grid .tile .content:first-child .text {
        text-align: left;
    }

    .tile[data-project-no="5"] .image {
        margin-top: 0;
    }

    .content p.readmore {
        justify-content: left !important;
    }

    .tile .content:first-child p.readmore a {
        justify-content: left;
    }

    .tile p.readmore a::before {
        opacity: 1;
    }

    .tile p.readmore a span {
        transform: unset;
    }

    .tile .content:first-child p.readmore a::before {
        transform: unset;
    }

    .tile[data-project-no="5"] .content p.readmore .divider {
        padding-right: 15px;
    }

    .tile[data-project-no="2"], .tile[data-project-no="5"] {
        flex-direction: column-reverse;
    }

    .tile[data-project-no="2"] .content, .tile[data-project-no="5"] .content, .tile[data-project-no="4"] .content {
        margin-top: 30px;
        margin-bottom: 0;
    }

    .tile[data-project-no="6"] .content {
        margin-top: 60px;
    }

    .tile[data-project-no="1"] .content {
        padding-top: 30px;
    }

    .tile[data-project-no="3"] {
        margin-top: 60px;
        margin-bottom: 0;
    }

    .tile[data-project-no="3"] .image {
        position: relative;
        left: -30px;
    }  

    footer {
        padding: calc(var(--gutter) * 2);
    }

    .footer-content {
        width: 100%;
        flex-direction: column;
        margin: 0;
        align-items: flex-start;
    }

    .footer-content > *:not(:last-child) {
        margin-right: auto;
    }

    .about .content h2 {
        margin-bottom: 20px;
    }

    .tile[data-project-no="1"] .image::before {
        transform: scaleY(0);
        content: "";
        width: 100%;
        height: 350px;
        position: absolute;
        left: 30px;
        top: -20px;
        background: rgba(0, 29, 47, 20%);
    }
}

/* Tablet specific styling */
@media(max-width: 900px) {
    .hidden-mob {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        visibility: hidden;
    }
}

/* lightbox */
.fslightbox-slide-btn {
    background: transparent !important;
    border: 1px solid white;
    border-radius: 100%;
}
