/* ========================================
   Gallery Filters
   ======================================== */
.gallery-filters {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* ========================================
   Gallery Grid (Stories)
   ======================================== */
.gallery {
    padding: var(--spacing-2xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.placeholder-gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform var(--transition-base);
}

.gallery-item:hover .placeholder-gallery-image {
    transform: scale(1.05);
}

.gallery-info {
    padding: var(--spacing-md);
}

.gallery-info h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.description {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ========================================
   Posters Gallery (Past Activities)
   ======================================== */
.posters-gallery {
    padding: var(--spacing-2xl) 0;
}

.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.poster-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.poster-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.poster-item.hidden {
    display: none;
}

.poster-image {
    position: relative;
    cursor: pointer;
}

.placeholder-poster {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    transition: transform var(--transition-base);
}

.poster-item:hover .placeholder-poster {
    transform: scale(1.02);
}

.poster-content {
    text-align: center;
    color: var(--bg-white);
}

.poster-content h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.poster-content p {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.poster-date {
    font-size: 1rem !important;
    font-weight: 600;
    opacity: 0.9;
}

/* Poster Color Variations */
.placeholder-poster.poster-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

.placeholder-poster.poster-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
}

.placeholder-poster.poster-green {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.placeholder-poster.poster-pink {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.placeholder-poster.poster-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #5EEAD4 100%);
}

.placeholder-poster.poster-yellow {
    background: linear-gradient(135deg, #EAB308 0%, #FDE047 100%);
}

.placeholder-poster.poster-red {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

.placeholder-poster.poster-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.poster-info {
    padding: var(--spacing-lg);
}

.poster-info h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.event-type {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.detail-item {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.event-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   Lightbox Modal
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-caption {
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-md);
    font-size: 1.125rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    line-height: 1;
}

/* Lightbox Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox.active {
    animation: fadeIn var(--transition-base);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox.active .lightbox-content {
    animation: scaleIn var(--transition-base);
}
