/* 모달 스타일 */

.modal-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    contain: paint;
}

.modal-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
}

[id ^="profileModal"].modal-container {
    display: block;
    width: 460px;
    /* height: 430px; */
    height: auto;
    z-index: 1000;
    border-radius: 10px;
    background: linear-gradient(180deg, #EBF0FE 0%, #EBF0FE 43%, rgba(235, 240, 254, 0.68) 100%);
    box-shadow: 0px 2.76088px 17.228px rgba(0, 0, 0, 0.16);
    border-radius: 33.3051px;
    position: relative;
    flex-shrink: 0;
}

[id ^="profileModal"].modal-container:first-child:nth-last-child(1) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[id ^="profileModal"].modal-container {
    opacity: 1;
}

[id ^="profileModal"].modal-container.swiper-slide {
    opacity: 0;
}

[id ^="profileModal"].modal-container.swiper-slide-prev {
    opacity: 1;
}

[id ^="profileModal"].modal-container.swiper-slide-active {
    opacity: 1;
}

[id ^="profileModal"].modal-container.swiper-slide-next {
    opacity: 1;
}

/* 모달 이미지 스타일 */
[id ^="profileModal"] .modal-image {
    width: 280px;
    height: 335px;
    margin: -160px auto 0;
    display: block;
    object-fit: cover;
    object-position: center top;

}

/* 모달 텍스트 스타일 */
[id ^="profileModal"] .modal-text {
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 38px;
    line-height: 46px;
    color: #444E6B;
    word-break: keep-all;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* 모달 버튼 스타일 */
[id ^="profileModal"] .modal-button {
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    color: #232323;
    text-align: center;
    line-height: 80px;
    cursor: pointer;
    /* position: absolute; */
    /* bottom: 0;
    left: 0;
    right: 0; */
    border-bottom-left-radius: 33px;
    border-bottom-right-radius: 33px;
    backdrop-filter: blur(1.66525px);
    font-weight: 700;
    font-size: 24px;
    /* border: 1px solid; */
    /* border-width: 1px; */
    /* border-image-slice: 1; */
    /* border-image-source: linear-gradient(to top, #fff, #ffffff3d); */
    color: #444E6B;
}

[id ^="profileModal"] .modal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 26%;
    transform: translateY(-50%);
    width: 4%;
    height: 21%;
    background: url(../images/profile_icon.svg) no-repeat center center /cover;
}

#pro1 {
    display: none;
}



.open_modal {
    z-index: 3;
    position: fixed;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    display: none;
}

.open_modal.active {
    display: block;
}

.open_modal img {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 100%;
}

.open_modal .swiper img {
    position: unset;
    transform: unset;
}

.slider-coverflow {
    max-width: unset;
}

.slider-coverflow .pc {
    width: 100%;
}

.slider-coverflow .swiper-slide {
    width: 479px;
    opacity: 0;
}

.slider-coverflow .swiper-slide.swiper-slide-prev {
    opacity: 1;
}

.slider-coverflow .swiper-slide.swiper-slide-active {
    opacity: 1;
}

.slider-coverflow .swiper-slide.swiper-slide-next {
    opacity: 1;
}

.open_modal {
    display: block;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.15s, z-index 0.15s;
}

.open_modal.active {
    opacity: 1;
    z-index: 3;
}


@media (max-width: 768px) {
    .modal-root {
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* #index_list {
        left: 0;
        top: 25%;
        transform: unset;
    } */

    #index_list ul {
        width: 100%;
    }

    #index_list ul li {
        width: 150px;
        height: 40px;
        line-height: 40px;
    }
    /* [id ^="profileModal"] .modal-text{
        font-size: 32px;
        line-height: 47px;

    } */
}

@media (max-width: 500px) {
    [id ^="profileModal"].modal-container{
        width: 370px;
    }
    [id ^="profileModal"] .modal-image{
        width: 200px;
        height: 230px;
        margin: -120px auto 0;
    }
    [id ^="profileModal"] .modal-text{
        font-size: 32px;
        line-height: 38px;
        width: 75%;
        margin-bottom: 24px;
    }
    [id ^="profileModal"] .modal-button{
        font-size: 16px;
        line-height: 65px;
        height: 65px;
    }
    [id ^="profileModal"] .modal-button::before{
        right: 30%;
    }
}
@media (max-width: 375px) {
    [id ^="profileModal"].modal-container{
        width: 300px;
    }
    [id ^="profileModal"] .modal-text{
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 20px;
    }
    [id ^="profileModal"] .modal-button::before{
        right: 25%;
        width: 5%;
    }
}