/* style.css */

body, a, h1, p, h2, li, ol, figcaption, sup, button {
    font-family: 'Armata';
    margin: 0;
    animation: fade-in 0.8s ease;
}

nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 18pt;
    height: fit-content;
    transition: all 0.8s;
    position: sticky;
    z-index: 999;
    top: 0vh;
    height: 8vh;
    line-height: 8vh;
    background: white;
}

nav a, nav p {
    padding-left: 2vw;
}

.nav-list a {
    padding-left: 0;
}

#project-h2 {
    width: 100%;
    text-align: center;
    margin-bottom: -12vh;
}

a {
    cursor: pointer;
    color: black;
    text-decoration: none;
}

footer p {
    text-align: center;
    width: 100%;
}

body::-webkit-scrollbar, 
.container::-webkit-scrollbar, 
.grid-span::-webkit-scrollbar, 
.grid-divide::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: none;
    grid-template-columns: 1fr 1fr;
    background: white;
    width: 100%;
    position: absolute;
    top: 8vh;
    gap: 2vw;
    font-size: 14pt;
    font-weight: lighter;
    list-style-type: none;
    margin: 0;
    line-height: 18pt;
    transition: all 0.3s ease-in-out;
    color: black;
    padding-bottom: 2vh;

}

nav li {
    padding-right: 6vw;
}

footer {
    margin-bottom: 2vh;
    width: 100vw;
    margin-top: 8vh;
}

footer ol {
    display: grid;
    text-align: center;
    list-style-type: none;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    text-transform:lowercase;
}

.left-field sup {
    position: relative; top: 2vh;
}

.project-wrapper {  
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.images-wrapper {
    margin: 0;
    width: 95vw;
    gap: 2vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.container {
    width: 100vw;
    overflow: hidden;
    scroll-snap-align: inherit;
    scroll-snap-type: proximity;
    scroll-behavior: smooth;
}
  
.image-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw; 
}
  
.image-wrapper img {
    width: 50vw;
    height: 98vh;
    object-fit: cover;
}

.project-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vw;
    padding-top: 10vh;
    margin: 2%;
}

.project-wrapper figcaption {
    font-size: 18pt;
    line-height: 24pt;
}

.project-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    aspect-ratio: 1.2 / 0.8; 
}

.img-proportion-retainer {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.project-page sup {
    font-size: 12pt;
    line-height: 8pt;
}

.sequencer {
    display: grid;
    width: 100vw;
}

.sequencer img {
    width: 100%;
    opacity: 1;
}

@font-face {
    font-family: 'Armata';
    src: url('Armata-Regular.woff2') format('woff2'),
        url('Armata-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.project-page {
    display: grid;
    grid-template-columns: 25vw 75vw;
    height: 100vh;
    margin-top: -10vh;
}

.left-field {
    padding: 2vw;
    overflow-y: hidden;
    position: sticky; top: 0;
}

.right-field {
    overflow-y: scroll;
    display: grid;
    grid-auto-rows:max-content;
    gap: 1vh;
}

.right-field img {
    width: 100%;
    height: 100%;
    object-fit:contain;
}

button {
    font-size: 1em;
    cursor: pointer;
    background: none; border: none; 
}

button .container {
    border-bottom: 2px solid;

}

button:hover {
    transition: 0.8s ease;
}

.project-page p {
    margin-top: 1vh;
}

.figmobile {display: none;}
.figdesktop {display: block;}

/* Responsive Styles */
@media (max-width: 600px) {

    .figmobile {display: block; padding: 2%;}
    .figdesktop {
        display: none;
    }

    .nav-list {
        display: none;
        grid-template-columns: 1fr;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
        background: white;
        position: absolute;
        text-align: left;
        top: 8vh;
        font-size: 10pt;
        font-weight: lighter;
        list-style-type: none;
        margin: 0;
        line-height: 18pt;
        transition: all 0.3s ease-in-out;
        color: black;
        padding-bottom: 2vh;
        padding-top: 2vh; 
    }

    .button-nav {
        border-bottom: 2px solid black;
        width: 96%;
        margin: 0; padding: 0;
    }

    .left-field button {
        margin: 0; padding: 0;
    }

    .left-field p {
        font-size: 10pt;
        margin-right: 4%;
    }

    .left-field sup {
        font-size: 8pt; margin-right: 4%;
    }

    nav li {
        margin: 2%;
        padding-right: 12vw;
    }

    body, .project-page, .project-wrapper {
        overflow-x: hidden;
        animation: fade-in 0.4s ease-in-out;
    }

    body::-webkit-scrollbar, .project-page::-webkit-scrollbar, .project-wrapper::-webkit-scrollbar {
        display: none;
    }

    nav {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        height: auto;
    }

    nav a, nav p {
        margin: 0;
        border-bottom: 2px solid black;
    }

    nav a { border-right: 2px solid black;}

    .project-wrapper {
        grid-template-columns: 1fr;
    }

    .project-page {
        grid-template-columns: 1fr;
    }

    .left-field, .right-field {
        width: 100%;
        padding: 2vw;
    }

    .left-field {
        overflow-y: visible;
        height: fit-content;
        margin-bottom: 2vh;
    }

    .project-wrapper figcaption, #project-h2 {
        font-size: 12pt;
    }

    #project-h2 {
        height:fit-content; 
        height: 6vh;
    }

    footer ol {
        border-top: solid 2px black;
        padding-top: 2vh;
        grid-template-columns: 1fr;
        grid-row-gap: 1vh;
        font-size: 10pt;
    }

    .image-wrapper {
        height: 53vh;
    }

    .sequencer img {
        max-height: 50vh;
    }

}
