/* Gallery styles */
.gallery-item .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item .card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item .image-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

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

.gallery-item .card-body {
    padding: 1.25rem;
}

.gallery-item .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-item .card-text {
    font-size: 0.9rem;
    color: #666;
}

/* Nav pills customization */
#galleryTab .nav-link {
    color: #666;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

#galleryTab .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#galleryTab .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Modal customization */
#imageModal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#imageModal .modal-header {
    background-color: white;
    padding: 1rem 1.5rem;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal #modalImage {
    width: 100%;
    border-radius: 0;
}

#imageModal #modalDescription {
    padding: 1rem 1.5rem;
    margin: 0;
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #galleryTab {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    #galleryTab .nav-item {
        flex: 0 0 auto;
    }
    
    .gallery-item .card-title {
        font-size: 1rem;
    }
    
    .gallery-item .card-text {
        font-size: 0.85rem;
    }
}
