﻿/* Gallery Styles - Patla Agrotech Pvt. Ltd. */

.gallery-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f9faf9 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.gallery-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-section .section-badge {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gallery-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3e2b;
    margin-bottom: 12px;
}

.gallery-section .highlight {
    background: linear-gradient(135deg, #2e7d32, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gallery-section .section-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover {
        border-color: #2e7d32;
        color: #2e7d32;
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #2e7d32, #1b5e20);
        border-color: #2e7d32;
        color: white;
        box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Gallery Item */
.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

/* Image Wrapper */
.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.view-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    font-style: normal;
}

.overlay-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Gallery Info */
.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3e2b;
    margin-bottom: 8px;
}

.gallery-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gallery-location {
    display: inline-block;
    font-size: 0.75rem;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

    .view-more-btn:hover {
        transform: translateX(5px);
        background: linear-gradient(135deg, #1b5e20, #0a3d0e);
        box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
    }

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    font-style: normal;
}

.view-more-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 15px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

    .close-modal:hover {
        color: #2e7d32;
        transform: 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;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-image-wrapper {
        height: 260px;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 15px;
    }

        .gallery-section .section-title {
            font-size: 2rem;
        }

        .gallery-section .section-subtitle {
            font-size: 0.9rem;
        }

    .gallery-filters {
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 6px 18px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-image-wrapper {
        height: 240px;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }

    .view-more-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .gallery-section {
        padding: 40px 15px;
    }

        .gallery-section .section-badge {
            font-size: 0.75rem;
            padding: 6px 15px;
        }

        .gallery-section .section-title {
            font-size: 1.5rem;
        }

        .gallery-section .section-subtitle {
            font-size: 0.85rem;
        }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 5px 14px;
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image-wrapper {
        height: 250px;
    }

    .gallery-info {
        padding: 15px;
    }

    .gallery-title {
        font-size: 1rem;
    }

    .gallery-description {
        font-size: 0.75rem;
    }

    .gallery-location {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .view-more-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }

    .modal-caption {
        font-size: 0.85rem;
        bottom: 10px;
    }

    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
    .gallery-image-wrapper {
        height: 220px;
    }

    .filter-btn {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-image-wrapper {
        height: 200px;
    }

    .gallery-info {
        padding: 12px;
    }

    .gallery-title {
        font-size: 0.9rem;
    }

    .gallery-description {
        font-size: 0.7rem;
    }
}
