/* Championdrive Sales Manager: 240px square banners with fluid column count. */
.usm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 24px 20px;
    justify-content: start;
}
.usm-grid .usm-card {
    box-sizing: border-box;
    width: 240px;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}
.usm-grid .usm-card img,
.usm-grid .usm-placeholder {
    box-sizing: border-box;
    display: block;
    width: 240px;
    height: 240px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-inline: auto;
}
.usm-grid .usm-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    color: #444;
    overflow-wrap: anywhere;
}
.usm-grid .usm-placeholder span { font-weight: 600; }
.usm-grid .usm-placeholder small { font-size: 12px; color: #777; }
.usm-grid .usm-link {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
}
/* On phones, show exactly three equally sized square banners per row. */
@media (max-width: 650px) {
    .usm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
        justify-items: stretch;
    }
    .usm-grid .usm-card {
        width: 100%;
        max-width: 100%;
    }
    .usm-grid .usm-card img,
    .usm-grid .usm-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .usm-grid .usm-placeholder {
        gap: 3px;
        padding: 5px;
        font-size: 12px;
        line-height: 1.2;
    }
    .usm-grid .usm-placeholder small {
        font-size: 10px;
        line-height: 1.2;
    }
    .usm-grid .usm-link {
        font-size: 13px;
        line-height: 1.4;
    }
}
