/* Container forces horizontal alignment and crops any images sticking out */
.image-banner {
	margin-top: 280px; /* Pushes the banner 280px down from the top element */
    overflow: hidden;
    padding: 0px 0;
    background: transparent;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

/* Optional gradient overlays to blend the edges seamlessly into the background */
.image-banner::before,
.image-banner::after {
    position: absolute;
    top: 0;
    width: 00px;
    height: 100%;
    content: "";
    z-index: 2;
}
.image-banner::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #ffffff);
}
.image-banner::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
}

/* The track holding both groups, triggering the infinite loop animation */
/* 1. The wrapper handles the fade mask and hides the overflow */
.banner-wrapper {
    overflow: hidden;
    width: 100%;
    
    /* Modern CSS Mask creates the smooth fade-out blur effect on both edges */
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* 2. The track handles the animation speed */
.image-track {
    display: flex;
    width: max-content;
    
    /* ADJUST SPEED HERE: Lower seconds = faster, Higher seconds = slower */
    animation: scrollBanner 100s linear infinite; 
}

/* Pause the track when a user hovers over it */
.image-track:hover {
    animation-play-state: paused;
}

.image-track img {
    flex: 0 0 auto; 
    height: 100px;  
    padding: 0 20px; 
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .image-track {
        animation: none;
        overflow-x: auto;
        width: 100%;
    }
    .banner-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}


/* Individual layout setups for your groups and image dimensions */
.image-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* Adjust spacing depending on your item counts */
    gap: 5px; 
    padding-right: 5px; 
}

.image-group img {
    height: 200px; /* Forces uniform size across varying aspect ratios */
    width: auto;
    object-fit: contain;
}

/* Pauses animation when someone hovers over a logo */
.image-banner:hover .image-track {
    animation-play-state: paused;
}

/* Keyframe movement translates exactly one group's width over leftward */
@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
