@charset "utf-8";
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
    color: inherit;
}
body{
    height: 3000px;
}
.position{
    width: 400px;
    height: 400px;
    background-color: rgb(247, 187, 255);
    margin: 50px auto;

    position: relative;
    top: 150px;
}
.position div{
    width: 100px;
    height: 100px;
    border: 1px solid #f06bde;
}
.position div:nth-child(1){
    background-color: aqua;
    position: absolute;
    top: 0;
    right: 0px;
}
.position div:nth-child(2){
    background-color: blue;
    position: absolute;
    bottom: 0;
    right: 0px;
}
.position div:nth-child(3){
    background-color: #a3066f;
    position: absolute;
    bottom: -100px;
    left: 0;
}
.position div:nth-child(4){
    background-color: #d3f06b;
    position: absolute;
    bottom: 0;
    left: 0;
}
.position div:nth-child(5){
    background-color: #746bf0;
    position: absolute;
    top: -100px;
    left: 0;
}
.position div:nth-child(6){
    position: fixed;
    right: 100px;
    bottom: 100px;
    background-color: aquamarine;
}
.position div:nth-child(7){
    position: sticky;
    top: 50px;
    background-color: aliceblue;
}

.list{
    width: 800px;
    margin: 100px auto;
    display: flex;
    justify-content: space-between;
}
.list .item{
    width: 380px;
    position: relative;
}
.list .item img{
    width: 100%; /* 부모 값 만큼 설정 */
    height: 380px;
    object-fit: cover;
}
.list .item .text{
    width: 100%;
    position: absolute;
    left: 0px;
    bottom: 5px;
    color: aliceblue;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.259);
}

.list-02{
    width: 1280px;
    margin: 100px auto;
    display: flex;
    justify-content: space-between;
}
.list-02 .item{
    width: 300px;
    position: relative;
}
.list-02 .item img{
    width: 100%;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.list-02 .item p{
    position: absolute;
    width: 100%; /* 텍스트에 넓이와 높이 적용 */
    height: 100%;
    top: 0;
    left: 0;
    display: flex; /* 핵심 */
    align-items: center; /* 수직 가운데 */
    text-align: center; /* 수평 가운데 */
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    background-color: #b80f0f6e; /* p영역 확인 */
}