div.post-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-inline: calc(var(--wp--style--root--padding-right) * -1) !important;
    min-height: 360px;
    padding: var(--wp--preset--spacing--large);
    position: relative;
}

@media (min-width: 1300px) {
    div.post-hero {
        border-radius: var(--wp--preset--border-radius--default);
        margin-inline: auto !important;
    }
}

.post-hero__layout {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--large);
    justify-content: center;
    text-align: center;
}

.post-hero__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--small);
}

.post-hero__blocks {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--small);
    max-width: 100%;
}

.post-hero__blocks .wp-block-breadcrumbs ol {
    justify-content: center;
}

.post-hero__blocks > * {
    margin: 0 !important;
}

.post-hero__blocks .wp-block-breadcrumbs {
    margin-inline: auto !important;
    max-width: 680px;
}

.post-hero__blocks .wp-block-breadcrumbs ol {
    flex-wrap: nowrap;
}

.post-hero__blocks .wp-block-breadcrumbs ol li {
    white-space: nowrap;
}

.post-hero__blocks .wp-block-breadcrumbs ol li:last-child {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.post-hero__blocks .wp-block-post-title {
    display: block;
    max-width: 760px;
}

.post-hero__summary {
    font-size: var(--wp--preset--font-size--medium);
    max-width: 580px;
}

.post-hero__subtitle {
    font-size: var(--wp--preset--font-size--medium);
    max-width: 760px;
}

.post-hero__subtitle > :first-child {
    margin-top: 0 !important;
}

.post-hero__subtitle > :last-child {
    margin-bottom: 0 !important;
}

.post-hero__summary > :first-child {
    margin-top: 0 !important;
}

.post-hero__summary > :last-child {
    margin-bottom: 0 !important;
}

.post-hero__summary a {
    text-decoration: underline;
}

.post-hero__summary a:hover {
    text-decoration: none;
}

.post-hero__byline a {
    text-decoration-thickness: 6.5%;
    text-underline-offset: 16.5%;
    text-decoration: underline;
}

.post-hero__byline a:hover {
    text-decoration: none;
}

/* Hero Image */

.post-hero__image {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: var(--wp--preset--border-radius--default);
    overflow: clip;
    position: relative;
    z-index: 2;
}

.post-hero__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.post-hero__accent {
    border-bottom-left-radius: var(--wp--preset--border-radius--default);
    border-bottom-right-radius: var(--wp--preset--border-radius--default);
    bottom: 0;
    height: var(--wp--preset--spacing--medium);
    left: 0;
    margin: 0 !important;
    position: absolute;
    width: 100%;
    z-index: 1;
}

@media (max-width: 1023px) {
    .post-hero:has(.post-hero__image):has(.post-hero__accent) {
        padding-bottom: calc(var(--wp--preset--spacing--medium) / 2);
    }
}

@media (min-width: 1024px) {
    .post-hero__layout--with-image {
        justify-content: flex-start;
        text-align: initial;
        --hero-image-width: 22rem;
    }

    .post-hero:has(.post-hero__navigation) .post-hero__layout--with-image {
        --hero-image-width: 37.5rem;
    }

    .post-hero__layout--with-image .post-hero__content {
        align-items: flex-start;
        padding-right: calc(var(--hero-image-width) + var(--wp--preset--spacing--large));
    }

    .post-hero:has(.post-hero__navigation) .post-hero__content {
        padding-right: calc(var(--hero-image-width));
    }

    .post-hero__layout--with-image .post-hero__blocks .wp-block-breadcrumbs {
        margin-inline: 0 !important;
    }

    .post-hero__layout--with-image .post-hero__blocks .wp-block-breadcrumbs ol {
        justify-content: initial;
    }

    div.post-hero__image {
        aspect-ratio: auto;
        height: 100%;
        position: absolute;
        right: var(--wp--preset--spacing--large);
        top: var(--wp--preset--spacing--large);
        width: var(--hero-image-width);
    }

    .post-hero__accent {
        border-radius: 0;
        border-top-right-radius: var(--wp--preset--border-radius--default);
        border-bottom-right-radius: var(--wp--preset--border-radius--default);
        bottom: auto;
        height: 100%;
        left: auto;
        right: 0;
        top: 0;
        width: var(--wp--preset--spacing--medium);
    }

    .post-hero:has(.post-hero__navigation) {
        border-top-right-radius: var(--wp--preset--border-radius--default);
        border-bottom-right-radius: var(--wp--preset--border-radius--default);
        padding: calc(var(--wp--preset--spacing--large) * 2) var(--wp--preset--spacing--large);
    }

    .post-hero:has(.post-hero__navigation) .post-hero__image {
        height: calc(100% - (var(--wp--preset--spacing--large) * 2));
        right: calc(-1 * var(--wp--preset--spacing--medium));
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    .post-hero:has(.post-hero__navigation) {
        margin-inline: 0 var(--wp--preset--spacing--medium) !important;
    }
}

@media (min-width: 1301px) {
    .post-hero:has(.post-hero__navigation) {
        max-width: calc(var(--wp--style--global--wide-size) - var(--wp--preset--spacing--medium)) !important;
        transform: translateX(calc(-1 * var(--wp--preset--spacing--medium) / 2));
    }
}

/* Page navigation */

.post-hero__navigation {
    display: none;
}

@media (min-width: 1024px) {
    .post-hero__navigation {
        background-color: var(--wp--preset--color--main);
        border-radius: var(--wp--preset--border-radius--default);
        bottom: 0;
        display: flex;
        left: 50%;
        list-style: none;
        margin: 0 !important;
        overflow: clip;
        padding: 0;
        position: absolute;
        transform: translate(-50%, 50%);
        z-index: 3;
    }

    .post-hero__layout--with-image + .post-hero__navigation {
        left: var(--wp--preset--spacing--large);
        transform: translateY(50%);
    }

    .post-hero__navigation-item {
        font-size: var(--wp--preset--font-size--x-small);
        position: relative;
        white-space: nowrap;
    }

    .post-hero__navigation-item:not(:first-child)::before {
        border-left: 1px solid var(--wp--preset--color--border-light);
        content: "";
        height: 1.34em;
        left: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .post-hero__navigation-item a {
        display: block;
        font-weight: 700;
        padding: 1em 1.34em;
    }
}
