/* Gallery Page Specific Styles */

/* Inner Page Hero (Shared between subpages) */
.inner-hero-section {
    position: relative;
    height: 40vh;
    background: linear-gradient(135deg, rgba(7, 27, 77, 0.85), rgba(10, 25, 49, 0.85)), url('campus-day.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 0 5%;
}

.inner-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 49, 0.4);
    z-index: 1;
}

.inner-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.inner-hero-section h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.inner-hero-section p {
    font-size: clamp(14px, 1.8vw, 16px);
    opacity: 0.9;
    font-weight: 300;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    background: rgba(21, 101, 192, 0.02);
}

.filter-btn.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

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

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: var(--light);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1), 
                box-shadow 0.4s ease, 
                opacity 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

/* Overlays */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 49, 0.9) 0%, rgba(10, 25, 49, 0.4) 60%, rgba(10, 25, 49, 0.1) 100%);
    opacity: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
}

.overlay-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.overlay-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    font-weight: 300;
}

.zoom-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Lightbox Overlay styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-content-box {
    max-width: 85%;
    max-height: 85%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.lightbox.active .lightbox-content-box {
    transform: scale(1);
}

.lightbox-content-box img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.lightbox-content-box h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .gallery-section {
        padding: 50px 0;
    }
    
    .filter-controls {
        margin-bottom: 30px;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .close-lightbox {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}
