/* ===================================
   Gallery Page - VSCO Style
   =================================== */

.gallery-header {
    padding: 6rem 20px 3rem;
    text-align: center;
    background: linear-gradient(135deg, #123e56 0%, #1a5570 50%, #f99340 100%);
    color: var(--light);
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.vsco-gallery {
    padding: 3rem 20px;
    background: #fafafa;
    min-height: 100vh;
}

.gallery-grid-vsco {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 15px;
}

.gallery-grid-vsco img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    break-inside: avoid;
}

.gallery-grid-vsco img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-grid-vsco video {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 3px;
    display: block;
    break-inside: avoid;
    background: #000;
}

.gallery-grid-vsco video:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Responsive columns */
@media (max-width: 1024px) {
    .gallery-grid-vsco {
        column-count: 2;
        column-gap: 16px;
    }
    
    .gallery-grid-vsco img,
    .gallery-grid-vsco video {
        margin-bottom: 16px;
    }
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray);
}

/* Loading Spinner */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

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

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

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

.gallery-grid-vsco {
    transition: opacity 0.5s ease-in;
}

@media (max-width: 640px) {
    .gallery-grid-vsco {
        column-count: 2;
        column-gap: 16px;
    }
    
    .gallery-grid-vsco img,
    .gallery-grid-vsco video {
        margin-bottom: 16px;
    }
    
    .gallery-header h1 {
        font-size: 2rem;
    }
}
