I have problem with positioning:

I cannot set exactly top: 50% and left: 50% on both photo and text because it isn't 50%. I try by hand set that 50% which is more like 46%.
When I change size of window text moves. I don't know what to Do and I am looking for answer for 2 hours
.photo-box {
  background: linear-gradient(250deg, rgba(251, 10, 237, 0.84), rgba(0, 186, 255, 0.91) 50%, rgba(15, 226, 98, 1));
  width: 100vw;
  text-align: center;
  font-size: 30px;
  padding-top: 70px;
  padding-bottom: 70px;
  margin-left: auto;
  margin-right: auto;
  color: #f0eeee;
  font-family: sans-serif;
  position: relative;
}
.tytul {
  display: flex;
  text-align: center;
  position: absolute;
  top: 46%;
  left: 45.3%;
}
.zdj-pierw img {
  border-radius: 100px;
  align-items: center;
  justify-content: center;
}<div class="photo-box" style="">
  <div class="tytul">Strona WWW </div>
  <div class="zdj-pierw">
    <img src="https://picsum.photos/200/200/?random" width="200" height="200" />
  </div>
</div> 
     
    