/* 본문 내 이미지 스타일 */
.news-content img {
    max-width: 100%;
    height: auto;
    cursor: pointer; /* 클릭 가능한 커서로 변경 */
    transition: opacity 0.2s ease-in-out;
}

.news-content img:hover {
    opacity: 0.85;
}

/* 모달 배경 (기본 숨김) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* 중앙 정렬 대신 스크롤이 가능하도록 변경 */
    overflow: auto; 
    padding: 40px 0;
}
/* 모달 안의 확대 이미지 */
.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    /* 세로로 긴 이미지가 작아지는 것을 방지하기 위해 max-height 제한을 풀거나 늘립니다 */
    max-height: none; 
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    cursor: zoom-in; /* 확대 가능한 커서 표시 */
    transition: transform 0.2s ease;
}

.modal-content.zoomed {
    max-width: none; /* 가로 제한 해제 (원본 크기 또는 더 크게) */
    width: 90vw;     /* 화면 가로폭 기준 또는 원본 사이즈 */
    cursor: zoom-out;
}

/* 우측 상단 닫기(X) 버튼 */
.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff5252;
}