/* ==========================================================
   CARD GRID
========================================================== */

.card-grid-section {
    width: 100%;
    max-width: var(--container-content);
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, .42);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .28),
        0 18px 36px rgba(0, 0, 0, .18),
        0 6px 12px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.card-grid-wrapper {
    width: 100%;
    max-width: none;

    padding: 0;
    background: transparent;
}

.card-grid-row {
    display: flex !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    align-items: stretch;
}

.card-grid-row>* {
    display: flex;
    min-width: 0;
    height: 100%;
    margin-block-start: 0 !important;
}

.card-grid-row>.wp-block-group {
    width: 100%;
    max-width: none;
}

.scroll-hint {
    display: none;
}

@media (max-width: 900px) {

    .card-grid-row {
        display: flex !important;
        align-items: stretch;
    }

    .card-grid-row>* {
        flex: 0 0 84%;
        height: auto;
        min-height: 100%;

        display: flex;
    }

    .card-grid-row .card-base,
    .card-grid-row .feature-card {
        width: 100%;
        height: auto;
        min-height: 340px;

        display: flex;
        flex-direction: column;
    }

    .feature-card__media {
        height: 115px;
        flex-shrink: 0;
    }

    .feature-card__content {
        flex: 1;

        display: flex;
        flex-direction: column;
    }

    .feature-link {
        margin-top: auto !important;
    }
}

/* ==========================================================
   5 CARDS GRID
========================================================== */

.card-grid-row--cards-5 {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.card-grid-row--cards-5>*:nth-child(-n+3) {
    grid-column: span 2;
}

.card-grid-row--cards-5>*:nth-child(4) {
    grid-column: 2 / span 2;
}

.card-grid-row--cards-5>*:nth-child(5) {
    grid-column: 4 / span 2;
}

@media (max-width: 900px) {
    .card-grid-row--cards-5 {
        display: flex !important;
        grid-template-columns: none !important;
    }

    .card-grid-row--cards-5>* {
        grid-column: auto !important;
    }
}