.gallery-toleft-viewport,
.gallery-toright-viewport {
    display: flex;
    width: 100%;
    /* overflow: hidden; */
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    justify-content: center;
    font-size: 0;
}

.gallery-image-set-one {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: 100s gallery_to_left infinite linear;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

.gallery-image-set-two {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: 100s gallery_to_right infinite linear;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

.gallery-image-set-three {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: 100s gallery_to_left infinite linear;
    animation-direction: reverse;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

.gallery-image-set-four {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: 100s gallery_to_right infinite linear;
    animation-direction: reverse;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

.gallery:hover [class^="gallery-image-set-"] {
    animation-play-state: paused;
}
.image-item {
    width: 350px;
    height: 235px;
    border-top: 1px solid white;
    border-left: 1px solid white;
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-color: collapse;
}

.image-item:hover {
    transform: scale(1.1);
    z-index: 10;
}
.image-item:hover {
    border-right: 1px solid white;
}
.gallery-image-set-three .image-item, .gallery-image-set-four .image-item {
    border-bottom: 1px solid white;
}

@keyframes gallery_to_left {
    0% {
        transform: translateX(0%);
    }

    25% {
        transform: translateX(-50%);
    }

    25.01% {
        transform: translateX(150%);
    }
}

@keyframes gallery_to_right {
    0% {
        transform: translateX(0%);
    }

    75% {
        transform: translateX(-150%);
    }

    75.01% {
        transform: translateX(50%);
    }
}

/* Full image overlay styles */
.gallery-image-set-one, 
.gallery-image-set-two, 
.gallery-image-set-three, 
.gallery-image-set-four {
    transition: opacity 0.3s ease;
}

.image-item {
    cursor: pointer; /* Indicate clickable images */
}

#fullImageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fullImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    border-radius: 10px;
}