
    .img-thumb {
        width: 100px;
        height: 100px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        border: 1px solid #e6e6e6;
    }

    /* 기본 백드롭 */
    .modal-backdrop-fallback {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        /* 기본 숨김 */
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.85);
        /* 전체 어두운 배경 */
        z-index: 1050;
    }

    /* 다이얼로그 컨테이너 */
    .modal-dialog-custom {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 모달 콘텐츠 */
    .modal-content-custom {
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
    }

    /* 이미지 중앙 배치 */
    .modal-body-custom img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        background: #000;
        /* 이미지 비는 영역 검정 */
    }

    /* 헤더 */
    .modal-header-custom {
        position: absolute;
        top: 10px;
        left: 20px;
        right: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        z-index: 10;
    }

    #imageCounter {
        font-size: 14px;
        background: rgba(0, 0, 0, 0.6);
        padding: 3px 8px;
        border-radius: 4px;
    }

    /* 닫기 버튼 */
    .btn-close-white {
        background: transparent;
        border: none;
        font-size: 28px;
        font-weight: bold;
        color: #fff;
        cursor: pointer;
        transition: color 0.2s;
    }

    .btn-close-white:hover {
        color: #f00;
    }

    /* 좌우 이동 버튼 */
    .modal-prev,
    .modal-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        border: none;
        color: #fff;
        font-size: 32px;
        padding: 8px 14px;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .modal-prev:hover,
    .modal-next:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .modal-prev {
        left: -50px;
    }

    .modal-next {
        right: -50px;
    }

    /* 미리보기 컨테이너 */
#previewContainer {
    display: flex;
    flex-wrap: wrap;              /* 여러 줄로 줄바꿈 허용 */
    justify-content: flex-start;  /* 왼쪽 정렬 */
    gap: 8px;                     /* 이미지 간격 */
}

/* 이미지 스타일 */
#previewContainer img {
    width: 80px;
    height: 80px;
    object-fit: cover;            /* 비율 유지 + crop */
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
    transition: transform 0.2s ease-in-out;
}

/* hover 효과 */
#previewContainer img:hover {
    transform: scale(1.1);
}

    /* 미리보기 컨테이너 */
#previewContainer1 {
    display: flex;
    flex-wrap: wrap;              /* 여러 줄로 줄바꿈 허용 */
    justify-content: flex-start;  /* 왼쪽 정렬 */
    gap: 8px;                     /* 이미지 간격 */
}

/* 이미지 스타일 */
#previewContainer1 img {
    width: 80px;
    height: 80px;
    object-fit: cover;            /* 비율 유지 + crop */
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
    transition: transform 0.2s ease-in-out;
}

/* hover 효과 */
#previewContainer1 img:hover {
    transform: scale(1.1);
}


    /* 댓글 전체 */
.media.cmtSeq-FEDSEQ {
    display: flex;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.media.cmtSeq-FEDSEQ:hover {
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}


.media-body {
    flex: 1 1 auto;
    min-width: 0; /* 텍스트 줄바꿈 정상화 */
}

.media-body .d-flex {
    justify-content: space-between;
    align-items: center; /* 텍스트 상단 정렬 */
}

.comment-created-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.fs-8 {
    font-size: 0.875rem;
}

.pt-2 {
    padding-top: 0.5rem;
}


.cmt-user-img img {
    width: 70%;
    height: 70%;
    object-fit: cover; /* 비율 유지 */
    border-radius: 50%;
}

/* 링크 효과 */
.cmt-user-img a,
.cmt-nick {
    text-decoration: none;
    color: inherit;
}

.cmt-user-img a:hover,
.cmt-nick:hover {
    color: #007bff;
}


/* 댓글 본문 */
.cmt-body {
    flex: 1;
    margin-left: 12px;
}

/* 닉네임 + 배지 */
.cmt-header {
    margin-bottom: 6px;
}

.cmt-user-info {
    display: flex;
    align-items: center;
}

.cmt-nick {
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 6px;
    color: #333;
}

.cmt-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-left: 2px;
    color: #555;
}

/* 작성 시간 */
.cmt-time {
    font-size: 0.7rem;
    color: #999;
}

/* 댓글 내용 */
.cmt-text {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* 댓글 프로필 이미지 */
.media .img-circle {
    width: 30px;         /* 가로 */
    height: 30px;        /* 세로 */
    object-fit: cover;   /* 이미지 비율 유지하며 잘림 */
    border-radius: 50%;  /* 원형 */
    display: block;
}

/* 댓글 텍스트 컨테이너 */
.media-body {
    flex: 1;
    min-width: 0;        /* 긴 텍스트가 깨지지 않도록 */
}

/* 닉네임 */
.media-body a.fs-8 {
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

/* 댓글 시간 */
.comment-created-time {
    font-size: 12px;
    color: #888;
}

/* 댓글 내용 */
.media-body p {
    margin: 4px 0 0 0;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/* 모바일 대응 */
@media (max-width: 576px) {
    .media .img-circle {
        width: 32px;
        height: 32px;
    }
    .media-body p {
        font-size: 13px;
    }
}