.mod-logoslider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: transparent;
    position: relative;
    /* Mask to fade edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logoslider-container {
    display: flex;
    width: max-content;
    /* Ensure it takes full width of content */
    /* gap: 40px; Gap removed to fix loop math */
    cursor: grab;
    touch-action: pan-y;
    /* Allow vertical scroll but handle horizontal in JS */

    /* Prevent selection during drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.logoslider-container:active {
    cursor: grabbing;
}

.logoslider-item {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    /* Use margin instead of gap for seamless loop */
}

.logoslider-item img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    opacity: 0.8;
}

.logoslider-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}