Koken is a free and self-hosted CMS (PHP-MySQL) that is focused on building websites where portfolio/gallery is in the core (like designer or photographer sites). It was built for publishing images, videos and slideshows as fluid, responsive media elements.