/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 3px;
}

/* Japanese Grid Pattern Overlay */
.jp-grid-pattern {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* Gallery Vertical Mask */
.mask-gradient-y {
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.sky-glow {
    box-shadow: 0 0 25px -5px rgba(14, 165, 233, 0.35);
}

/* Keyframes for Infinite Smooth Vertical Loop */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Animation Classes */
.animate-scroll-up-fast {
    animation: scrollUp 18s linear infinite;
}

.animate-scroll-down-fast {
    animation: scrollDown 18s linear infinite;
}

.animate-scroll-up-slow {
    animation: scrollUp 24s linear infinite;
}

.animate-scroll-down-slow {
    animation: scrollDown 24s linear infinite;
}

/* Pause scroll when hovering over gallery */
.gallery-container:hover .animate-scroll-up-fast,
.gallery-container:hover .animate-scroll-down-fast,
.gallery-container:hover .animate-scroll-up-slow,
.gallery-container:hover .animate-scroll-down-slow {
    animation-play-state: paused;
}