.modal {
    display: none; /* 기본적으로 숨겨짐 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 60px;
}


/* 모달 배경 */
#modalWrap {
    position: fixed;  /* 화면에 고정 */
    z-index: 1; /* 상위에 위치 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* 반투명한 배경색 */
    display: none; /* 초기에는 숨김 */
}

/* 모달 내부 */
#modalBody {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 80%;
    padding: 20px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.0); /* 배경을 흰색의 70% 투명도로 설정 */
    text-align: center;
}

.modal-images {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
}

.modal-images img {
    display: none;
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.modal-images img.active {
    display: block;
}

button#prevBtn0, button#nextBtn0, button#prevBtn1, button#nextBtn1,
button#prevBtn2, button#nextBtn2, button#prevBtn3, button#nextBtn3{
    position: absolute;
    top: 50%;
    font-size: 18px;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

button#prevBtn0, button#prevBtn1, button#prevBtn2, button#prevBtn3 {
    left: 10px;
}

button#nextBtn0, button#nextBtn1, button#nextBtn2, button#nextBtn3 {
    right: 10px;
}

.closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 50px; /* 글자 크기 크게 */
    font-weight: bold;
    color: #fff; /* 글자 색상 */
    background: none; /* 배경 제거 */
    border: none; /* 테두리 제거 */
    cursor: pointer; /* 마우스를 올리면 커서 모양 변경 */
    transition: color 0.3s; /* 색상 변경 시 부드럽게 애니메이션 */
}

.closeBtn:hover {
    color: #ff0000; /* 마우스를 올리면 빨간색으로 변함 */
}
