.block-hero-post {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
}

.block-hero-post__inner {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
    padding-top: 8rem;
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
    box-sizing: content-box;
}

.block-hero-post__content {
    flex: 1;
}

/* Category + date meta line */
.block-hero-post__meta {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 1rem;
    opacity: .8;
}

.block-hero-post__title {
    margin: 0 0 2rem !important;
    font-size: var(--wp--preset--font-size--xx-large);
}

.block-hero-post__excerpt {
    margin: 0;
    max-width: 40rem;
    opacity: .8;
}

.block-hero-post__image {
    flex: 1;
    z-index: 2;
}

.block-hero-post__image-frame {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.block-hero-post__image-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 120%;
}

/* Parallax target: taller than the frame so the image can shift without gaps */
.block-hero-post__image-inner {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
}

.block-hero-post__image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure children inherit the scheme color */
.block-hero-post .block-hero-post__title,
.block-hero-post .block-hero-post__excerpt,
.block-hero-post .block-hero-post__meta {
    color: inherit;
}

/* Background color schemes */
.block-hero-post.has-accent-1-background-color {
    background-color: var(--wp--preset--color--accent-1);
}

.block-hero-post.has-accent-3-background-color {
    background-color: var(--wp--preset--color--accent-3);
}

.block-hero-post.has-accent-5-background-color {
    background-color: var(--wp--preset--color--accent-5);
}

/* Text color schemes */
.block-hero-post.has-contrast-color {
    color: var(--wp--preset--color--contrast);
}

.block-hero-post.has-base-color {
    color: var(--wp--preset--color--base);
}

/* Mobile: stack vertically, image on top */
@media (max-width: 800px) {
    .block-hero-post__inner {
        flex-direction: column-reverse;
    }

    .block-hero-post__content {
        width: 100%;
    }

    .block-hero-post__image {
        width: 100%;
    }
}
