Нужна помощь в позиционировании и z-index (CSS)
Ставлю для div position: relative, z-index: 2, а для 2х его псевдоэлементов position:absolute и z-index: 1, вопрос: почему псевдоэлементы накладываются поверх моего основного div-а? P.S. div имеет размер и background-image
<div class="people__img people__img--3"></div>
&__img {
position: relative;
z-index: 2;
left: 50%;
transform: translateX(-50%);
margin: 76px 0 70px;
height: 108px;
width: 108px;
border-radius: 50%;
&--1 {
background: center / cover no-repeat url(../images/testimonials/testimonial-ava-1.jpg);
}
::before {
content: "";
z-index: 1;
position: absolute;
height: 44px;
width: 108px;
background-color: $buttonBgrCo;
border-radius: 12px;
transform: rotate(-60deg);
right: 45%;
}
