/* Container */
.icg-section {
    padding: 60px 0;
    overflow: hidden;
    background: transparent;
    position: relative;
    user-select: none;
}

/* Edge Blur Overlay */
.icg-blur-left,
.icg-blur-right {
    position: absolute;
    top: 60px;
    bottom: 60px;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.icg-blur-left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
}
.icg-blur-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
}

/* The Track */
.icg-marquee-container {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    position: relative; 
    z-index: 1;
}

.icg-marquee-container:active {
    cursor: grabbing;
}

.icg-marquee-track {
    display: flex;
    gap: var(--card-gap-desktop, 30px) !important;
    width: max-content;
    will-change: transform;
}

/* Image Card Styling */
.icg-card {
    flex: 0 0 var(--card-width-desktop, 280px) !important;
    width: var(--card-width-desktop, 280px);
    aspect-ratio: var(--card-aspect, 16/9);
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    overflow: hidden;
    border: var(--card-border, 1px solid rgba(0,0,0,0.06));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.icg-card.has-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

.icg-card:not(.has-link):hover {
    transform: none !important;
    box-shadow: none !important;
    cursor: default;
}

.icg-full-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .icg-marquee-track {
        gap: var(--card-gap-mobile, 20px) !important;
    }
    .icg-card {
        flex: 0 0 var(--card-width-mobile, 238px) !important;
        width: var(--card-width-mobile, 238px);
    }
    .icg-blur-left, .icg-blur-right {
        width: 40px;
    }
}
.icg-card:not(.has-link) {
    cursor: default;
}