/* -------------------- */
/* Hero */
/* -------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 140px 8% 80px;
    margin: 0;
    max-width: none;
    overflow: hidden;
    margin-bottom: 10px;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    /* filter: grayscale();
	*/
    object-fit: cover;
    opacity: 100%;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    line-height: .88;
    font-weight: 500;
    margin-bottom: 35px;
    margin-left: -5px;
    margin-top: -15%;
    color: #000;
}

.hero-text p {
    color: #000;
    font-size: 1.15rem;
    max-width: 420px;
}

/* -------------------- */
/* Projects */
/* -------------------- */
.projects {
    max-width: 1500px;
    margin: auto;
    padding: 0 8%;
}

.projects h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 60px;
}

/* Optional filter buttons */
.categories {
    margin-top: 50px;
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.categories button {
    background: none;
    color: white;
    border: 1px solid #444;
    padding: 12px 22px;
    cursor: pointer;
    transition: .3s;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.categories button:hover,
.categories .active {
    background: var(--accent);
    color: #111;
}

/* Horizontal layout */
/* ============================= */
/* Project Grid */
/* ============================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 70px;
    align-items: stretch;
}

/* ============================= */
/* Project Card */
/* ============================= */
.project-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    transition: transform .35s ease;
}

/* ============================= */
/* Project Image */
/* ============================= */
.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-card:hover img {
    transform: scale(1.025);
}

/* ============================= */
/* Project Information */
/* ============================= */
.project-card .overlay {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px 0 25px;
    background: none;
}

/* Category */
.project-card .overlay span {
    display: block;
    color: var(--accent);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-bottom: 10px;
}

/* Project title */
.project-card .overlay h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 8px;
}

/* Composer / author */
.project-card .overlay p {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1;
    margin: -5px 0 0;
}

.project-card .overlay br {
    display: block;
    content: "";
    margin-bottom: 4px;
}

/* ============================= */
/* Hover */
/* ============================= */
.project-card:hover {
    transform: translateY(-3px);
}

/* ============================= */
/* Project Image Carousel */
/* ============================= */
.carousel {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, .96);
    padding: 40px 90px;
}

/* Carousel is visible */
.carousel.open {
    display: flex;
}

/* ============================= */
/* Image & Video */
/* ============================= */
.carousel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#carousel-image {
    display: none;
    width: 75%;
    height: 75%;
    max-width: 85vw;
    max-height: 82vh;
    object-fit: contain;
}

#carousel-video {
    display: none;
    width: 85vw;
    height: 70vh;
    max-width: 1200px;
    max-height: 675px;
    border: none;
}

/* ============================= */
/* Counter & Information */
/* ============================= */
.carousel-counter {
    margin-top: 18px;
    color: #888;
    font-size: .75rem;
    letter-spacing: .15em;
}

#carousel-information {
    margin-top: 15px;
    color: #888;
    font-size: .9rem;
    line-height: .9;
}

/* ============================= */
/* Buttons */
/* ============================= */
.carousel-close,
.carousel-prev,
.carousel-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: color .25s ease, opacity .25s ease;
}

.carousel-close:hover,
.carousel-prev:hover,
.carousel-next:hover {
    color: var(--accent);
}

/* Close */
.carousel-close {
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
}

/* Previous */
.carousel-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

/* Next */
.carousel-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

/* ============================= */
/* Tablet */
/* ============================= */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
}

/* ============================= */
/* Mobile */
/* ============================= */
@media (max-width:700px) {
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    nav ul {
        gap: 20px;
        margin-right: 0;
        white-space: nowrap;
    }

    nav li {
        font-size: clamp(0.55rem, 2.5vw, 0.72rem);
        letter-spacing: .08em;
        white-space: nowrap;
    }

    .projects {
        padding: 80px 15px;
    }

    .categories {
        margin-top: -50px;
    }

    .projects h2 {
        font-size: 2.8rem;
    }

    .overlay h3 {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 0 60px;
        gap: 0;
    }

    .hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 60vh;
        order: 1;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% center;
    }

    .hero-image::after {
        display: none;
    }

    .hero-text {
        position: relative;
        order: 2;
        width: 100%;
        max-width: none;
        padding: 40px 7% 0;
    }

    .hero-text h1 {
        font-size: 3rem;
        color: #fff;
        margin-bottom: -20px;
        margin-top: 0;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .carousel {
        padding: 30px 20px;
    }

    #carousel-image {
        max-width: 92vw;
        max-height: 78vh;
    }

    #carousel-video {
        width: 92vw;
        height: 52vw;
        max-height: 70vh;
    }

    .carousel-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }

    .carousel-prev {
        left: 12px;
        font-size: 1.4rem;
    }

    .carousel-next {
        right: 12px;
        font-size: 1.4rem;
    }

    .carousel-counter {
        margin-top: 5px;
        font-size: .65rem;
    }

    #carousel-information {
        font-size: .75rem;
    }
}

@media (max-width: 600px) {
    .project-grid {
        row-gap: 50px;
    }

    .project-card .overlay {
        padding-top: 18px;
    }

    .project-card .overlay h3 {
        font-size: 2rem;
    }

    .categories button {
        padding: 12px 10px;
    }
}

@media (max-width: 500px) {
    .categories button {
        font-size: .7rem;
    }
}
