.single-project-hero {
    position: relative;
    width: 100vw;
    height: 40vh;
    height: 40dvh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 10vh;
    margin-bottom: 10vh;
    overflow: hidden;
    background-color: #000;
}

.single-project-hero__media,
.single-project-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.single-project-hero__media img {
    object-fit: cover;
    display: block;
}

.single-project-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(32px, 6vh, 80px) clamp(24px, 6vw, 96px);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0) 70%
    );
}

.single-project-hero__inner {
    width: clamp(280px, 32%, 520px);
    color: #fff;
}

.single-project-hero__title {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    text-wrap: balance;
}

.single-project-hero__cta {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .single-project-hero__overlay {
        align-items: flex-end;
        padding: 32px 24px;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.45) 55%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }

    .single-project-hero__inner {
        width: 100%;
    }

    .single-project-hero__title {
        margin-bottom: 20px;
    }
}
