.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid #e1e8ed;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 156, 236, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
}

.gallery-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.gallery-thumb.is-clickable {
    cursor: pointer;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    animation: fadeInScale 0.5s ease;
}

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

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.1);
}

.gallery-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.8;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.gallery-card:hover .video-overlay {
    background: rgba(0,0,0,0.1);
}

.gallery-card:hover .video-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

.audio-card-body {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
    z-index: 1;
}

.audio-player-container {
    width: 85%;
    z-index: 1;
}

.audio-player-container audio {
    width: 100%;
    height: 35px;
    border-radius: 20px;
    outline: none;
}

.gallery-info {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
}

.gallery-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .gallery-filter {
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-info {
        padding: 16px;
    }

    .gallery-info h4 {
        font-size: 1rem;
    }

    .gallery-info p {
        font-size: 0.8rem;
    }

    .video-overlay i {
        font-size: 2.2rem;
    }

    .audio-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .audio-player-container {
        width: 100%;
        padding: 0 15px;
    }
}