/* ── Picture group ───────────────────────────────────────────
   Figma: three — Dining 1366:71222; four — Weddings 1366:72572.
   Fills the height its row gives it.
   ─────────────────────────────────────────────────────────── */

.picture-group {
    display: flex;
    gap: 16px;
    min-width: 0;
}

.picture-group__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.picture-group__image {
    width: 100%;
    min-height: 0;
    object-fit: cover;
}

/* Three: two small stacked (296 over 244), the tall one beside */
.picture-group--three .picture-group__column {
    flex: 0 0 260px;
}

.picture-group__image--top {
    flex: 296 1 0;
}

.picture-group__image--bottom {
    flex: 244 1 0;
}

.picture-group__image--tall {
    flex: 1;
    min-width: 0;
    height: auto;
}

/* Four: tall over 198 on the left, 244 over tall on the right */
.picture-group--four .picture-group__column:first-child {
    flex: 0 0 305px;
}

.picture-group--four .picture-group__column:last-child {
    flex: 1;
}

.picture-group__image--grow {
    flex: 1 1 0;
}

.picture-group__image--short {
    flex: 0 0 198px;
    height: 198px;
}

.picture-group__image--mid {
    flex: 0 0 244px;
    height: 244px;
}

/* Laptop: the columns share the width */
@media (max-width: 1366px) {
    .picture-group--three .picture-group__column {
        flex-basis: 48%;
    }

    .picture-group--four .picture-group__column:first-child {
        flex-basis: 45%;
    }
}

/* Tablet and mobile: a fixed height, the first column about half */
@media (max-width: 1024px) {
    .picture-group {
        flex: none;
        height: 303px;
        gap: 11px;
    }

    .picture-group__column {
        gap: 11px;
    }

    /* The group has a set height here; the tall picture fills it. Said
       outright, as Safari doesn't stretch a picture to its row. */
    .picture-group__image--tall {
        height: 100%;
    }

    .picture-group--three .picture-group__column,
    .picture-group--four .picture-group__column:first-child {
        flex: 0 0 51%;
    }

    .picture-group__image--top {
        flex-grow: 160;
    }

    .picture-group__image--bottom {
        flex-grow: 132;
    }

    .picture-group--four {
        height: 360px;
    }

    .picture-group__image--short {
        flex-basis: 128px;
        height: 128px;
    }

    .picture-group__image--mid {
        flex-basis: 158px;
        height: 158px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .picture-group {
        height: 480px;
    }

    .picture-group--four {
        height: 560px;
    }
}

/* One: the picture fills the space */
.picture-group--one .picture-group__image--tall {
    height: 100%;
}
