This is the Kurşunlu mosque, from 1231 when it was built by the Seljuk Jusuf Sinan who conquered Edremit in that same year. Sinan's tomb lies next to the mosque.
Looking up to the dome. Inside the mosque I made some grave exposure errors and the pictures look dreary. Sorry.