/* 스크린 리더 전용 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 모달 오버레이 배경 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 모달 기본 스타일 */
.main-modal,
.main-modal02 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* 모달 컨텐츠 */
.modal-content {
    padding: 20px;
}

/* 이미지 영역 */
.main-modal .image,
.main-modal02 .image {
    margin-bottom: 15px;
}

.main-modal .image img,
.main-modal02 .image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 하단 닫기 영역 */
.foot-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* 체크박스 영역 */
.foot-close .input {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 닫기 버튼 */
.modal-close-btn {
    padding: 8px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    background-color: #555;
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-modal,
    .main-modal02 {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .foot-close {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
