.content-image-slider .splide__slide img {
    border-radius: var(--ymca-border-radius, 24px);
}

@media (max-width: 1300px) {
    /* Stack columns vertically */
    .content-image-slider .wp-block-columns.alignfull {
        flex-direction: column;
        display: flex;
    }

    .content-image-slider .wp-block-columns.alignfull > .wp-block-column > div.wp-block-group > * {
        max-width: unset;
    }

    .content-image-slider .wp-block-column {
        min-width: 0;
        width: unset !important;
        /* Force full width in stacked view */
        flex-basis: auto !important;
        /* Reset the 50% inline style */
        margin-left: 0 !important;
        /* Remove any gutter margins */
        margin-right: 0 !important;
    }

    /* Constrain the inner content (The "Upper Content") */
    /* prevents the text group from pushing out due to padding */
    .content-image-slider .wp-block-column .wp-block-group {
        max-width: 100%;
        width: auto;
        box-sizing: border-box;
        /* Ensures padding calculates correctly inside the width */
    }

    /* Handle the Image Slider "Peek" removal and overflow */
    .content-image-slider .wp-block-ymca-slider {
        overflow: visible;
        width: 100%;
    }

    /* Override Splide JS inline styles to remove the "peek" padding, replace it with margin */
    .content-image-slider .splide__track {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-left: 36px;
        margin-right: 36px;
    }

    /* Optional: Keep your border radius preference */
    .content-image-slider .splide__slide img {
        border-radius: var(--ymca-border-radius, 24px);
    }
}

@media (max-width: 768px) {
    .content-image-slider h2:not(.has-h-5-size-font-size) {
        font-size: 40px;
    }
}

/* Below 1300px the columns stack, so the slider is the last thing in the section
   and its control strip — which hangs below the slider box on negative offsets —
   has to be cleared by the section's own bottom padding. The pattern's inline
   92px left the strip overhanging; this was previously patched only below 500px,
   leaving 501-1300px untreated. !important because the padding is inline. */
@media (max-width: 1300px) {
    .content-image-slider {
        padding-bottom: 120px !important;
    }
}
