.slideshow:has(.ce-header-with-gradient) {
    overflow: visible;
}

.ce-header-with-gradient {
    font-size: 16px;
    position: relative;
    --color: #fafafa;

    @media screen and (min-width: 768px) {
        margin-block-end: -35dvh;
    }

    /* The transparent site header lies on the image (_site-header.scss): darker at the top, like pap/header-full-height */
    &::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0 0 auto;
        height: calc(var(--site-header-height) * 2);
        background: linear-gradient(180deg, #000000ab 0%, #00000000 100%);
        pointer-events: none;
    }

    .ce-header-with-gradient__media {
        img {
            width: 100%;
            height: auto;
            aspect-ratio: 1;
            object-fit: cover;

            @media screen and (min-width: 768px) {
                aspect-ratio: unset;
                height: 100dvh;
            }
        }

        @media screen and (min-width: 768px) {
            &::after {
                content: "";
                display: block;
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(0, var(--color) 0%, rgb(from var(--color) r g b / 0) 50%);
            }
        }
    }

    .ce-header-with-gradient__body {
        width: 100%;

        @media screen and (min-width: 768px) {
            position: absolute;
            z-index: 1;
            bottom: 35dvh;
            left: 0;
        }
    }

    .ce-header-with-gradient__container {
        padding-block: 1.5em;
        padding-inline: 2.5em;

        @media screen and (min-width: 768px) {
            padding-inline: 1em;
        }
    }

    .ce-header-with-gradient__content {
        max-width: 57em;

        @media screen and (min-width: 768px) {
            color: white;

            * {
                color: white;
            }
        }
    }

    .ce-header-with-gradient__buttons {
        .ce-button:first-child:last-child {
            width: 100%;

            @media screen and (min-width: 768px) {
                width: auto;
            }
        }
    }
}
