.lightbox-swipe-instruction {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Allows clicks to pass through */
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, will be shown only on mobile */
}

.lightbox-swipe-instruction.visible {
    opacity: 1;
}

.swipe-icon-container {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.swipe-arrow {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.swipe-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    position: absolute;
}

.swipe-arrow.left::before {
    transform: rotate(-135deg);
    left: 12px;
}

.swipe-arrow.right::before {
    transform: rotate(45deg);
    right: 12px;
}

.swipe-hand {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    animation: swipe-animation 2s infinite;
}

@keyframes swipe-animation {
    0% { transform: translateX(15px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-15px); opacity: 0; }
}

/* Show on mobile and tablet devices */
@media (max-width: 1024px) {
    .lightbox-swipe-instruction {
        display: block;
    }
}