A czytałeś co robi justify-content ? Wyśrodkowuje względem PRZEGLĄDARKI... dlatego :) względem elementu który jest flexem w zakresie kontenera.
Więc co innego jest u CIebie traktowane jako kontener główny, sprawdź który rodzic względem właściwości jest traktowany
The CSS justify-content property defines how the browser distributes space between and around content items along the main-axis of a flex container,