the_post_thumbnail ignores size parameter

WordPress uses min( intval($content_width), $max_width ) inside image_constrain_size_for_editor for large image size.

As I can see your $content_width is set to 660. So, change the $content_width in your functions.php file to the 1024 or whatever you need. For full-width layout, it’s better to remove it.

Example: $GLOBALS['content_width'] = 1600. That’s it.

If you don’t know what content_width is, see Content Width for more info.