How does CSS handle subgrid in CSS Grid, and why is it useful?

The subgrid value allows child elements to inherit the grid layout of their parent, useful for maintaining alignment across nested grids.