CSSREF

CSS scroll-margin-block-start Property

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