 /* Gallery Banner Section */
.gallery-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.gallery-banner-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.gallery-banner-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Filters Section */
.gallery-filters-section {
    padding: 30px 0;
    background-color: var(--gray);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 60px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1003;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

#modalImage {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-caption {
    background-color: var(--white);
    padding: 15px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-banner-section {
        padding: 100px 0 60px;
    }
    
    .gallery-banner-section h1 {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-banner-section h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .close-modal {
        top: -30px;
        font-size: 1.5rem;
    }
}

/* Gallery Banner Section */
.gallery-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.gallery-banner-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Gallery Grid */
.gallery-grid-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 15px;
    background: white;
}

.gallery-caption h3 {
    margin-top: 0;
    color: #2c3e50;
}

.gallery-caption p {
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    animation: zoom 0.3s ease;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
    }
}