.igg-custom-grid {
    display: grid;
    width: 100%;
    margin: 20px 0;
    grid-auto-rows: 200px;
}

.igg-custom-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.igg-custom-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.igg-custom-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.igg-custom-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.igg-custom-item:hover img {
    transform: scale(1.05);
}

.igg-custom-item a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.igg-custom-item:hover a:after {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .igg-custom-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(auto, 200px) !important;
    }
}

@media (max-width: 480px) {
    .igg-custom-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(auto, 250px) !important;
    }
}