/* Figma node 9264:15855 ("Mosaic-section"), cell 1 — ported collage3-n.css
   styles its cells as bottom-anchored text over a photo (dark gradient +
   white text near the bottom). Figma's cell 1 has no photo at all: solid
   brand-red background with the headline/paragraph top-aligned instead.
   Scoped to collage3-n.php's ".text-cell" modifier (added when a cell's
   "image" field is left empty) so the other 4 photo cells are untouched. */
.collage3_n .collage3_c .cont_img.text-cell {
    background-color: #BA0C2F;
    justify-content: flex-start;
    padding: 47px 40px 0;
    /* collage3-n.css's base ".cont_img" caps every cell at a fixed 290px
       with overflow:hidden — fine for an image cell (just a title near the
       bottom), but this cell holds a full paragraph with no photo behind
       it. At 1024px (and whenever the paragraph wraps to more lines) that
       290px wasn't enough and the bottom of the text was clipped. Let this
       one cell grow to fit its text at every width instead of clipping it. */
    height: auto;
    min-height: 290px;
    overflow: visible;
    /* Without this, the parent .group_container's max-height:590px
       (desktop) made the flex column shrink this auto-height box back
       down below its own content height instead of letting the column
       grow past 590px, which just re-introduced the overflow this file
       exists to fix. */
    flex-shrink: 0;
}

.collage3_n .collage3_c .cont_img.text-cell h3,
.collage3_n .collage3_c .cont_img.text-cell p {
    max-width: 311px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .collage3_n .collage3_c .group_container:first-child .cont_img.text-cell {
        padding: 32px 24px;
    }

    .collage3_n .collage3_c .group_container:first-child .cont_img.text-cell h3,
    .collage3_n .collage3_c .group_container:first-child .cont_img.text-cell p {
        max-width: 100%;
    }

    .collage3_n .collage3_c .group_container:first-child .cont_img.text-cell p {
        font-size: 16px;
        line-height: 1.5;
    }
}
