/* ---------- Project Hero Section ---------- */

.project-hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

.project-hero__media {
    position: relative;

    width: 85vw;
    max-width: 1600px;
    min-width: 320px;
    margin-bottom: 50px;
    height: clamp(320px, 65vh, 520px);

    border-radius: 24px;
    overflow: hidden;

    box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.12),
            0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Image fill */
.project-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Readability gradient */
.project-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.0) 70%
    );
}

/* Overlay container */
.project-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    width: 100%;
    padding: 1rem 3rem;

    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Title */
.project-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    max-width: 900px;
    align-self: center;
    text-align: center;
}

/* Subtitle */
.project-hero__subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    align-self: center;

}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-hero__overlay {
        padding: 1.5rem;
    }

    .project-hero__media {
        height: clamp(260px, 50vh, 420px);
    }
}
