CSSREF

CSS scroll-margin-block-end Property

Set scroll margin to 20px between the snap position and the container in the block direction: