Flip a setting, watch the layout move, copy the code. Every screen below follows Bootstrap 5.3's own rules, so the class names you copy work on a real Bootstrap page.
The dashed box is the flex container (it has d-flex). The colored boxes are its items. justify-content moves items along the main axis, align-items moves them along the cross axis.
flex-*justify-content-*align-items-*gap-*Every row is split into 12 units (the gray ruler). Give each column a size per screen width, then drag the screen size and watch the layout reshuffle. A class like col-md-6 means "6 units wide from tablet size up."
g-*justify-content-*align-items-*Bootstrap ships hundreds of tiny one-job classes. Stack them on an element instead of writing CSS. Tip: style a box inside a column, never the col itself, so the gutters stay intact.
p-*bg-*text-*borderrounded-*shadow-*Plain CSS, no Bootstrap classes. You describe the column tracks and the items fill the cells left to right, top to bottom. fr means "one share of the free space."
grid-template-columnsgap