.bmg-home-hero .bmg-hero-buttons {
    justify-content: start;
}

.bmg-home-hero-row {
    position: relative;
    z-index: 2;
}

.bmg-heritage-row h2 {
    letter-spacing: var(--letter-spacing-sm);
}

/*background*/

.wp-block-cover.bmg-home-hero {
    position: relative;
    overflow: hidden;
}

/* background layer */
.bmg-home-hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;

    padding: 25px 0;

    display: flex;
    align-items: stretch;

    /* key: don't clip the background horizontally */
    overflow: visible;

    /* key: let the row be wider than the viewport */
    width: max-content;

    /* center the whole strip within the hero */
    left: 50%;
    transform: translateX(-50%);
}

/* each item should size to its content, NOT 25% */
.bmg-home-hero-background-item {
    flex: 0 0 auto;
    height: 100%;
    margin-left: -40px;

    display: flex;
    align-items: stretch;
}

/* make SVG fill the hero height, keep aspect ratio, never crop */
.bmg-home-hero-background-item svg {
    height: 100%;
    width: auto;
    display: block;
}

span.bmg-home-hero-background-item svg path {
    fill: none;
    stroke: var(--primary-md);
    opacity: 0.5;
}

/* Fix for slider track border radius and Safari clipping - Matches slide radius */
.bmg-home-hero .splide__track {
    border-radius: 12px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/*tablet*/

/*mobile*/

@media (max-width: 768px) {
    .bmg-home-hero {
        padding: 0 !important;
        min-height: unset !important;
    }

    .bmg-home-hero-row {
        flex-direction: column-reverse;
        gap: 60px;
    }

    /*images*/
    .bmg-home-hero-right {
        padding: 0 !important;
    }

    .bmg-home-hero-right .wp-block-ymca-slider.is-style-light-arrows-corner li.wp-block-ymca-image-slide {
        border-radius: 0;
    }

    .bmg-home-hero-right .wp-block-ymca-slider.is-style-light-arrows-corner img {
        aspect-ratio: 4 / 3;
    }

    /*text*/
    .bmg-home-hero-left {
        padding-top: 0 !important;
        padding-bottom: 60px !important;

        gap: 15px;
    }

    .bmg-heritage-logo img {
        width: 50px !important;
    }

    .bmg-home-hero .bmg-hero-title {
        font-size: 36px !important;
    }

    .bmg-hero-buttons {
        gap: 16px;
    }

    /*background*/
    .bmg-home-hero-background {
        height: 50%;
        top: unset;
        bottom: 0;
    }
}

/*really small phones*/

@media (max-width: 350px) {

    /*titles*/
    .bmg-home-hero .bmg-hero-title {
        font-size: 40px !important;
    }

    .bmg-hero-sub-title {
        font-size: 18px !important;
    }

    /*buttons*/
    .bmg-home-hero .bmg-hero-buttons {
        flex-direction: column;
    }
}