/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

   :root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #1a1a2e;
    --accent: #c9a961;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, #d4af37 0%, #c9a961 50%, #b8941f 100%);
    --shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
    --shadow-lg: 0 15px 40px rgba(212, 175, 55, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLIGHTBOX FIX - Image properly visible
   ============================================ */

/* Remove golden overlay from lightbox */
.glightbox-clean .gslide-media {
    background: #000 !important;
}

.glightbox-clean .gslide-image img {
    max-height: 90vh !important;
    max-width: 90vw !important;
    object-fit: contain !important;
}

/* Fix description box - keep it at bottom */
.glightbox-clean .gslide-description {
    background: var(--gradient) !important;
    color: var(--white) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 30% !important;
    overflow-y: auto !important;
}

/* Fix title and description visibility */
.glightbox-clean .gslide-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: var(--white) !important;
}

.glightbox-clean .gslide-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.glightbox-clean .gdesc-inner {
    padding: 20px 25px !important;
}

/* Navigation arrows visible */
.glightbox-clean .gslide-inline,
.glightbox-clean .gslide-external,
.glightbox-clean .gslide-video {
    background: #000 !important;
}

/* Close button visible */
.glightbox-clean .gclose,
.glightbox-clean .gprev,
.glightbox-clean .gnext {
    color: var(--white) !important;
    background: rgba(212, 175, 55, 0.9) !important;
    border-radius: 50% !important;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
    background: var(--primary) !important;
}

/* Counter visible */
.glightbox-clean .gslide-number {
    background: rgba(212, 175, 55, 0.9) !important;
    color: var(--white) !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

/* Image container fix */
.gslide-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* Remove any golden gradient overlay */
.glightbox-container .goverlay {
    background: rgba(0, 0, 0, 0.95) !important;
}


/* Hero Section */
.gallery-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 30, 0.85) 100%),
                url('https://images.unsplash.com/photo-1452421822248-d4c2b47f0c81?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.gallery-hero-label {
    display: inline-block;
    padding: 8px 30px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.gallery-hero-label i {
    margin-right: 8px;
}

.gallery-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.gallery-hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Gallery Stats */
.gallery-stats {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-box:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.stat-box:hover i {
    color: var(--white);
}

.stat-count {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-box:hover .stat-count {
    color: var(--white);
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.stat-box:hover .stat-label {
    color: var(--white);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item a {
    display: block;
    position: relative;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.gallery-content i {
    color: var(--primary);
    margin-right: 5px;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-icon i {
    font-size: 28px;
    color: var(--white);
}

/* Load More Button */
.btn-load-more {
    padding: 15px 40px;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-load-more i {
    font-size: 18px;
}

/* CTA Section */
.cta-gallery {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
}

.cta-gallery-wrapper {
    background: var(--gradient);
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}

.cta-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-gallery-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* GLightbox Customization */
.glightbox-clean .gslide-description {
    background: var(--gradient);
    color: var(--white);
}

.glightbox-clean .gdesc-inner {
    padding: 20px 25px;
}

.glightbox-clean .gslide-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.glightbox-clean .gslide-desc {
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-item a {
        height: 350px;
    }
    
    .cta-gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .gallery-hero-title {
        font-size: 2rem;
    }
    
    .gallery-hero-text {
        font-size: 1rem;
    }
    
    .gallery-stats {
        padding: 20px;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-box i {
        font-size: 2rem;
    }
    
    .stat-count {
        font-size: 1.5rem;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item a {
        height: 300px;
    }
    
    .cta-gallery-wrapper {
        padding: 40px 30px;
        text-align: center;
    }
    
    .cta-gallery-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero-title {
        font-size: 1.6rem;
    }
    
    .stat-count {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
    
    .gallery-content h4 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 12px;
    }
}
