.hero-item {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--site-padding);
    max-width: 320px;

    @media only screen and (min-width: 700px) {
        max-width: var(--max-width);
        box-sizing: border-box;
    }

    @media screen and (min-width: 1000px) {
        display: grid;
        grid-template-columns: 1fr;
        place-content: center;
    }

    .hero-item-inner {
        position: relative;
        background-position: center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: flex-end;
        grid-area: 1 / 1;
    }

    .hero-item-content {
        box-sizing: border-box;
        background-color: rgba(var(--text-color-rgba), 0.1);
        padding: calc(var(--unit) * 2);
        height: fit-content;
        display: grid;
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 1.5);

        grid-area: 1 / 1;

        h3 {
            font-size: calc(var(--fontsize) * 1.75);
            font-weight: 300;
            line-height: 100%;
        }

        .largebutton-container {
            justify-self: center;

            @media screen and (min-width: 700px) {
                justify-self: auto;
            }
        }

        @media screen and (min-width: 700px) {
            padding: calc(var(--unit) * 3);
        }

        @media screen and (min-width: 1000px) {
            width: calc(50% - calc(var(--unit) * 2));
            margin: calc(var(--unit) * 3);
            background-color: var(--background-color);
        }

    }

    .hero-item-content:is(.vertical-align-top) {
        @media screen and (min-width: 1000px) {
            align-self: start;
        }
    }

    .hero-item-content:is(.vertical-align-center) {
        @media screen and (min-width: 1000px) {
            align-self: center;
        }
    }

    .hero-item-content:is(.vertical-align-bottom) {
        @media screen and (min-width: 1000px) {
            align-self: end;
        }
    }

    .hero-item-content:is(.horizontal-align-left) {
        @media screen and (min-width: 1000px) {
            justify-self: start;
        }
    }

    .hero-item-content:is(.horizontal-align-center) {
        @media screen and (min-width: 1000px) {
            justify-self: center;
        }
    }

    .hero-item-content:is(.horizontal-align-right) {
        @media screen and (min-width: 1000px) {
            justify-self: end;
        }
    }

    .hero-item-content:is(.show-background-false) {
        @media screen and (min-width: 1000px) {
            background-color: transparent;
            color: var(--text-on-image-color);
        }
    }

    .hero-item-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: black;
        opacity: 0;
        pointer-events: none;
    }

    .hero-item-state {
        position: absolute;
        right: calc(var(--unit) * 3);
        top: calc(var(--unit) * 3);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 96px;
        height: 96px;
        background-color: var(--accent-color);
        color: white;
        border-radius: 999px;
    }    

    .hero-item-state:empty {
        display: none;
    }
}

[data-currentpage]:not([data-currentpage="photoproject"]) {
    .hero-item:not(:has(+ .productheader, + .productlist)) {
        margin-bottom: calc(var(--unit) * 6);
    }
}
