/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.gallery-item {
    animation: fadeInScale 0.6s ease-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #1f2937;
    border: 1px solid #374151;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .gallery-item {
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: calc(33.333% - 1.5rem);
    }
}

.gallery-item:hover {
    border-color: #a855f7;
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #6b21a8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Loading animation for gallery items */

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.floating-art {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(168, 85, 247, 0.3);
    opacity: 0.65;
    max-width: 350px;
    max-height: 450px;
    aspect-ratio: auto;
}

.floating-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

/* Gallery grid gap animation */
#gallery-grid {
    animation: fadeIn 0.8s ease-out;
}

/* Lightbox transitions */
.lightbox-enter {
    animation: fadeInScale 0.3s ease-out;
}