A closer look at Cepheid variable
A Cepheid expands and contracts in a repeating pulsation.
Its period is related to its intrinsic luminosity, with calibration depending on the Cepheid population and observing band. Comparing expected and observed brightness gives distance.
Measure a full light curve rather than relying on a single image. The period and average brightness both enter a distance estimate. For the surrounding ideas, see Henrietta Swan Leavitt.
OpenStax · Astronomy 2e · 19.3 Variable Stars: One Key to Cosmic Distances · Variable Stars · Image and attribution
Want to learn more about Cepheid variable? Cepheid variable on Wikipedia.

