/* grid-3 */
@media (min-width: 821px) {
    /* When there is only 1 item */
    .grid-3:has(> :only-child) {
        grid-template-columns: calc((100% - 48px) / 3);
        justify-content: center;
    }

    section.sec-head:has(+ .grid-3 > :nth-child(2):last-child) {
        padding-left: 0;
        padding-right: 0;
        width: calc(2 * ((100% - (2 * var(--gut)) - 48px) / 3) + 24px);
        margin: 0 auto;
    }

    /* When there are exactly 2 items */
    .grid-3:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, calc((100% - 48px) / 3));
        justify-content: center;
    }

    section.sec-head:has(+ .grid-3 > :only-child) {
        padding-left: 0;
        padding-right: 0;
        width: calc((100% - (2 * var(--gut)) - 48px) / 3);
        margin: 0 auto;
    }
}
