/* Welcome intro (home) — YMCA 2026 Option B (node 203:804)
   Two columns: copy on the left (eyebrow + two-tone H1 + body + CTA), photo on the
   right. A subtle purple chevron decoration sits in the far-left margin. */

.bmg-welcome-intro {
    position: relative;
    z-index: 0;
    overflow-x: clip;
}

:where(.bmg-welcome-intro__row) {
    align-items: center;
    gap: 60px;
}

.bmg-welcome-intro__body {
    flex: 1 1 auto;
    max-width: 608px;
    text-align: left;
}

:where(.bmg-welcome-intro__body) > * {
    margin: 0;
}

:where(.bmg-welcome-intro__photo) {
    flex: 0 0 565px;
    margin: 0;
}

.bmg-welcome-intro__photo img {
    display: block;
    width: 565px;
    height: 301px;
    object-fit: cover;
    border-radius: 16px;
}

/* pale-lavender double-chevron (») inline with the H1 as a ymca/icon block
   (comp node 203:804). The row is pulled left by the icon's footprint
   (52px box + 14px gap) so the H1 stays flush with the eyebrow/body while
   the chevron hangs in the left margin like the comp. */
/* two classes to outrank WP's `.is-layout-flex > :is(*, div)` margin reset */
.bmg-welcome-intro__body > .bmg-welcome-intro__title-row {
    margin-left: -66px;
}

.bmg-welcome-intro__title-row .ymca-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

/*tablet/mobile (out of 2026 desktop scope — keep usable)*/
@media (max-width: 992px) {
    .bmg-welcome-intro__row {
        flex-wrap: wrap !important;
        gap: 32px;
    }
    .bmg-welcome-intro__photo {
        flex: 1 1 100%;
    }
    .bmg-welcome-intro__body > .bmg-welcome-intro__title-row {
        margin-left: 0;
    }
    .bmg-welcome-intro__title-row .ymca-icon {
        display: none;
    }
}
