/* ============================================
   GALLERY PAGE - COMPLETE STYLES
   Summit Template - Masonry Grid & Lightbox
============================================ */

/* Gallery Hero */
.gallery-hero {
    height: 50vh;
    min-height: 450px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('../images/hero/gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.gallery-hero-content h1 {
    font-family: 'Marcellus', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 20px 0;
}

/* Gallery Filter Section */
.gallery-filter-section {
    padding: 60px 0 0;
}

/* Masonry Grid */
.gallery-grid-section {
    padding: 60px 0;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-secondary);
}

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

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 63, 0.9), rgba(224, 122, 95, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

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

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay-content h4 {
    font-family: 'Marcellus', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Video Badge */
.video-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    z-index: 2;
}

.video-badge i {
    margin-right: 5px;
}

/* Filter Wrapper */
.filter-wrapper {
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-sunset);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--accent-forest);
    background: var(--accent-forest);
    color: white;
}

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

.filter-results {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-results span {
    font-weight: 700;
    color: var(--accent-sunset);
    font-size: 1.2rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: transparent;
    border: 2px solid var(--accent-forest);
    color: var(--accent-forest);
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--accent-forest);
    color: white;
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: 'Marcellus', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

.lightbox-modal.active {
    display: flex;
}

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

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-forest);
    transform: translateY(-50%) scale(1.05);
}

/* Gallery CTA */
.gallery-cta {
    padding: 80px 0;
}

.gallery-cta .container.glass-card {
    max-width: 700px;
    text-align: center;
    padding: 60px 50px;
    margin: 0 auto;
}

.gallery-cta i {
    font-size: 3rem;
    color: var(--accent-sunset);
    margin-bottom: 20px;
}

.gallery-cta h3 {
    font-family: 'Marcellus', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.gallery-cta p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
    }
    
    .filter-group {
        align-items: center;
    }
    
    .filter-results {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 350px;
        margin-top: 80px;
    }
    
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-masonry {
        column-count: 1;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .gallery-cta .container.glass-card {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        min-height: 300px;
    }
    
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .overlay-content h4 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.7rem;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .gallery-cta .container.glass-card {
        padding: 30px 20px;
    }
    
    .gallery-cta h3 {
        font-size: 1.3rem;
    }
}