@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

/* -------------- */
/* Pre-setup */
/* ------------------------------------------------------ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}


html,
body {
    overflow-x: hidden;
    font-family: "Jost", sans-serif;
    background-size: 5em 5em;
    background-color: #f0efeb;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.double {
    background-size: cover;
    position: relative;
    cursor: pointer;
}

.double::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.double:hover::before {
    opacity: 0.25;
}

a {
    white-space: nowrap;
    position: relative;
}

a::before,
a::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #000;
    top: 100%;
    left: 0;
    pointer-events: none;
}

a::before {
    content: '';
}


a::before {
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
}

a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 25;
    display: flex;
}

.bar {
    width: 10vw;
    height: 105vh;
    background-color: #dfdedc;
}

.counter {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1000;
    font-size: 15vw;
    padding-right: 5vw;
    pointer-events: none;
}

/* -------------- */
/* Nav section */
/* ------------------------------------------------------ */

nav {
    background-color: #222222;
    position: fixed;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vh 3vw;
    font-weight: 450;
    font-size: .9vw;
    z-index: 10;

    a::before,
    a::after {
        background: #fff;
    }

    .home_icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .logo_top {
            font-size: 1.1vw;
        }

        .logo_bottom {
            margin-top: -1vh;
        }


    }

    .nav_cat {
        display: flex;
        gap: 2vw;
    }

    a {
        text-transform: uppercase;
        text-decoration: none;
        color: #fff;
    }
}

.mobile_nav {
    display: none;
    width: 100vw;
    height: max-content;
    padding: 2.5vh 5vw;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background-color: #f0efeb;

    .mobile_icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-transform: uppercase;
        font-weight: 600;
        color: #000;
        text-decoration: none;

        .logo_top {
            font-size: 4vw;
        }

        .logo_bottom {
            margin-top: -0.75vh;
        }


    }

    .menu_lines {
        display: flex;
        flex-direction: column;
        gap: .5vh;
        padding: 1vh 0;
        z-index: 16;
        cursor: pointer;

        .line {
            width: 7.5vw;
            height: 0.25vh;
            background-color: #000;
            transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        }

        input[type="checkbox"] {
            display: none;
        }

    }

    .mobile_nav_items {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        z-index: 15;
        background-color: #f0efeb;
        gap: 2.5vh;

        a {
            text-align: center;
            text-decoration: none;
            color: #000;
            font-size: 7.5vw;
            text-transform: uppercase;
        }

        .mobile_socials{
            display: flex;
            gap: 5vw;
        }


    }

}

/* -------------- */
/* Commissioned work section */
/* ------------------------------------------------------ */

.com_work_section,
.headshots_section{
    width: 100vw;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    padding: 40vh 3vw 20vh 3vw;
    position: relative;
    row-gap: 10vh;
    column-gap: 2.5vw;

    .work_type {
        position: absolute;
        top: 25vh;
        left: 50%;
        transform: translate(-50%,-50%);
        font-size: 1.5vw;
        text-transform: uppercase;
        font-weight: 600;
    }

    .com_work,
    .headshot{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5vh;

        .com_work_title,
        .headshot_title{
            width: max-content;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: #000;
            cursor: pointer;

            i {
                transform: rotate(-45deg);
            }

            .com_work_name,
            .headshot_name{
                text-transform: uppercase;
                text-align: center;
                font-size: 1.25vw;
                font-weight: 600;
            }

        }

        .shoot_image,
        .headshot_image{
            width: 30vw;
            height: 70vh;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
        }

        .view_more_person_btn {
            width: max-content;
            margin-bottom: 4vh;
            text-decoration: none;
            font-size: 1.25vw;
            color: #000;
            cursor: pointer;
        }

    }
}


/* -------------- */
/* Footer section */
/* ------------------------------------------------------ */


footer {
    margin-top: 10vh;
    padding: 10vh 3vw;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;

    a {
        text-decoration: none;
        color: #000;
        width: max-content;
        height: max-content;
        text-transform: uppercase;
    }

    span {
        cursor: pointer;
    }

    .footer_nav {
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }

    .footer_line {
        position: absolute;
        top: 0;
        left: 3vw;
        padding: 0 3vw;
        width: 94vw;
        height: 0.2vh;
        background-color: #000;
    }

}

.mobile_footer {
    margin-top: 10vh;
    padding: 5vh 3vw;
    position: relative;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 2.5vw;
    display: none;

    a {
        text-decoration: none;
        color: #000;
        width: max-content;
        height: max-content;
        text-transform: uppercase;
    }

    span {
        cursor: pointer;
    }

    .footer_nav {
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }

    .footer_line {
        position: absolute;
        top: 0;
        left: 3vw;
        padding: 0 3vw;
        width: 94vw;
        height: 0.15vh;
        background-color: #000;
    }

}

/* -------------- */
/* Responsive section */
/* ------------------------------------------------------ */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) and (orientation: portrait) {
    nav {
        display: none;
    }

    .mobile_nav {
        display: flex;
    }

    /* Commissioned work section */


    .com_work_section,
    .headshots_section{
        grid-template-columns: 1fr 1fr;
        padding: 25vh 5vw 10vh 5vw;
        row-gap:5vh;
        column-gap: 5vw;

        .work_type {
            width: max-content;
            top: 16vh;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 4.5vw;
        }

        .com_work,
        .headshot{
            gap: 1vh;

            .com_work_title,
            .headshot_title{

                .com_work_name,
                .headshot_name{
                    font-size: 2.25vw;
                }

            }

            .shoot_image,
            .headshot_image{
                width: 45vw;
                height: 35vh;
                background-size: cover;
            }

            .view_more_person_btn {
                margin-bottom: 0vh;
                font-size: 3vw;
            }

        }
    }


    footer {
        display: none;
    }

    .mobile_footer {
        display: flex;
    }

}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-device-width: 1028px) and (orientation: portrait) {

    nav {
        display: none;
    }

    .mobile_nav {
        display: flex;
    }

    .double__img {
        background-position: 50% 10%;
    }

    /* Commissioned work section */

    .com_work_section,
    .headshots_section{
        grid-template-columns: 1fr 1fr;
        padding: 25vh 5vw 10vh 5vw;
        row-gap:5vh;
        column-gap: 7.5vw;

        .work_type {
            width: max-content;
            top: 15vh;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 4vw;
        }

        .com_work,
        .headshot{
            gap: 1vh;

            .com_work_title,
            .headshot_title{

                .com_work_name,
                .headshot_name{
                    font-size: 2.25vw;
                }

            }

            .shoot_image,
            .headshot_image{
                width: 45vw;
                height: 35vh;
                background-size: cover;
            }

            .view_more_person_btn {
                margin-bottom: 0vh;
                font-size: 3vw;
            }

        }
    }

    footer {
        display: none;
    }

    .mobile_footer {
        display: flex;
    }
}

@media only screen and (min-width: 600px) and (max-device-width: 1028px) and (orientation: landscape) {
    footer {
        display: flex;
    }

    .mobile_footer {
        display: none;
    }
}