.hero_banner {
    display: flex;
    flex-direction: column;

    &.full {
        height: 100vh;
    }

    &.dark {
        & p.subheader, h1, & p#breadcrumbs, & p#breadcrumbs a, & p#breadcrumbs span, & .text_area p {
            color: var(--primary) !important;
        }
    }

    &.light {
        & p.subheader, h1, & p#breadcrumbs, & p#breadcrumbs a, & p#breadcrumbs span, & .text_area p {
            color: var(--white) !important;
        }
    }

    & > .container,
    & .section_inner.carousel .primary_slide > .container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        z-index: 2;
        flex-wrap: wrap;

        @media (max-width: 991px) {
            padding-top: 130px !important;
            padding-bottom: 50px !important;
        }
        
        &.left {
            align-items: flex-start;
            text-align: left;

            & .call_to_action_buttons {
                justify-content: flex-start;
            }
        }

        &.center {
            align-items: center;
            justify-content: center;
            text-align: center;

            & .hero_banner_inner {
                align-items: center;
            }

            & .call_to_action_buttons {
                justify-content: center;
            }
        }

        &.right {
            align-items: flex-end;
            text-align: right;

            & .call_to_action_buttons {
                justify-content: flex-end;
            }
        }

        & .hero_banner_inner {
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;

            @media (max-width: 991px) {
                width: 100%;
            }

            p#breadcrumbs {
                font-family: "DM Sans", sans-serif;
                font-weight: 400;
                text-transform: uppercase;
                line-height: 1;

                >span {
                    width: 100%;
                }

                a, span {
                    display: inline-block;
                    text-decoration: none;
                    font-family: "DM Sans", sans-serif;
                    font-weight: 400;
                }
            }

            & .subheader {
                width: 60rem;
                max-width: 100%;
                font-size: 3rem;
                font-family: "DM Sans", sans-serif;
                font-weight: 400;
                margin: 0;
            }

            & .text_area {
                margin: 3rem 0 0;

                & h1, & h2, & h3 {
                    font-size: 9rem;
                    font-weight: 400;
                    margin: 0;

                    @media (max-width: 991px) {
                        font-size: 4rem;
                        text-align: center;
                    }

                    & span {
                        font-size: inherit;
                        font-weight: inherit;
                        color: var(--white);
                    }
                }

                & p {
                    font-size: 2rem;
                    margin: 0;
    
                    @media (max-width: 991px) {
                        font-size: 1.8rem;
                        text-align: center;
                    }
                }
            }

            & .call_to_action_buttons {
                @media (min-width: 992px) {
                    flex-direction: row;
                    margin: 4rem 0 0;
                }

                @media (max-width: 991px) {
                    flex-direction: column;
                    align-items: center;
                    margin: 3rem 0 0;
                }

                & a {
                    margin-bottom: 0;

                    @media (max-width: 991px) {
                        width: 27rem;
                        max-width: 100%;
                        padding: 1.4rem;

                        &:not(:last-of-type) {
                            margin-bottom: 2rem;
                        }
                    }
                }
            }
        }
    }

    & .section_inner.carousel {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;

        & .slick-list {
            overflow: hidden;
        }

        & .slick-slide {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }

        @media (min-width: 992px) {
            /* Default: fill parent (other carousels). Hero uses adaptiveHeight in JS — no fixed % heights. */
            &:not(.hero-banner-carousel) {
                height: 100%;

                & .slick-list {
                    height: 100%;
                }
            }

            & .slick-track {
                display: flex !important;
            }

            &.hero-banner-carousel {
                height: auto;
                align-self: stretch;
                width: 100%;

                /*
                 * Slick adaptiveHeight measures active slide outerHeight. Absolute bg imgs
                 * do not expand the box — min-height keeps the primary slide tall enough.
                 */
                & .primary_slide {
                    height: auto !important;
                    min-height: clamp(34rem, 52vh, 96rem);
                }
            }
        }

        @media (max-width: 991px) {
            height: 100%;

            & .slick-list {
                height: 100%;
            }

            & .slick-track {
                display: flex !important;
                align-items: stretch;
            }

            /* Default slide: room for arrows + consistent alignment */
            & .primary_slide > .container {
                padding-left: 4.8rem !important;
                padding-right: 4.8rem !important;
            }

            & .primary_slide .hero_banner_inner {
                align-items: center;
                text-align: center;
                width: 100%;
                max-width: 100%;
            }

            & .primary_slide .subheader {
                text-align: center;
            }

            & .primary_slide .text_area {
                width: 100%;
                max-width: 100%;
                margin-top: 2rem;
            }

            & .primary_slide .call_to_action_buttons {
                width: 100%;
                max-width: 100%;
            }

            /* Keep arrows off the headline band */
            & button.slick-arrow {
                top: 68%;
            }
        }

        & .primary_slide {
            width: 100%;
            max-width: 100%;
            position: relative;
            margin: 0 !important;

            @media (min-width: 992px) {
                height: inherit !important;
            }

            @media (max-width: 991px) {
                height: auto;
            }
        }

        & .promo-image {
            width: 100%;
            max-width: 100%;
            position: relative;
            margin: 0 !important;
            overflow: hidden;
            line-height: 0;

            @media (max-width: 991px) {
                height: auto;
            }

            /*
             * Must not use a bare `img { display: block }` here — it beats the global
             * `.hero_banner img.hero_banner_image_*` breakpoint rules and shows both
             * desktop + mobile assets on desktop (stacked / double banner).
             */
            & img.hero_banner_image_desktop {
                position: relative;
                display: block;
                width: 100%;
                max-width: 100%;
                height: auto;
                box-sizing: border-box;

                @media (max-width: 767px) {
                    display: none;
                }
            }

            & img.hero_banner_image_mobile {
                position: relative;
                width: 100%;
                max-width: 100%;
                height: auto;
                box-sizing: border-box;

                @media (min-width: 768px) {
                    display: none;
                }

                @media (max-width: 767px) {
                    display: block;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                }
            }
        }

        /* Carousel primary slide: same desktop/mobile swap as rest of hero (explicit specificity) */
        & .primary_slide > img.hero_banner_image_desktop {
            @media (max-width: 767px) {
                display: none;
            }
        }

        & .primary_slide > img.hero_banner_image_mobile {
            @media (min-width: 768px) {
                display: none;
            }
        }
    }
	
	& img {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: cover;
        object-position: center;
        position: absolute;
        z-index: 0;
	}

    & img.hero_banner_image_desktop {
		@media (max-width: 767px) {
			display: none;
		}
    }
	
	& img.hero_banner_image_mobile {
		@media (min-width: 768px) {
			display: none;
		}
	}

    & .slick-dots {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        list-style-type: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute;
        z-index: 1;
        bottom: 3rem;

        & >li {
            &.slick-active {
                & button {
                    background: var(--white) !important;
                }
            }

            & button {
                background: rgba(255, 255, 255, .25) !important;
            }
        }
    }

    & button.slick-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;
        border: none;
        background: none;
        cursor: pointer;
        margin: 0;
        padding: 0;

        &.slick-prev {
            left: 1rem;
        }

        &.slick-next {
            right: 1rem;
        }
    }
}