.heart-container {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(10, 70px);
    gap: 3px; 
    max-width: 1050px; 
    width: 100%;
    height: auto;
    margin: auto;
    box-sizing: border-box;
}

.gallery-item .center-image {
    border-radius: 100%;
    background: #E96A25;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.gallery-item img.brand-image {
    width: 100%;
    height: 100%;
    max-width: 70px;
    max-height: 70px;
    padding: 3px; 
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: white;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item img.brand-image:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}


@media (max-width: 992px) {
    .heart-container {
        grid-template-rows: repeat(10, 55px);
        gap: 2px;
        max-width: 825px; 
    }

    .gallery-item img.brand-image {
        max-width: 55px;
        max-height: 55px;
        padding: 2px;
    }
}

@media (max-width: 768px) {
    .heart-container {
        grid-template-rows: repeat(10, 45px);
        gap: 1.5px;
        max-width: 675px;
    }

    .gallery-item img.brand-image {
        max-width: 45px;
        max-height: 45px;
        padding: 1.5px;
    }
}

@media (max-width: 576px) {
    .heart-container {
        grid-template-columns: repeat(15, 1fr);
        grid-template-rows: repeat(10, 28px);
        max-width: 430px; 
        gap: 1px;
        margin: auto;
    }

    .gallery-item img.brand-image {
        width: 28px;
        height: 28px;
        padding: 0;
        max-width: none;
        max-height: none;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .gallery-item img.brand-image:hover {
        transform: scale(1.05);
        z-index: 10;
        position: relative;
    }

    .gallery-item .center-image {
        width: 84px; /* 3x 28px */
        height: 84px;
        padding: 4px;
    }
}
