/* 모달 오버레이 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

/* 모달 내용 */
.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 닫기 버튼 */
.image-modal .image-modal-close {
    position: absolute;  /* fixed에서 absolute로 변경 */
    top: 20px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.image-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 게시물 이미지 스타일 */
.entry-content img,
.post-content img,
.content img {
    cursor: pointer !important;
    transition: opacity 0.3s ease;
}

.entry-content img:hover,
.post-content img:hover,
.content img:hover {
    opacity: 0.8;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}