/* 이미지 모달 스타일 */

#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-dimm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 60px;
    overflow: visible;
}

.modal-content-wrapper {
    position: relative;
    display: inline-block;
    max-width: 720px;
    width: 100%;
    overflow: visible;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    /* border: 1px solid #fff; */
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 0; */
    z-index: 10000;
}

.image-modal-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-modal-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-swiper .swiper-slide img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border: 2px solid #fff;
    object-fit: contain;
}

/* Swiper 버튼 - 기본 스타일 사용 */
.modal-content-wrapper .swiper-button-prev,
.modal-content-wrapper .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.modal-content-wrapper .swiper-button-prev {
    left: -55px !important;
}

.modal-content-wrapper .swiper-button-next {
    right: -55px !important;
}

/* 모바일 반응형 */
@media only screen and (max-width: 768px) {
    .modal-wrapper {
        padding: 20px;
    }
    
    .modal-content-wrapper {
        max-width: calc(100vw - 20px);
    }
    
    .image-modal-swiper .swiper-slide img {
        max-width: 100%;
    }
    
    .modal-content-wrapper .swiper-button-prev {
        left: 10px !important;
    }
    
    .modal-content-wrapper .swiper-button-next {
        right: 10px !important;
    }
    
    .modal-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 28px !important;
    }
}
