/* ==========================================================================
   Page styles: photogallery/photogallery.html
   Global/shared styles live in assets/css/style.css (and tailwind.css).
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Shimmer Loading Skeleton for Lazy Images */
.img-skeleton {
    background: linear-gradient(90deg, #e4e4e7 25%, #f4f4f5 50%, #e4e4e7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .img-skeleton {
    background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Image Lazy Loading Transition */
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-out;
}

.lazy-img.loaded {
    opacity: 1;
}

/* Category Active Link */
.cat-nav-item.active {
    background-color: #c41e3a;
    color: #ffffff !important;
    font-weight: 700;
}

.dark .cat-nav-item.active {
    background-color: #dc2626;
    color: #ffffff !important;
}

/* Grid Layout Switching */
.gallery-grid.grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 1.25rem;
}

.gallery-grid.grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 0.75rem;
}

.gallery-grid.grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    grid-gap: 1.5rem;
}
