﻿.full-width-breakout-sidebyside {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #fff;
    /* ❌ NO overflow: hidden here – we keep rounded corners & shadows above */
}

.side-by-side-features {
    padding: 5rem 0;
    background-color: #fff;
}

.features-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-block {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
    grid-template-areas: "image text";
    gap: 2rem;
    align-items: center; /* single source of truth */
}

    .feature-block.reverse {
        grid-template-areas: "text image";
    }

.feature-image {
    grid-area: image;
    height: 100%; /* row height matches taller side */
    display: flex; /* center the img */
    align-items: center;
    justify-content: center;
    /* we'll let the IMG define actual height, but keep this as the column anchor */
}

.feature-text {
    grid-area: text; /* give it a grid area */
    min-width: 280px;
}

    .feature-text h3 {
        font-size: 2rem;
        font-weight: 700;
        color: #423E3B !important;
        margin-bottom: 1rem;
    }

    .feature-text p {
        font-size: 1.125rem;
        color: #423E3B !important;
        line-height: 1.6;
    }

.feature-text,
.feature-image {
    align-self: stretch; /* lets the row grow to the taller side */
}
    .feature-image img {
        width: 100%;
        height: auto; /* natural aspect ratio */
        /* Bigger and dynamic on large screens */
        max-height: clamp(420px, 80vh, 980px);
        object-fit: cover;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        background: #f5f7fb;
        max-width: 560px;
    }
/* For shorter viewports: reduce how aggressive we are with height */
@media (max-height: 900px) and (min-width: 992px) {
    .feature-image img {
        max-height: clamp(360px, 60vh, 880px);
    }
}

@media (max-height: 800px) and (min-width: 992px) {
    .feature-image img {
        max-height: clamp(320px, 55vh, 820px);
    }
}
.features-section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #423E3B !important;
    margin-bottom: 3rem;
    text-align: center;
}

/* —— Responsive: stack and relax the height constraints —— */
@media (max-width: 900px) {
    .feature-block {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        align-items: start;
    }

    .feature-image,
    .feature-text {
        align-self: auto;
    }

    .feature-image {
        height: auto; /* let content drive it */
    }

        .feature-image img {
            max-height: none; /* let mobile do its thing */
            height: auto;
            object-fit: contain;
            margin: 0 auto;
        }
}
