/* --------------------
   RESET
-------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* --------------------
   PAGE
-------------------- */

body {
    background: #0b0b0b;
    color: #f2f2f2;

    font-family: Arial, Helvetica, sans-serif;

    padding: 0 5%;
}


/* --------------------
   HEADER
-------------------- */

header {
    height: 90px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 18px;
    font-weight: 500;

    letter-spacing: 1px;
}

nav {
    display: flex;

    gap: 30px;
}

nav a {
    color: #f2f2f2;

    text-decoration: none;

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* --------------------
   HERO
-------------------- */

.hero {
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 25px;
}

.hero h2 {
    max-width: 1100px;

    font-size: clamp(42px, 6vw, 100px);

    font-weight: 400;

    line-height: 0.95;
}


/* --------------------
   WORK SECTION
-------------------- */

#work {
    padding: 80px 0 120px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 28px;

    font-weight: 500;
}

.section-heading p {
    color: #888;

    font-size: 13px;
}


/* --------------------
   FILTERS
-------------------- */

.filters {
    display: flex;

    gap: 20px;

    margin-bottom: 30px;
}

.filter-button {
    position: relative;

    background: none;

    border: none;

    padding: 0;

    color: #777;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    cursor: pointer;
}

.filter-button:hover {
    color: #f2f2f2;
}

.filter-button.active {
    color: #f2f2f2;
}

.filter-button.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -6px;

    height: 1px;

    background: #f2f2f2;
}


/* --------------------
   GALLERY
-------------------- */

.gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.work-card {
    display: flex;

    flex-direction: column;

    gap: 10px;

    cursor: pointer;

    transition: opacity 0.25s ease;
}

.work-card:hover {
    opacity: 0.75;
}

.work-image {
    width: 100%;

    height: auto;

    display: block;
}

.work-card h3 {
    font-size: 18px;

    font-weight: 500;
}

.work-card p {
    color: #888;

    font-size: 13px;
}


/* --------------------
   PROJECT MODAL
-------------------- */

.project-modal {
    position: fixed;

    inset: 0;

    display: none;

    z-index: 1000;

    background: #0b0b0b;

    padding: 60px 5%;

    overflow-y: auto;
}

.project-modal.open {
    display: block;
}

.close-modal {
    position: fixed;

    top: 25px;
    right: 5%;

    z-index: 1001;

    background: none;

    border: none;

    color: #f2f2f2;

    font-size: 40px;

    cursor: pointer;
}


/* --------------------
   PROJECT LAYOUT
-------------------- */

.project-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.8fr);

    gap: 80px;

    align-items: start;

    max-width: 1600px;

    margin: 0 auto;
}

.project-info {
    position: sticky;

    top: 80px;
}

.project-info h2 {
    margin-bottom: 20px;

    font-size: 42px;

    font-weight: 400;
}

#modal-meta {
    margin-bottom: 30px;

    color: #888;
}

#modal-description {
    max-width: 500px;

    line-height: 1.6;
}


/* --------------------
   SINGLE IMAGE
-------------------- */

.modal-image {
    width: 100%;

    height: auto;

    display: block;
}


/* --------------------
   VIDEO
-------------------- */

.modal-video {
    width: 100%;

    height: auto;

    display: none;
}


/* --------------------
   AUDIO
-------------------- */

.modal-audio {
    width: 100%;

    display: none;

    margin-top: 20px;
}


/* --------------------
   MULTI-IMAGE GALLERY
-------------------- */

.modal-gallery {
    display: none;

    flex-direction: column;

    gap: 30px;
}

.modal-gallery img {
    width: 100%;

    height: auto;

    display: block;
}


/* --------------------
   PREVIOUS / NEXT
-------------------- */

.project-nav {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid #333;
}

.project-nav button {
    background: none;

    border: none;

    color: #f2f2f2;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    cursor: pointer;
}

.project-nav button:hover {
    color: #888;
}


/* --------------------
   ABOUT
-------------------- */

#about {
    padding: 120px 0;

    border-top: 1px solid #222;
}

.about-text {
    max-width: 900px;

    font-size: clamp(24px, 3vw, 46px);

    line-height: 1.15;

    font-weight: 400;
}


/* --------------------
   FOOTER
-------------------- */

footer {
    padding: 40px 0;

    border-top: 1px solid #222;

    color: #666;

    font-size: 12px;

    letter-spacing: 1px;
}


/* --------------------
   MODAL ANIMATION
-------------------- */

@keyframes projectFadeIn {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

.project-modal.open .project-content {
    animation: projectFadeIn 0.35s ease;
}


/* --------------------
   TABLET
-------------------- */

@media (max-width: 900px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .project-info {
        position: static;

        max-width: 700px;
    }

}


/* --------------------
   PHONE
-------------------- */

@media (max-width: 600px) {

    body {
        padding: 0 20px;
    }


    /* HEADER */

    header {
        height: 70px;
    }

    header h1 {
        font-size: 15px;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 11px;
    }


    /* HERO */

    .hero {
        min-height: 65vh;
    }

    .eyebrow {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .hero h2 {
        font-size: clamp(38px, 12vw, 60px);
    }


    /* WORK */

    #work {
        padding: 60px 0 80px;
    }

    .section-heading {
        align-items: flex-start;

        gap: 20px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .filters {
        flex-wrap: wrap;

        gap: 14px;
    }

    .gallery {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* PROJECT */

    .project-modal {
        padding: 80px 20px 40px;
    }

    .close-modal {
        top: 20px;

        right: 20px;
    }

    .project-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .project-info {
        position: static;
    }

    .project-info h2 {
        font-size: 32px;
    }

    .project-nav {
        margin-top: 40px;
    }


    /* ABOUT */

    #about {
        padding: 80px 0;
    }

}