/* 
   Sanskar National School - Gallery Specific Styles
   Isolated from global main.css
*/

.gallery-archive {
    padding-bottom: 100px;
}

/* Category Filter Chips */
.gallery-filters-fun {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    margin-top: -30px;
}

.filter-chip-fun {
    padding: 12px 25px;
    background: var(--white);
    border: 2px solid var(--bg-soft);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.filter-chip-fun:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.filter-chip-fun.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Gallery Grid */
.gallery-grid-fun {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-card-fun {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
    background: var(--bg-soft);
}

.gallery-card-fun img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card-fun:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-card-fun:hover img {
    transform: scale(1.1);
}

.gallery-overlay-fun {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-card-fun:hover .gallery-overlay-fun {
    opacity: 1;
}

.gallery-overlay-fun h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-overlay-fun span {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-card-fun:hover .gallery-overlay-fun h4,
.gallery-card-fun:hover .gallery-overlay-fun span {
    transform: translateY(0);
}

/* Lightbox Modal */
.gallery-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content-fun {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content-fun img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close-fun {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-nav-fun {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn-fun {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn-fun:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

.lightbox-caption-fun {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.lightbox-caption-fun h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.lightbox-caption-fun span {
    color: var(--secondary);
    font-weight: 700;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 100px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.gallery-empty i {
    font-size: 5rem;
    color: var(--bg-soft);
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid-fun {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .nav-btn-fun {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-close-fun {
        top: -40px;
        font-size: 2rem;
    }
}
