.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    min-height: 400px;
    height: 42vw;
    max-height: 480px;
    /* Light placeholder: avoids a dark flash while the image loads */
    background: #e3e7eb;
}
.hero-image__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 20px;
}
img.hero-image__background {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 80%;
}
.hero-image__overlay {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.8)
    );
    z-index: 2;
}

.hero-image h1,
.hero-image h2 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-wrap: balance;
}
.hero-image.--post {
    min-height: 200px;
}
.hero-image.--post h1 {
    opacity: 0;
}
