﻿/* LEEDER AGRI GENETICS - Gallery Section CSS */
/* HD Images | Hover Effects | Mobile Responsive */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.leeder-gallery-section {
    background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
    padding: 80px 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
}

    .leeder-gallery-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(46, 125, 50, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }

.leeder-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ========== SECTION HEADER ========== */
.leeder-gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.leeder-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    padding: 8px 28px;
    border-radius: 60px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

    .leeder-header-badge i {
        font-size: 0.9rem;
        color: #ffd54f;
    }

    .leeder-header-badge span {
        font-size: 0.85rem;
        font-weight: 600;
        color: white;
        letter-spacing: 1px;
    }

.leeder-gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.highlight {
    color: #2e7d32;
    position: relative;
    display: inline-block;
}

    .highlight::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 0;
        width: 100%;
        height: 8px;
        background: rgba(46, 125, 50, 0.2);
        border-radius: 4px;
        z-index: -1;
    }

.leeder-gallery-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32, #ff9800, #2e7d32);
    margin: 0 auto 18px;
    border-radius: 3px;
}

.leeder-gallery-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
}

/* ========== FILTER BUTTONS ========== */
.leeder-gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .filter-btn:hover {
        background: #2e7d32;
        color: white;
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #2e7d32, #1b5e20);
        color: white;
        box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    }

/* ========== GALLERY GRID ========== */
.leeder-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-image-wrapper:hover .gallery-img {
    transform: scale(1.1);
}

/* Image Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(27, 94, 32, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 12px;
    display: block;
}

.overlay-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Gallery Caption */
.gallery-caption {
    padding: 12px 8px;
    text-align: center;
}

    .gallery-caption h4 {
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }

    .gallery-caption span {
        font-size: 0.7rem;
        color: #ff9800;
    }

        .gallery-caption span i {
            margin-right: 4px;
            font-size: 0.65rem;
        }

/* ========== LIGHTBOX MODAL ========== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

    .lightbox-modal.active {
        display: flex;
    }

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

    .close-lightbox:hover {
        color: #ff9800;
        transform: scale(1.1);
    }

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

    .prev-btn:hover, .next-btn:hover {
        background: #ff9800;
    }

    .prev-btn i, .next-btn i {
        font-size: 1.5rem;
        color: white;
    }

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.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.7);
    margin: 0 auto;
    width: fit-content;
    border-radius: 40px;
}

/* ========== VIEW MORE BUTTON ========== */
.leeder-gallery-footer {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

    .view-more-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4);
    }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .leeder-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .leeder-gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .leeder-gallery-section {
        padding: 50px 0;
    }

    .leeder-gallery-container {
        padding: 0 20px;
    }

    .leeder-gallery-title {
        font-size: 1.8rem;
    }

    .leeder-gallery-subtitle {
        font-size: 0.9rem;
    }

    .leeder-gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .leeder-gallery-grid {
        gap: 15px;
    }

    .overlay-content i {
        font-size: 1.8rem;
    }

    .overlay-content h4 {
        font-size: 1rem;
    }

    .overlay-content p {
        font-size: 0.7rem;
    }

    .gallery-caption h4 {
        font-size: 0.8rem;
    }

    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }

        .prev-btn i, .next-btn i {
            font-size: 1.2rem;
        }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        bottom: 20px;
    }
}

@media (max-width: 580px) {
    .leeder-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .leeder-gallery-title {
        font-size: 1.5rem;
    }

    .leeder-header-badge {
        padding: 6px 20px;
    }

        .leeder-header-badge span {
            font-size: 0.75rem;
        }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .view-more-btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
}
