﻿/* Gallery Section - HD Image Gallery */
.gallery-section {
    width: 100%;
    background: linear-gradient(135deg, #FEF9F0 0%, #FEF5E8 100%);
    padding: 80px 5%;
    position: relative;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.gallery-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2D2A24;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

    .gallery-title .highlight {
        color: #FF8C00;
        position: relative;
        display: inline-block;
    }

        .gallery-title .highlight::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #FF8C00, #FFD700);
            border-radius: 3px;
        }

.gallery-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid #FFE0B5;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover {
        border-color: #FF8C00;
        color: #FF8C00;
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #FF8C00, #FF6B00);
        border-color: #FF8C00;
        color: white;
    }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

    .gallery-item.hide {
        display: none;
    }

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-icon {
    color: white;
    font-size: 1.2rem;
    background: rgba(255, 140, 0, 0.8);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-caption {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin: 30px 0 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

    .load-more-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    }

/* Gallery Stats */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 30px;
    background: white;
    border-radius: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FF8C00;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    margin: 0 auto;
    width: fit-content;
    border-radius: 50px;
    margin: 0 auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

    .close-lightbox:hover {
        color: #FF8C00;
        transform: scale(1.1);
    }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

    .lightbox-prev:hover, .lightbox-next:hover {
        background: #FF8C00;
        transform: translateY(-50%) scale(1.1);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Loading Animation */
.gallery-img.loading {
    filter: blur(10px);
    background: #f0f0f0;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gallery-section {
        padding: 60px 4%;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 4%;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-stats {
        gap: 30px;
        padding: 20px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 40px 3%;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-badge {
        font-size: 0.75rem;
        padding: 6px 18px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}
