/* Mobile-first base styles */
.project-hero {

    position: relative;
    /* aspect-ratio: 1 / 1; */
    /* height: fit-content; */
    /* or your preferred value */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;


}

.project-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

.project-hero .headline {

    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 95vw;
    box-sizing: border-box;
    margin: 0;
    padding: 1rem 0 0.5rem 0;

}

.project-hero h1 {
    font-family: var(--font-family-alt);
    font-size: var(--font-size-medium);

    margin: 0;
}

.article-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 95vw;
    box-sizing: border-box;
    padding: 0 0.5rem 0 0.5rem;
    margin: 0;
}

.article-wrapper h1 {
    font-size: var(--font-size-medium);
    font-weight: 600;
    margin-bottom: 2rem;
}


.project-article img {
    width: 100%;
    height: auto;
}

.project-article .main-text {
    text-align: left;
    margin: 0;
    padding: 0;
}


.article-wrapper p {

    line-height: 1.75;

}

.main-text h2 {
    font-size: var(--font-size-medium);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.main-text h3 {
    font-size: var(--font-size-medium);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.main-text img {
    width: 100%;
    height: auto;

}



/* Two columns layout - mobile default is stacked */
.two-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: var(--space-small);
}

.column__left {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
}

.column__right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: auto;
}

.column__right .divider {

    margin: 0.5rem 0;
    padding: 0;
}

.key-fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.key-fact ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


/* Key facts */
li.key-fact {
    width: 100%;
    margin: 0 0 1rem 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

li.key-fact h3 {
    font-weight: 600;
    margin: 0;
    color: var(--color-blue);
}


/* Video styles */
.project-video {
    width: 100%;
}



figure {
    margin: 2rem 0;
    text-align: center;
}

figcaption {
    font-size: 0.95rem;
    color: #666;
    padding: 0;
    margin-top: 0.2em;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

/* Responsive styles for tablets and up */
@media (min-width: 700px) {

    .project-hero {
        position: relative;
        display: block;
        /* or flex with no align-items/justify-content */
        width: 100%;
        overflow: hidden;
        padding-top: 0;
        margin-bottom: 1rem;
        height: auto;
        /* Remove max-height and aspect-ratio */
    }

    .project-hero img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }


    .project-hero .headline {
        position: absolute;
        left: 0;
        bottom: 2rem;
        /* or adjust as needed */
        width: 80vw;
        color: #fff;
        background: none;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        display: block;
        text-align: left;

    }

    .project-hero h1 {

        font-size: var(--font-size-huge);
        font-weight: 500;
        padding-bottom: 1rem;
        padding-left: 1rem;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    }

    .article-wrapper {
        padding: 0 1rem;
    }

    .two-columns {
        flex-direction: row;
        gap: 1rem;
    }

    .column__left {

        width: 70vw;
        padding: 0 1rem 0 0;
    }

    .column__right {
        width: 30vw;
        max-width: 100%;
        padding: 1rem;
    }


}

/* Responsive styles for desktop and up */
@media (min-width: 1200px) {


    .project-hero {}

    .project-hero .headline {}


    .project-hero h1 {

        padding-bottom: 2rem;

    }

    .article-wrapper {
        padding: 0 1rem;
    }

    .two-columns {
        gap: 2rem;
    }

    .column__left {
        width: 70vw;
    }

    .column__right {
        width: 30vw;
        max-width: 100%;
        padding: 1rem;
    }


}

/* Responsive styles for desktop and up */
@media (min-width: 1200px) {
    .project-hero .headline {
        font-size: 2.5rem;
        /* bottom: 5rem; */
        padding: 0 0 0 1rem;
        width: 80vw;
    }

    .project-hero h1 {
        font-size: var(--font-size-huge);
        padding-bottom: 2rem;
    }

    .article-wrapper {
        padding: 0 1rem;
        width: 80vw;
    }

    .two-columns {
        gap: 2rem;
    }

    .main-text {

        padding-bottom: 2rem;
    }

    .main-text a {
        font-weight: 500;
        text-decoration: underline;
    }

    .column__right {

        max-width: 25%;
        padding: 1rem;
    }


}