* {
    box-sizing: border-box;
    font-family: "Lexend", sans-serif;
}
html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
}
#modal {
    background: #000000f2;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 700ms, visibility 600ms;
}
#modal.active {
    visibility: visible;
    opacity: 1;
}
#modalBody {
    height: 88vh;
    max-width: 88vw;
    margin: 32px auto 0 auto;
    padding: 40px 32px 32px 32px;
    border-radius: 6px;
    display: flex;
    position: relative;
}
#modalClose {
    position: absolute;
    top: 8px;
    right: 12px
}
#modal #closeIcon {
    background-image: url("../images/icon-close.svg");
    width: 16px;
    height: 16px;
    border: none;
    background-repeat: no-repeat;
    cursor: pointer;
}
#scrollImgCont {
    height: 100%;
    background-color: #ffffff;
    display: inline-block;
}
#scrollImgCont.oneCol {
    max-width: 960px;
}
#scrollImgCont.scroll {
    position: relative;
    overflow-y: scroll;
    min-height: 320px;
}
#scrollImgCont:not(.scroll) #scrollImg {
    max-height: calc(90vh - 32px);
    max-width: 100%;
}
#scrollImgCont.scroll #scrollImg {
    display: block;
    width: 100%;
}
a {
    text-decoration: none;
    transition: all 500ms ease;
}
p {
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    margin-top: 0;
    margin-bottom: 24px;
}
p.caption {
    font-size: 14px;
}
h1, .heroHeading {
    font-family: "Philosopher", serif;
    font-size: 42px;
    letter-spacing: .1px;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 6px;
}
h2 {
    font-size: 24px;
    line-height: 34px;
    margin: 32px 0;
    font-weight: normal;
}
h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 500;
}
.heroHeading {
    font-size: 38px;
    font-weight: 600;
    line-height: 48px;
}
header, footer {
    width: 100%;
    padding: 8px 0;
    background: #0D1B13;
    color: #E6E9D3;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: baseline;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 67px;
    transition: transform 300ms ease;
    z-index: 2000;
}
header.hidden {
    transform: translateY(-100%);
}
nav a:not(.current):hover {
    color: #9da960;
}
footer {
    padding: 64px 0 16px 0;
}
footer a {
    color: #9da960;
    font-weight: 400;
    text-decoration: none;
}
footer a:hover {
    color: #C2C96E;
}
.contactDetails {
    padding-top: 12px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #F2F3E780;
}
.contactDetails a {
    margin: 0 6px;
}
.contactDetails a:first-of-type {
    margin-left: 0;
}
.linkedin {
    background-image: url("../images/icon-linkedin.svg");
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-size: cover;
    opacity: .6;
    transition: all 750ms;
}
.linkedin:hover {
    opacity: .9;
}
#credits {
    font-size: 14px;
    text-align: right;
    opacity: .4;
}
#credits p {
    margin: 0;
}
#credits a {
    color: #C2C96E;
}
#credits a:hover {
    color: #E6E9D3;
}
header a {
    color: #E6E9D3;
    text-decoration: none;
    grid-column: 1 / 5;
    margin-left: 16px;
}
header span {
    font-family: "Philosopher", serif;
    font-size: 24px;
}
header nav {
    grid-column: 1 / 13;
    grid-row: 2;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 4px;
}
nav a {
    margin: 0 6px;
    font-weight: 300;
}
nav a:last-of-type {
    margin-right: 0;
}
nav a.current {
    font-weight: 500;
}
footer .footerContent {
    grid-column: 1 / span 12;
    margin-left: 16px;
    margin-right: 16px;
}
#hero.grid {
    padding: 0;
}
.grid {
    margin: 64px auto;
    padding: 64px 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}
.gridImgColL, .gridImgColR {
    grid-column: 3 / span 8;
    margin: 0 auto 32px auto;
}
.gridImgColL img, .gridImgColR img {
    width: 100%;
}
.gridTextColL, .gridTextColR {
    grid-column: 1 / span 13;
    margin: 0 16px;
}
#hero { 
    margin: 0 auto;
    grid-template-rows: min-content; 
}
#heroIntro {
    margin: 64px 16px;
    z-index: 2;
    grid-column: 1 / span 6;
    grid-row: 1;
}
#heroImage {
    min-height: 0;
    height: 100%;
}
#heroImage img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
#heroImage, #heroGradient {
    grid-column: 6 / 13;
    grid-row: 1;
    width: 100%;
    height: 100%;
}

@media (max-width: 766px) {
    #modalBody:not(.oneCol) {
        overflow-y: scroll;
    }
    #hero {
        grid-template-rows: 370px auto;
    }
    #heroIntro {
        grid-column: 1 / 13;
        grid-row: 2;
        margin: 40px 16px 48px;
    }
    #heroImage {
        grid-column: 1 / 13;
        grid-row: 1;
        height: 370px;
        overflow: hidden;
    }
    #heroImage img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #heroGradient {
        display: none;
    }
    .gridTextColL {
        margin-bottom: 32px;
    }
}
@media (min-width: 767px) {
    header {
        height: 43px;
    }
    header nav {
        grid-column: 5 / 13;
        justify-self: end;
        grid-row: 1;
        margin-top: 0;
    }
    #modalBody {
        overflow-y: hidden;
    }
    .gridImgColL, .gridTextColL {
        grid-column: 1 / span 6;
    }
    .gridImgColR, .gridTextColR {
        grid-column: 7 / span 6;
    }
    .gridImgColL, .gridImgColR {
        margin: 0 16px;
    }
}
@media (min-width: 960px) {
    header a {
        grid-column: 2 / 5;
        margin-left: 0;
    }
    header nav {
        grid-column: 5 / 12;
        margin-right: 0;
    }
    footer .footerContent {
        grid-column: 2 / span 10;
        margin-left: 0;
    }
    #heroIntro {
        grid-column: 2 / span 5;
        margin: 96px 0;
    }
    #heroImage, #heroGradient {
        grid-column: 6 / 13;
    }
    .gridImgColL, .gridTextColL {
        grid-column: 2 / span 5;
        margin: 0;
    }
    .gridImgColR, .gridTextColR {
        grid-column: 7 / span 5;
        margin: 0;
    }
}
@media (min-width: 1280px) {
    header a {
        grid-column: 3 / 5;
    }
    header nav {
        grid-column: 5 / 11;
    }
    footer .footerContent {
        grid-column: 3 / span 8;
    }
    #heroIntro {
        grid-column: 3 / span 4;
    }
    .gridImgColL, .gridTextColL {
        grid-column: 3 / span 4;
    }
    .gridImgColR, .gridTextColR {
        grid-column: 7 / span 4;
        margin: 0;
    }
}