/* Universal*/

html {
    background-color: rgb(20, 19, 19);
}

body {
    padding: 40px 0 0 35px;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 12pt;
    color: white;
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: none;
}

h3 {
    font-size: 3rem;
    margin-top: 70px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff;
    line-height: 100%;
}

h4 {
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-top: 40px;
}

.scope {
    margin-bottom: 15px;
}

p {
    min-width: 300px;
    max-width: 480px;
    line-height: 150%;
    width: 90%;
    margin-top: 0;
}

.column-text {
    margin-right: 50px;
}

a {
    /* Link color is set to clear */
    color: rgba(0, 0, 0, 0);
}

.nav {
    position: fixed;
    margin-left: 0;
}

.page-content {
    margin-left: 240px;
    position: relative;
    display: flow-root;
}

.kh-icon img {
    width: 60px;
    margin-bottom: 10px;
}

.kh-icon img:hover {
    transition: transform .7s ease-in-out;
    transform: rotate(360deg);
}

.pages a {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    display: block;
    font-size: 11pt;
    margin-bottom: 5px;
}

.nav a:nth-of-type(2) {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

a.page {
    margin-left: -3px;
    padding: 8px;
    padding-left: 10px;
    position: relative;
    color: rgb(255, 255, 255);
    background-color: rgb(20, 19, 19);
    text-decoration: none;
    transition: all 0.5s;
}

.page-selected {
    margin-left: -3px;
    padding: 8px;
    padding-left: 10px;
    position: relative;
    color: rgb(0, 0, 0);
    background-color: #ffffff;
    text-decoration: none;
    transition: all 0.5s;
}

a.page:before {
    content: "";
    display: block;
    width: 0%;
    height: 100%;
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgb(255, 255, 255);
    transition: all 0.2s;
}

a.page:hover {
    color: rgb(20, 19, 19);
}

a.page:hover:before {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

a.page span {
    position: relative;
    z-index: 2;
}

.contact-icon img {
    height: 45px;
    transition: all 0.2s;
}

.hover {
    display: none;
}

.color-change img.default {
    display: inherit;
}

.color-change:hover img.hover {
    display: inherit;
}

.color-change:hover img.default {
    display: none;
}

.dark-on-dark {
    border: solid 1px #ffffff30
}

/* Home Page*/

#introtext {
    margin-bottom: 40px;
}

.project {
    margin-bottom: 0.5%;
}

.project:first-of-type {
    padding-top: 0;
}

.cover img {
    width: 99%;
    object-fit: cover;
    position: center center;
}

.light {
    border: solid 3px #ffffff;
}

/*About Page*/

#about {
    display: flex;
}

#portrait {
    margin-top: 8px;
    margin-right: 30px;
    width: 25vw;
    height: 40vw;
    object-fit: cover;
}

#hobby {
    margin-top: 40px;
}

#hobby .one-one {
    margin-bottom: 0.5vw;
}

#hobby div img {
    width: 20%;
}

/* Project Pages */

.headerimg {
    position: fixed;
    top: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    z-index: 0;
}

.project-content {
    position: relative;
    z-index: 1;
    margin-top: calc(100vh - 175px);
    padding: 20px 2% 20px 0;
    background-color: rgb(20, 19, 19);
    color: white;
}

.project-content div {
    margin: 10px 0 20px 0;
}

h1 {
    font-size: 5.75vw;
    text-wrap: wrap;
    line-height: 100%;
    text-transform: uppercase;
    margin-left: -0.4vw;
    margin-bottom: 20px;
}

.project-content .first {
    margin-bottom: 0;
}

.first h4 {
    margin-bottom: 10px;
}

.project-content div.projectname {
    margin: 0;
    margin-bottom: 2vw;
    height: 130px;
}

.indented {
    padding-left: 40px;
}

.additional-info {
    font-style: italic;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-content div img {
    margin-right: 1%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-content video {
    width: 100%;
}

.project-content .project-text {
    margin-bottom: 40px;
}

.project-content .project-text div {
    margin: 0;
}

.project-content .one,
.one-one,
.one-one-one,
.one-one-one-one,
.two-one,
.half-half-two,
.postcard,
#exhibition-logo {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75vw;
}

.one-one:has(h4) {
    margin-top: 0;
}

.one>* {
    grid-column: span 12;
}

.one-one>* {
    grid-column: span 6;
}

.one-one-one>* {
    grid-column: span 4;
}

.one-one-one-one>* {
    grid-column: span 3;
}

.two-one> :nth-child(1) {
    grid-column: span 8;
}

.two-one> :nth-child(2) {
    grid-column: span 4;
}

.half-half-two,
.postcard,
#exhibition-logo {
    grid-auto-rows: 1fr;
    height: 100%;
}

