How does Flexbox work, and what are some key properties?

Flexbox arranges items along a flexible row or column with properties like justify-content, align-items, and flex-wrap.