@tailwind base;
@tailwind components;
@tailwind utilities;

/* Gallery Carousel Styles */
.carousel-column {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    animation: scrollUp 30s linear infinite;
    display: flex;
    flex-direction: column;
}

.carousel-track:nth-child(1) {
    animation-delay: 0s;
}

.carousel-track:nth-child(2) {
    animation-delay: -7.5s;
}

.carousel-track:nth-child(3) {
    animation-delay: -15s;
}

.carousel-track:nth-child(4) {
    animation-delay: -22.5s;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Pause on hover */
.gallery-carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Gallery Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-lightbox .close,
.gallery-lightbox .nav-arrow {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.gallery-lightbox .close {
    top: 20px;
    right: 30px;
}

.gallery-lightbox .prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox .next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}
