/* ======================
   Gallery Page Styles
   ====================== */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/gallery-bg.jpg') no-repeat center center/cover;
    padding: 150px 0 100px;
    color: #fff;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    margin: 0 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 15px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #3B9C68;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #3B9C68;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 50px;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3B9C68;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 156, 104, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-info {
    text-align: center;
    padding: 20px;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.gallery-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.gallery-info p {
    font-size: 0.9rem;
    color: #ddd;
    margin: 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3B9C68;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #2d7a4f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 156, 104, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3B9C68;
    color: #3B9C68;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #3B9C68;
    color: #fff;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #eee;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 991px) {
    .page-header {
        padding: 120px 0 80px;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 60px;
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Lightbox Customization */
.lg-outer .lg-thumb-outer {
    background-color: #0a0a0a;
}

.lg-outer .lg-thumb-item {
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
    opacity: 1;
    border-color: #3B9C68;
}

.lg-outer .lg-toogle-thumb {
    background-color: #3B9C68;
}

.lg-actions .lg-next,
.lg-actions .lg-prev {
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    background-color: #3B9C68;
}

.lg-actions .lg-next::after,
.lg-actions .lg-prev::after {
    color: #fff;
    font-size: 20px;
}
