You have to add display: grid to your parent container. justify-self only works in combination.
display: grid
justify-self