/* Base: Mobile First */
.genericContentContainer {
    display: flex;
    flex-direction: column; /* Mobile: stack with image first */
    min-height: 540px;
    width: fit-content;
}

.content-image { flex: 1; padding:36px;}

/* Mobile: always show image first (top) */
.genericContentContainer .content-image { order: -1; }

.room-image {
    width: 100%;
    border-radius: var(--radius-component, var(--radius-xl, 12px));
    object-fit: cover;
    display: block;
    min-height: 250px;
}


/* Text and Button Block */
.text-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: stretch;
    width: 100%;
    justify-content: center;
    padding: 0px 24px 24px 24px; 
}

.text-block {
    display: flex;
    flex-direction: column;
}

.content-image { flex: 1; padding:24px;}


/* Tablet - Side by side */
@media (min-width: 768px) {
    .content-image { flex: 1; padding:36px;}

    .genericContentContainer {
        flex-direction: row; /* allow left/right alignment */
    }

    /* Desktop/tablet ordering by alignment */
    .genericContentContainer.align-left .content-image { order: 0; }
    .genericContentContainer.align-left .text-button-wrapper { order: 1; }
    .genericContentContainer.align-right .text-button-wrapper { order: 0; }
    .genericContentContainer.align-right .content-image { order: 1; }

    .text-button-wrapper {
        width: 50%;
        padding: 60px;
    }

    .content-image {
        width: 50%;
    }

    .room-image {
        height: 100%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .pgenericContentContainer {
        margin-top: 3rem;
        height: 500px;
        min-height: 500px;
        max-height: 500px;
    }

    .text-button-wrapper {
        padding: 60px;
    }

    .text-block .h-3 {
        font-size: 1.8rem;
    }

    .text-block .b-2 {
        font-size: 1.1rem;
    }
    .content-image { flex: 1; padding:36px;}
}

/* Extra large desktop */
@media (min-width: 1440px) {
    .text-button-wrapper {
        padding: 60px;
    }

    .text-button-wrapper,
    .content-image {
        width: 50%;
    }

    .pgenericContentContainer {
        margin-top: 3rem;
    }

    .content-image { flex: 1; padding:36px;}
}
