*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: #fafaf8;
    color: #111;
}

.site-header {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;

    padding: 0 50px;

    display: flex;
    justify-content: center;
    
    z-index: 100;
}


.logo {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a{
    text-decoration: none;
    color: #111;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}


.intro{
    padding: 140px 50px 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

}

.intro h1{
    font-family: "DM Serif Display", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 0.95;
}

.intro p{
    margin-top: 8px;
    font-size: 30px;
    font-style: italic;
    color: #777;
    text-align: right;

}

.work {
    padding: 80px 10px;
}

.work-row{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 18px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-row::-webkit-scrollbar {
    display: none;
}


.work-row img{
    width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    flex-shrink: 0;
}

.work h2{
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin: 0 0 30px 50px;
}

.gallery-wrapper{
    position: relative;
}

.gallery-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    
    color: white;
    font-size: 24px;
    cursor: pointer;
    
    z-index: 20;

    opacity: 0;
    transition: opacity .3s;
}

.gallery-wrapper:hover .gallery-btn{
    opacity: 1;
}

.prev{
    left: 20px;
}

.next{
    right:20px;
}

.about{
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 80px;

    max-width: 1400px;
    margin: 0 auto;

    padding: 100px 50px;
}

.about-image{
    display: flex;
    justify-content: center;
}

.about-image img{
    width: 100%;
    max-width: 480px;
    display: block;
}

.about-content{
    max-width:500px;

}

.about-content p{
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom:20px;
}

.email-link{
    color: #777;
    text-decoration: none;
    font-style: italic;
}

.email-link:hover{
    color: #555;
}

@media (max-width: 768px) {

    .site-header{
        position: fixed;
        top: 0;
        left: 0;
        padding: 24px 0;
        background: #fafaf8;


        display: flex;
        justify-content: center;

        background: rgba(250, 250, 248, 0.9);
        backdrop-filter: blur(8px);

        z-index: 1000;
    }

    .nav{
        gap: 28px;
    }

    .nav a{
        font-size: 12px;
    }

    .intro{
        padding: 140px 24px 10px;
    }

    .intro h1{
        font-size: 38px;
        line-height: 1;
    }

    .intro p{
        font-size: 18px;
        text-align: right;
        padding-right: 2px;
    }

    .work{
        padding: 50px 0;
    }

    .work h2{
        font-size: 12px;
        margin: 0 0 20px 24px;
    }

    /* Vertical gallery on mobile */

    .work-row{
        display: flex;
        flex-direction: column;

        gap: 12px;

        overflow-x: visible;
        overflow-y: visible;

        padding: 0 24px;
    }

    .work-row img{
        width: 100%;
        max-width: 100%;

        flex-shrink: 1;
    }

    .gallery-btn{
        display: none;
    }

    .duplicate{
        display: none;
    }

    .about{
        min-height: auto;

        display: flex;
        flex-direction: column;

        gap: 40px;

        padding: 120px 24px 60px;
    }

    .about-image{
        width: 100%;
    }

    .about-image img{
        width: 100%;
        max-width: none;
    }

    .about-content{
        max-width: 100%;
    }

    .about-content p,
    .about p{
        font-size: 16px;
        line-height: 1.7;
    }
}