.half-half-two>*:nth-child(1) {
    grid-column: span 4;
    grid-row: 1;
}

.half-half-two>*:nth-child(2) {
    grid-column: span 4;
    grid-row: 2;
}

.half-half-two>*:nth-child(3) {
    grid-column: 5 / -1;
    grid-row: 1 / 3;
}

.postcard>*:nth-child(1) {
    grid-column: span 7;
    grid-row: 1 / 3;
}

.postcard>*:nth-child(2) {
    grid-column: span 5;
    grid-row: 1;
}

.postcard>*:nth-child(3) {
    grid-column: span 5;
    grid-row: 2;
}

#exhibition-logo>*:nth-child(1) {
    grid-column: span 12;
    grid-row: 1
}

#exhibition-logo>*:nth-child(2) {
    grid-column: span 3;
    grid-row: 2;
}

#exhibition-logo>*:nth-child(3) {
    grid-column: span 3;
    grid-row: 2;
}

#exhibition-logo>*:nth-child(4) {
    grid-column: span 3;
    grid-row: 2;
}

#exhibition-logo>*:nth-child(5) {
    grid-column: span 3;
    grid-row: 2;
}

#titlewall>* {
    grid-column: span 9;
}

.project-content .adjacent {
    display: flex;
    justify-content: space-between;
    margin: 0;
}



/* Modal */

.image-grid img {
    cursor: pointer;
}

.image:hover {
    border: solid 1px rgb(255, 255, 255)
}

.light:hover {
    border: solid 3px rgb(0, 153, 255)
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    margin-left: 240px;
    width: calc(100% - 240px);
    height: 100%;
    background-color: rgba(20, 19, 19, 0.425);
    display: none;
    justify-content: center;
    align-items: center;
}

#current-image {
    width: 60%;
    height: auto;
}

#close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 20px;
}

#previous,
#next {
    cursor: pointer;
    width: 60px;
    height: 60px;
}

@media (max-width: 1425px) {

    #about div {
        display: block;
    }

    #hobby {
        margin-top: 50px;
    }

}

@media (max-width: 1125px) {

    #hobby div img {
        width: 45%;
    }

}

@media (max-width: 950px) {

    #about {
        display: block;
    }

    #portrait {
        width: 60vw;
        height: 60vw;
        margin-bottom: 10px;
    }

    .project-content .one,
    .one-one,
    .one-one-one,
    .one-one-one-one,
    .two-one,
    .half-half-two,
    .postcard,
    #exhibition-logo {
        display: flex;
        flex-wrap: wrap;
    }

    .project-content div img,
    .project-content div video {
        width: 48%;
        height: auto;
        margin: 0.1vw 0;
    }

    .project-content .one img,
    .project-content .one video {
        width: 100%;
    }

    .project-content .adjacent {
        display: block;
    }
}

@media (max-width: 630px) {

    html {
        margin: 25px;
    }

    body {
        padding: 0;
        margin: 0;
        font-size: 11pt;
    }

    .nav {
        position: relative;
        margin-bottom: 20px;
    }


    .kh-icon img {
        width: 50px;
        margin-bottom: 8px;
    }

    .nav a {
        font-size: 10pt;
        margin-bottom: 3px;
    }

    .nav a:nth-of-type(2) {
        letter-spacing: 0.1em;
    }

    a.page {
        margin-left: 0;
        padding-left: 0;
        transition: none;
    }

    .page-selected {
        margin-left: 0;
        padding-left: 0;
        color: white;
        background-color: rgba(0, 0, 0, 0);
        border-bottom: solid 1px white;
        transition: none;
    }

    .page-content {
        margin: 0;
    }

    .headerimg {
        position: relative;
        width: 100%;
    }

    .project-content {
        margin: 0;
        padding-top: 10px;
    }

    .project-content div.projectname {
        margin-bottom: 2vw;
        height: 100%;
    }

    h1 {
        font-size: 10.5vw;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 14pt;
    }

    .project-content div img,
    .project-content div video {
        width: 100%;
    }

    .project-content #logo-sketches,
    .project-content #logo-iterations {
        display: flex;
    }

    .project-content #logo-sketches img,
    .project-content #logo-iterations img {
        width: 48%;
    }


    .image:hover {
        border: solid 1px #ffffff30
    }

    .light:hover {
        border: solid 3px #ffffff
    }

    #modal {
        background-color: rgba(0, 0, 0, 0);
    }

    #current-image,
    #close,
    #previous,
    #next {
        display: none;
    }

}