.logo-grid-columns-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Two stacked instances of this layout would otherwise add bottom + top padding together, doubling the gap between them */
.logo-grid-columns-section + .logo-grid-columns-section {
    padding-top: 0;
}

.logo-groups-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.logo-group {
    flex: 1 1 0;
    min-width: 280px; /* keeps a group from getting crushed too narrow if 3+ groups end up sharing a row */
}

.logo-group-title {
    margin-bottom: 20px;
}

.logo-group-grid {
    display: grid;
    grid-template-columns: repeat(var(--logo-cols-mobile), 1fr);
    gap: 16px;
}

.logo-card {
    background-color: var(--bs-lighter);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
}

.logo-card img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-card-title {
    font-weight: 500;
    color: var(--bs-black);
}

.logo-card.full-width {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    grid-column: 1 / -1;
}

.logo-card.full-width img {
    max-width: 96px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .logo-grid-columns-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .logo-grid-columns-section + .logo-grid-columns-section {
        padding-top: 0;
    }

    /* group_columns_mobile === 1 → every card in the group is full row width on mobile → switch to horizontal layout */
    .logo-group-grid.mobile-full-width .logo-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        grid-column: 1 / -1;
    }

    .logo-group-grid.mobile-full-width .logo-card img {
        max-width: 96px;
        flex-shrink: 0;
    }
}

@media (min-width: 993px) {
    .logo-group-grid {
        grid-template-columns: repeat(var(--logo-cols-desktop), 1fr);
    }
}
