.custom-widget-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.custom-widget-grid-item {
    background: #222227;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: background 0.3s ease; /* Change to background color transition */
}

.custom-widget-image-wrapper {
    height: 250px; /* Set a fixed height */
    width: 100%; /* Make it responsive */
    overflow: hidden; /* Prevents overflow when scaling */
}

.custom-widget-grid-item img {
    width: 100%;
    height: 100% !important; /* Fill the height of the wrapper */
    object-fit: cover; /* Maintain aspect ratio and fill the area */
    border-bottom: 5px solid #222227;
    transition: transform 0.3s ease; /* Transition for the image */
}

.custom-widget-grid-item img:hover {
    transform: scale(1.05); /* Scale only the image on hover */
}

.custom-widget-category-name {
    padding: 24px;
    font-size: 1.1em;
}




@media (max-width: 992px){
    .custom-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px){
    .custom-widget-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}