(Every Cloud Has a) Silver Lining

What does the idiom “(Every Cloud Has a) Silver Lining” mean?

Definition:

A positive aspect of a bad situation

For example:

“The silver lining to the layoffs is that we all have more office space now.”