/* 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;
}
/* Video Embed Styles */
.icg-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: var(--video-aspect, 16/9); 
    height: var(--video-h-desk, auto); /* Overrides aspect-ratio if filled */
    background: #000;
    border-radius: 24px; /* Premium Apple-like rounding */
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fixes mobile touch layer bug */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icg-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    aspect-ratio: var(--video-aspect, 16/9); /* Guarantees no stretch/distortion */
    border: none;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .icg-video-wrapper {
        border-radius: 16px; /* Slightly tighter rounding on mobile */
        width: 90%;
        height: var(--video-h-mob, auto); /* Overrides mobile height if filled */
    }
}