/* Gallery Styling */
.gallery-container {
    padding: 2rem 5% 5rem;
    min-height: 70vh;
}

.gallery-header {
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-lighter);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    transition: var(--transition);
}

.gallery-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5; /* Subtle background for loading */
    transition: var(--transition);
    animation: fadeIn 0.8s ease backwards;
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.video-item {
    position: relative;
    background: #000;
}

.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0.6;
    pointer-events: none;
    transition: var(--transition);
}

.video-item:hover::after {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem;
    background: #f9f9f9;
    border: 1px dashed var(--border-color);
}

.hidden {
    display: none !important;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

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

.lightbox-nav {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 3rem;
}

.lightbox-nav button {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px;
    transition: var(--transition);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
    .gallery-header h2 {
        font-size: 2rem;
    }
}

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