


.gallery-marquee {
    position: relative;
    overflow: hidden;
    max-width: unset !important;
    width: 100%;
    padding: 50px 0;
}

.gallery-marquee .marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-marquee .marquee-track {
    display: flex;
    width: fit-content;
    gap: 20px;
    will-change: transform;
    transition: none;
}

.gallery-marquee .marquee-item {
    flex-shrink: 0;
    height: 300px;
    width: auto;
}

.gallery-marquee .marquee-item img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
}

/* Scrollbar Styles */
.gallery-marquee .marquee-scrollbar-container {
    margin: 20px auto;
    max-width: 90%;
    width: 100%;
    height: 10px;
    position: relative;
    overflow: visible;
}

.gallery-marquee .marquee-scrollbar {
    width: 100%;
    height: 1px;
    background-color: var(--blue);
    border-radius: 1px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-marquee .marquee-scrollbar-thumb {
    height: 10px;
    width: 300px;
    background-color: var(--blue);
    border-radius: 0px;
    position: absolute;
    top: -4px;
    transform: translateY(-50%);
    left: 0;
    transition: none;
    will-change: transform;
    cursor: grab;
}

.gallery-marquee .marquee-scrollbar-thumb:active {
    cursor: grabbing;
}

.gallery-marquee .marquee-controls {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 30px;
    position: absolute;
    top: 100px;
    width: 97%;
    left: unset;
    margin: auto;
}

.gallery-marquee .marquee-btn {
    height: 50px;
    width: 50px;
    border: unset;
    background-color: transparent;
    cursor: pointer;
    font-size: 100px;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: invert(55%) sepia(80%) saturate(544%) hue-rotate(50deg) brightness(99%) contrast(101%);
}

.gallery-marquee .marquee-btn:focus, 
.gallery-marquee .marquee-btn:focus-visible {
    outline: unset;
}

.gallery-marquee .marquee-btn-prev::before {
    content: '‹';
}

.gallery-marquee .marquee-btn-next::before {
    content: '›';
}

/* Ensure smooth performance */
.gallery-marquee .marquee-track * {
    pointer-events: auto;
}

.gallery-marquee .marquee-track.dragging {
    cursor: grabbing !important;
}

@media (max-width: 768px) {
    .gallery-marquee .marquee-item {
        height: 250px;
    }
    
    .gallery-marquee .marquee-scrollbar-container {
        max-width: 300px;
    }
    
    .gallery-marquee .marquee-scrollbar-thumb {
        width: 60px;
    }
    
    .gallery-marquee .marquee-btn {
        height: 40px;
        width: 40px;
        font-size: 60px;
    }
}
