.brand-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(4, 1fr); /* Default: 4 columns for desktop */
}

.brand-grid-item {
    transition: transform 0.3s ease;
}

.brand-grid-item:hover {
    
}

.brand-grid-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    -webkit-filter: grayscale(0%);
   -moz-filter: grayscale(0%);
   filter: grayscale(0%);
}
.brand-grid-item img:hover {
    
    transition: all 0.3s ease;
    -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
   filter: grayscale(100%);
}


.brand-grid-item .brand-placeholder {
    background-color: #f0f0f0;
    display: block;
}

.brand-grid-item .brand-name {
    margin: 10px 0 0;
    font-size: 14px;
    font-family: Poppins;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Very small screens: 1 column */
@media (max-width: 479px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
}