Я нашел решение для этого пару дней назад, но забыл опубликовать его здесь.
Это код, который работает для меня:
.container {
position: relative;
}
.square-over-image {
display: block;
margin-left: auto;
margin-right: auto;
width: 80%;
height: 40rem;
}
.text-block {
position: absolute;
bottom: 20px;
top: 20px;
background-color: #FF3366;
color: white;
padding-left: 0;
padding-right: 20px;
width: 25rem;
height: 30rem;
}
.rachel-ashburn-picture {
background-image: url(asset/image/rachel-ashburn.jpg);
border-radius: 50%;
background-position: center top;
background-size: cover;
height: 64px;
width: 64px;
left: 0;
top: 7vh;
margin-left: 4rem;
position: relative;
}
.rachel-name {
padding: 2rem
}
.rachel-title {
margin-left: 23.4rem;
margin-top: 2rem;
left: 0.5vw;
top: 0;
position: relative;
}
.rachel-ashburn {
position: unset;
line-height: 0.2rem;
.rachel-ashburn-picture {
background-image: url(asset/image/rachel-ashburn.jpg);
border-radius: 50%;
background-position: center top;
background-size: cover;
margin-left: 3.5rem;
top: 3rem;
}
.rachel-name {
left: 8.5vw;
top: 0;
position: relative;
}
.rachel-title {
left: 3.5vw;
top: -1rem;
}
}
.container
img.square-over-image(src="/asset/image/women-talking.jpg", alt="Friends")
.text-block
h4 ”
p Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.
.rachel-ashburn
.rachel-ashburn-picture
span.rachel-name #[h5 Rachel Ashburn]
span.rachel-title #[p Web Designer]
Спасибо всем за помощь, все!