/* ============================================
   GALLERY & LIGHTBOX STYLES
   ============================================ */

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-sections);
    backdrop-filter: blur(10px);
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 300;
}

.gallery-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-secondary);
    cursor: pointer;
}

    .gallery-item:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px var(--shadow-darker);
    }

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

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

    /* No overlay text - clean image focus */
    .gallery-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient-gallery-subtle);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

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

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.spinner {
    border: 4px solid var(--spinner-border);
    border-radius: 50%;
    border-top: 4px solid var(--spinner-top);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Lightbox for full image view */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-darkest);
    justify-content: center;
    align-items: center;
}

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 10px 50px var(--shadow-darkest);
    }

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

    .lightbox-close:hover {
        opacity: 0.7;
    }

/* Loading animation overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary-reverse);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--spinner-white-border);
    border-radius: 50%;
    border-top: 4px solid var(--spinner-white-top);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   END GALLERY & LIGHTBOX STYLES
   ============================================ */
