Third Conditional (impossible conditions in the past)
IF If clause (condition) Main clause (result)
Past Perfect or Past Perfect Progressive would/could/might + have + V3
If Batman had been working as a card dealer, he would have lost his cool every time he saw a joker card.
If Loki had been more cooperative, Asgard might have had fewer problems.