#gallery-list-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.gallery-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.view-gallery-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.view-gallery-btn:hover {
    background: #0056b3;
}

.view-gallery-btn:active {
    transform: scale(0.98);
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.gallery-pagination button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gallery-pagination button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.gallery-pagination button:not(:disabled):hover {
    background: #0056b3;
}

.gallery-pagination span {
    color: #555;
    font-size: 14px;
}

#gallery-filters {
    text-align: center;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.gallery-filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gallery-filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.gallery-filter-btn:hover:not(.active) {
    background: #e9ecef;
    border-color: #adb5bd;
}

@media (max-width: 768px) {
    .galleries-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-card {
        padding: 15px;
    }
    
    #gallery-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-filter-btn {
        margin: 0;
    }
}