/* Gallery Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--oxford-navy) 0%, var(--academic-blue) 100%);
    color: var(--ivory-white);
    padding: 100px 0 60px;
    text-align: center;
}

.page-tag {
    display: inline-block;
    background-color: transparent;
    color: var(--heritage-gold);
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--heritage-gold);
    border-radius: 2px;
    margin-bottom: 20px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--ivory-white);
    margin-bottom: 16px;
}

.page-description {
    font-size: 1.125rem;
    color: rgba(248, 246, 241, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filter */
.gallery-filter {
    background-color: var(--soft-parchment);
    padding: 30px 0;
    border-bottom: 1px solid var(--parchment-dark);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    background-color: transparent;
    border: 1px solid var(--antique-silver);
    border-radius: 2px;
    color: var(--gray-dark);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--heritage-gold);
    color: var(--heritage-gold);
}

.filter-tab.active {
    background-color: var(--heritage-gold);
    border-color: var(--heritage-gold);
    color: var(--oxford-navy);
}

/* Gallery Grid */
.gallery-section {
    padding: 60px 0;
    background-color: var(--ivory-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    background-color: var(--soft-parchment);
}

.gallery-item:nth-child(3n+1) {
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conference-bg { background: linear-gradient(135deg, #0D2B52 0%, #071B3B 100%); }
.lecture-bg { background: linear-gradient(135deg, #1A3A6B 0%, #0D2B52 100%); }
.event-bg { background: linear-gradient(135deg, #2E4A6B 0%, #1A3A6B 100%); }
.seminar-bg { background: linear-gradient(135deg, #3E5A7B 0%, #2E4A6B 100%); }

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 27, 59, 0.95) 0%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-category {
    font-size: 0.6875rem;
    color: var(--heritage-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.gallery-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--ivory-white);
    margin-bottom: 8px;
    font-weight: 500;
}

.gallery-date {
    font-size: 0.8125rem;
    color: rgba(248, 246, 241, 0.7);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(7, 27, 59, 0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--ivory-white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(248, 246, 241, 0.1);
    border: 1px solid var(--heritage-gold);
    color: var(--heritage-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--heritage-gold);
    color: var(--oxford-navy);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
}

.lightbox-image {
    margin-bottom: 24px;
}

.lightbox-placeholder {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: linear-gradient(135deg, var(--academic-blue) 0%, var(--oxford-navy) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.lightbox-placeholder span {
    font-size: 6rem;
}

.lightbox-category {
    font-size: 0.75rem;
    color: var(--heritage-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lightbox-info h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--ivory-white);
    margin: 12px 0;
}

.lightbox-info p {
    color: rgba(248, 246, 241, 0.7);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(3n+1) { grid-row: span 1; }
    .lightbox-nav { display: none; }
}
