/* Gallery CSS for Mindspark Learning Center */

/* Gallery Container */
.gallery-container {
    padding: 2rem 0;
}

/* Gallery Filter Buttons */
.gallery-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-filter .btn-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-filter .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #666;
}

.gallery-filter .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.gallery-filter .btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item.hidden {
    display: none;
}

/* Gallery Card */
.gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

/* Gallery Image */
.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gallery Caption */
.gallery-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-card .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Gallery Modal */
.gallery-modal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.gallery-modal .modal-title {
    font-weight: 600;
    color: #333;
}

.gallery-modal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gallery-modal .btn-close:hover {
    opacity: 1;
    color: #333;
}

.gallery-modal .modal-body {
    padding: 0;
}

.gallery-modal .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-modal .carousel-caption {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 1rem;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Gallery Categories */
.gallery-category {
    margin-bottom: 2rem;
}

.gallery-category h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Empty Gallery State */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.gallery-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.gallery-empty h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.gallery-empty p {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-filter .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-filter {
        margin-bottom: 2rem;
    }
    
    .gallery-filter .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-filter .btn {
        margin: 0.25rem;
        border-radius: 25px;
    }
}

/* Animation Classes */
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.gallery-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.gallery-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gallery Stats */
.gallery-stats {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-stats .stat-item {
    display: inline-block;
    margin: 0 1rem;
    color: #666;
}

.gallery-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.gallery-stats .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


