/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(#27ae60, rgba(39 174 96)), url('images/gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-top: 0;
}
.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Gallery Controls */
.gallery-controls {
    text-align: center;
    padding: 40px 20px 20px;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 12px 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: #27ae60;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.gallery-caption {
    padding: 15px;
    background: white;
    text-align: center;
}
.gallery-caption h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

/* Back to Home Button */
.back-to-home {
    text-align: center;
    padding: 40px 0;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}
.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}
.lightbox-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.lightbox-nav button:hover {
    background: rgba(255,255,255,0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero h1 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}