/* Gallery Section Styles */
.gallery-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 2rem;
}

/* Gallery Categories */
.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #1a365d;
    border-radius: 25px;
    background: transparent;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #1a365d;
    color: white;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Service Gallery Preview */
.service-gallery {
    margin: 1rem 0;
    max-width: 100%;
    overflow: hidden;
}

.service-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.service-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-image:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-btn,
.prev-btn,
.next-btn {
    position: absolute;
    background: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease;
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
    color: #ddd;
}

.close-btn {
    top: 1rem;
    right: 1rem;
}

.prev-btn {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

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

    .service-images {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .service-image {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
