/* Gallery Specific Styles */
body {
    background: white !important;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white !important;
    z-index: -1;
}



/* Department Map */
.department-map {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.department-map.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.department-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.department-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.5s ease forwards;
}

.department-item:nth-child(1) { animation-delay: 0.1s; }
.department-item:nth-child(2) { animation-delay: 0.2s; }
.department-item:nth-child(3) { animation-delay: 0.3s; }
.department-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.department-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--bright-orange);
}

.department-item.active {
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.dept-icon {
    margin-bottom: 0.5rem;
}

.dept-icon svg {
    width: 2rem;
    height: 2rem;
    transition: all 0.3s ease;
}

.dept-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar {
    height: 3px;
    background: rgba(0,0,0,0.1);
    margin: 0 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bright-orange), var(--brand-accent));
    width: 0%;
    transition: width 0.5s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.gallery-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: auto;
}

/* Department Sections */
.department-section {
    margin-bottom: 4rem;
    scroll-margin-top: 140px;
}

.department-map.sticky + .gallery-section {
    padding-top: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-grid {
    column-count: 4;
    column-gap: 1.5rem;
    column-fill: balance;
}



@media (max-width: 1024px) {
    .section-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .section-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .section-grid {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    break-inside: avoid;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 3px var(--accent), 0 0 20px rgba(193, 68, 14, 0.4);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-description {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

@media (max-width: 768px) {
    .department-nav {
        padding: 1rem;
        gap: 0.5rem;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .department-item {
        min-width: 100px;
        padding: 0.8rem;
        flex-shrink: 0;
    }
    
    .dept-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .dept-name {
        font-size: 0.7rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    

    
    .department-section {
        scroll-margin-top: 120px;
    }
    
    .department-map.sticky + .gallery-section {
        padding-top: 100px;
    }
}