.tr-wccg-grid {
    display: grid;
    grid-template-columns: repeat(var(--tr-wccg-cols, 4), minmax(0, 1fr));
    gap: var(--tr-wccg-gap, 20px);
    width: 100%;
}

.tr-wccg-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--tr-wccg-radius, 8px);
    background: #fff;
    transition: none;
    transform: none;
}

.tr-wccg-card:hover,
.tr-wccg-card:focus-within {
    transform: none;
    top: auto;
}

.tr-wccg-has-border .tr-wccg-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.tr-wccg-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tr-wccg-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--tr-wccg-image-height, 180px);
    overflow: hidden;
}

.tr-wccg-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: var(--tr-wccg-image-height, 180px) !important;
    object-fit: contain;
    margin: 0 auto;
    flex: 0 0 auto;
}

.tr-wccg-no-image {
    display: block;
    width: 100%;
    height: 100%;
}

.tr-wccg-title {
    margin: 0;
    padding: 14px 16px 10px;
    line-height: 1.3;
}

.tr-wccg-count {
    font-size: .85em;
    font-weight: normal;
    opacity: .7;
}

.tr-wccg-description {
    padding: 0 16px 12px;
}

.tr-wccg-description > :last-child {
    margin-bottom: 0;
}

.tr-wccg-child-links {
    margin: 0;
    padding: 0 16px 14px 32px;
}

.tr-wccg-child-links li {
    margin: 0 0 4px;
}

.tr-wccg-child-links a {
    text-decoration: none;
}

@media (max-width: 980px) {
    .tr-wccg-grid {
        grid-template-columns: repeat(var(--tr-wccg-tablet-cols, 3), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tr-wccg-grid {
        grid-template-columns: repeat(var(--tr-wccg-mobile-cols, 2), minmax(0, 1fr));
    }
}
