/* Gallery Page Styles */

/* Page Title */
.page-title {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 100px 0 50px;
    margin-top: 70px;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Filter Tabs */
.gallery-filter {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Gallery Grid */
.gallery-section {
    padding: 50px 0;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 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: opacity 0.3s ease;
}

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

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gallery-popup {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.gallery-popup:hover {
    background-color: #2980b9;
}

.gallery-image:hover img {
    transform: scale(1.1);
}

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

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

/* Gallery Popup Lightbox */
.gallery-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.gallery-popup-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.gallery-popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-popup {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active menu item */
.nav-menu a.active {
    color: #e74c3c;
}

.nav-menu a.active:after {
    width: 100%;
    background-color: #e74c3c;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-title {
        padding: 80px 0 40px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-popup-content {
        max-width: 95%;
    }
    
    .close-popup {
        top: -30px;
        right: 0;
    }
}