@charset "utf-8";

/** Notice Box **/
.board-notice   { width: 340px; padding: 10px; margin: 0 auto; box-sizing: border-box; }


.bo_fx {position:relative;padding:20px 0;}
.bo_fx .chk_all{ position:absolute;top:20px;}

.board-write	{ margin: 10px 0;padding: 0 10px;}

.board-write h3	{
	font-size: 26px;
	text-align: center;
	padding: 30px 0 20px;
} 
.board-write .write-notice	{
	padding: 10px;
	font-size: 11px;
}
.board-write > dl {position:relative; margin: 10px 0;}
.board-write > dl > dt { width:70px;position:absolute;line-height:30px;text-align:center; }
.board-write > dl > dd { width:100%;margin-left:0;padding-left:80px;box-sizing:border-box;line-height:1.5;}
.board-write input.frm_input.full	{ width: 100%; display:block;margin:1px 0;}

    /* 미리보기 컨테이너 */
    #preview .preview-container {
        position: relative;
        display: inline-block;
        width: 100px;
        height: 100px;
        vertical-align: top;
        border: 1px solid #ddd;
        overflow: hidden;
        background: #000000;
        cursor: pointer;
    }

    #preview .preview-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform:translate(-1px,-1px);
    }

    /* 대표 뱃지 위치 */
    .thumb-represent {
        position: absolute;
        top: 5px;
        left: 5px;
        background: #A3CCA2;
        color: #fff;
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 3px;
        z-index: 5;
    }

    /* 삭제(X) 버튼 위치 */
    .remove-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(255, 0, 0);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        cursor: pointer;
        z-index: 10;
        font-size: 12px;
        padding: 0;
    }

    /* 대표이미지 선택 시 테두리 강조 */
    .preview-container.is-representative {
        outline: 2px solid #A3CCA2 !important; 
        outline-offset: -2px;
    }

#bo_v_bot	{ padding: 20px 0; overflow: hidden; border: none !important;}
.bo_v_nb	{ float: left; }
.bo_v_com	{ float: right; }

/* ===== 카테고리 네비게이션 탭 ===== */
.cate_group {margin: 35px 0;}
.ca_nav_tabs { text-align: center; padding: 20px 0; }
.ca_nav_tabs ul { background: var(--default-box-color); border-radius: 15px; display: inline-block; padding: 5px 40px; color: var(--default-txt-color); }
.ca_nav_tabs ul a { color: var(--default-txt-color); text-decoration: none; }
.ca_nav_tabs ul a:hover { color: #A3CCA2; }
.ca_nav_tabs li { display: inline-block; vertical-align: middle;}
.ca_nav_tabs li + li:before { content: '|'; padding: 0 15px; vertical-align: middle;}
.ca_nav_tabs .nav_active {
    color: #A3CCA2 !important;
    cursor: default;
    pointer-events: none;
}

/* ===== 카테고리 헤더 (토글) ===== */
.ca_section {
    margin-bottom: 5px;
}
.ca_section:last-child {
    margin-bottom: 0;
}
.ca_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #a3cca2;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.ca_section_header .ca_title_group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.ca_section_header .ca_right_group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ca_section_header .ca_name {
    font-size: 16px;
    color: #fff;
}
.ca_section_header .ca_count {
    font-size: 12px;
    color: #fff;
    opacity: 0.7;
    font-weight: normal;
}
.ca_section_header .ca_toggle_icon {
    font-size: 12px;
    color: #fff;
    opacity: 0.7;
    margin-left: 6px;
    flex-shrink: 0;
}
.ca_section_header.collapsed .ca_toggle_icon {
    transform: rotate(-90deg);
}

/* ===== 완료 체크박스 (관리자 전용) ===== */
.ca_done_wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}
.ca_done_label {
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}
.ca_done_chk {
    cursor: pointer;
}
.ca_done_chk:checked + .ca_done_label {
    color:#fff;
}
/* 완료된 카테고리 헤더 스타일 */
.ca_section_header.is_done {
    background: #bbbbbb;
}
.ca_section_header.is_done .ca_name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;

}


/* ===== 드래그 핸들: ☰, 관리자만 노출, #fff opacity 0.7 ===== */
.ca_drag_handle {
    cursor: grab;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
    transform: translateY(-1.5px);
}
.ca_drag_handle:active { cursor: grabbing; }
.ca_dragging { opacity: 0.4; }
.ca_drag_placeholder {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    margin: 5px 0;
    pointer-events: none;
}

/* ===== 완료 버튼 ===== */
.ca_done_btn {
    font-size: 12px;
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.7);
    color: #a3cca2;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.5;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.ca_done_btn.is_done {
    color: #bbbbbb;
}
.ca_done_btn:hover {
    opacity: 0.7;
}

/* ===== 카테고리 내용 (접히는 영역) ===== */
.ca_section_body {
    overflow: hidden;
    opacity: 1;
}
.ca_section_body.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

/* ===== 기존 thread_wrap 재사용 ===== */
.ca_section_body .thread_wrap {
    margin: 10px 0;
}

.board-skin-basic {margin: 0 auto;}
.board-skin-basic:has(.type_list) {max-width: none;}
.txt-point,
.thread_admin a {color:var(--lt-color-point) !important}
.theme-box .ui-btn.point {margin-bottom: 0px;background: var(--lt-color-point); border-color: var(--lt-color-point);}
.thread_admin a {margin-left: 5px;}
.frm_info {line-height: 1.5;}

.td_chk {position: absolute;top: 3px; right: 7px; z-index: 5;}

/* 타래 작성 영역 */
.thread_btn {margin-bottom: 20px; text-align: right;}
.thread_write {display: none;}

#preview {display: flex;gap: 5px;}
.preview-container {position: relative;display: inline-block;}
.preview-img {width: 100px;height: 100px;object-fit: cover;border: 1px solid #ddd;}
.remove-btn {position: absolute;top: 5px;right: 5px;background: red;color: white;border: none;border-radius: 50%;width: 20px;height: 20px;text-align: center;line-height: 1.5px;cursor: pointer;font-size: 14px;}

/* 댓글 preview에도 동일 적용 */
[id^="preview_"] {display:flex; gap:10px;}

#wr_content::-webkit-scrollbar {display: none;}
.preview-container {margin-bottom: 10px;}


/* 공지, 분류 */
.thread_cate {
    display: inline-block; 
    margin-bottom: 10px; 
    background: var(--lt-color-point); 
    border-radius: 5px; 
    padding: 5px 10px; 
    color: #fff;
    }
.thread_notice {display: inline-block; margin-bottom: 5px; border-radius: 5px; padding: 4px 9px; border: 1px solid var(--lt-color-point); color: var(--lt-color-point); margin-right: 5px;}

/* 타래 영역 */
.thread_admin {position: absolute; top: 35px; right: 30px;}

.thread_wrap {margin-top:0px;}



/* 해시태그 추가 */
.thread_wrap .list_tag {box-sizing: border-box;}
/* 해시태그 끝 */
.thread_wrap .list_title {box-sizing: border-box;}

.thread_wrap .thread-box {margin-bottom: 10px; padding: 35px 30px; border-radius: 0px; font-size: 12px; }
.thread_wrap .thread-box:last-child {margin: 0;}
.thread_wrap .thread-box > .thread_wr {position: relative;}
.thread_wrap .thread-box .thread_info {margin-bottom: 10px;}
/* 해시태그 추가 */
.thread_wrap .thread-box .thread_tag {margin-bottom: 10px; font-size: 12px;}
/* 해시태그 끝 */
.thread_wrap .thread-box .thread_title {margin-bottom: 10px; font-size: 12px; font-weight: bold; line-height: 1.5; word-break: keep-all;}
.thread_wrap .thread-box .name {margin-right: 5px; font-weight: bold; font-size: 12px;}
.thread_wrap .thread-box .date {opacity: 1;font-size: 12px;}
.thread_wrap .thread-box .thread_content {margin-bottom: 10px; line-height: 1.5; word-break: keep-all;}
.thread_content {line-height: 1.65; font-family: 'Dotum'; word-break: keep-all;}
.thread_content details {display: inline-block; width: 100%;}
.thread_content details summary {tex-decoration: underline !important; cursor: pointer;}

/* 이미지 영역 */
.thread_wrap .thread-box .img_box_wrap {display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; margin-bottom: 10px; height: 405px;}
.thread_wrap .thread-box .img_box_wrap.img_box_2 {cursor: pointer; height: 405px;}

.thread_wrap .thread-box .img_box_wrap.img_box_2 .img_box,
.thread_wrap .thread-box .img_box_wrap.img_box_4 .img_box {width: calc(50% - 5px);}

/*
.thread_wrap .thread-box .img_box_wrap.img_box_5 .img_box,
.thread_wrap .thread-box .img_box_wrap.img_box_6 .img_box {width: calc(33.33% - 20px/3);}
.thread_wrap .thread-box .img_box_wrap.img_box_7 .img_box,
.thread_wrap .thread-box .img_box_wrap.img_box_8 .img_box {width: calc(25% - 30px/4);}
*/

.thread_wrap .thread-box .img_box_wrap .img_box {cursor: pointer; border-radius: 5px; overflow: hidden; height: calc(50% - 5px);}
.thread_wrap .thread-box .img_box_wrap.img_box_1 .img_box,
.thread_wrap .thread-box .img_box_wrap.img_box_2 .img_box {height: 100%;}
.thread_wrap .thread-box .img_box_wrap img {cursor: pointer; width: 100%; height: 100%; object-fit: cover;}
.thread_content img {cursor: pointer;}

/* --- 이미지 3개일 때(img_box_3) 전용 레이아웃 --- */

/* 1. 틀 잡기 (Grid 선언) */
.thread_wrap .thread-box .img_box_wrap.img_box_3 {
    display: grid;                /* Flex 대신 Grid 사용 */
    grid-template-columns: 1fr 1fr; /* 가로를 1:1로 나눔 */
    grid-template-rows: 1fr 1fr;    /* 세로를 1:1로 나눔 */
    gap: 10px;                    /* 사이 간격 */
}

/* 2. 기존 Flex용 너비/높이 설정 무시하고 꽉 채우기 */
.thread_wrap .thread-box .img_box_wrap.img_box_3 .img_box {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important; /* 혹시 모를 마진 제거 */
}

/* 3. 첫 번째 박스 (왼쪽 전체) */
.thread_wrap .thread-box .img_box_wrap.img_box_3 .img_box:nth-child(1) {
    grid-column: 1 / 2; /* 1번째 열 사용 */
    grid-row: 1 / 3;    /* 1번째 행부터 3번째 행 줄(끝)까지 -> 즉 세로 전체 차지 */
}

/* 4. 두 번째 박스 (오른쪽 위) */
.thread_wrap .thread-box .img_box_wrap.img_box_3 .img_box:nth-child(2) {
    grid-column: 2 / 3; /* 2번째 열 사용 */
    grid-row: 1 / 2;    /* 1번째 행 사용 */
}

/* 5. 세 번째 박스 (오른쪽 아래) */
.thread_wrap .thread-box .img_box_wrap.img_box_3 .img_box:nth-child(3) {
    grid-column: 2 / 3; /* 2번째 열 사용 */
    grid-row: 2 / 3;    /* 2번째 행 사용 */
}

/* --- 동영상 전용 100% 레이아웃 --- */
.video_box_wrap {
    display: flex;
    flex-direction: column; /* 세로로 쌓임 */
    gap: 10px;              /* 동영상 간 간격 */
    margin-top: 10px;       /* 이미지 박스와의 간격 */
    margin-bottom: 10px;
    width: 100%;
}

.video_box_wrap .video_box {
    width: 100%;            /* 가로 꽉 채우기 */
    background: transparent !important;       /* 동영상 배경 검정 */
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;         /* 하단 여백 제거 */
}

.video_box_wrap .video_box video {
    width: 100%;            /* 비디오 자체도 100% */
    max-height: 600px;      /* 너무 길어지는 것 방지 (원하는대로 조절 가능) */
    object-fit: contain;    /* 비율 유지하며 박스 안에 맞춤 */
    display: block;         /* 하단 공백 제거 */
}

/* --- 오디오 썸네일 스타일 추가 --- */

/* 목록(리스트) 썸네일용 */
.list_audio_thumb {
    width: var(--thumb-width);
    height: var(--thumb-height);
    background: #a3cca2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 스포일러 처리 */

.thread_body.spoiler {
    min-height: 100px !important;
    position: relative;
    box-sizing: border-box;
    filter: none !important; 
    opacity: 1 !important;
}

/* 2. 내용물(글자, 이미지)만 흐리게 처리 */
.thread_body.spoiler .thread_content,
.thread_body.spoiler .img_box_wrap,
.thread_body.spoiler .video_box_wrap,
.thread_body.spoiler audio {
    filter: blur(10px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

/* 3. 스포일러 경고창 */
.spoiler_sec {
    margin: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    z-index: 10;
}

.spoiler_sec p {
    color: #fff;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    margin-bottom: 10px;
    margin-top: 0; /* 불필요한 여백 제거 */
}

.spoiler_sec button {
    background: #000;
    border: 1px solid rgba(187,187,187,0.3);
    border-radius: 5px;
    padding: 7.5px 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.spoiler_sec button:hover {
    background: #000;
    opacity: 0.7;
}

/* 비밀글 */
.pass-form form {display: flex; gap: 5px; margin-top: 5px;}

/* 답글 */
.thread_bottom {margin-top: 10px;margin-bottom: 0px;}
.thread_bottom button {border: none; background:none; font-size: 14px;}

.thread_co_wrap {margin-top:20px;padding-left: 18px;border-left: 2px solid var(--lt-color-point);}
.thread_co_wrap, .thread_co {position: relative;}
.thread_co .thread_admin {padding: 5px 0; top: 0; right: 0;}
.thread_co_wrap a {color: var(--lt-color-point);}

/* 대댓글(답글) */
.thread_co {padding: 5px 0 !important;}

.thread_co.is_reply {
    padding-left: 18px !important;
    margin-bottom:;
    position: relative;
}

.thread_co.is_reply::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    
    /* 1. 너비: (깊이 - 1) * 20px 만큼 공간 확보 (첫 번째 대댓글은 선 없음) */
    width: calc((var(--dep) - 1) * 20px);
    
    /* 2. 위치: 왼쪽으로 이동할 때, 테두리 두께(2px)만큼 더 왼쪽으로 밀어줌 */
    left: calc((var(--dep) - 1) * -20px - 2px);
    
    /* 3. 선 긋기: 20px 간격으로 반복 */
    background: repeating-linear-gradient(
        to right, 
        rgba(187, 187, 187, 0.3) 0px, 
        rgba(187, 187, 187, 0.3) 2px, /* 2px 두께의 선 */
        transparent 2px, 
        transparent 20px /* 20px 간격 */
    );
    
    pointer-events: none;
    z-index: 1;
}

/* 이미지 확대보기 */
.thread_img_full {position: fixed; top: 0; left: 0; display: none; align-items: center; justify-content: center; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; cursor: pointer;}
.thread_img_full .thread_img_wrap {max-height: 100%;cursor: default;}
.thread_img_full .thread_img_wrap img {max-height: 100vh;}
.thread_img_full .thread_img_close {position: absolute; top: 20px; right: 20px; font-size: 50px; border: none; background: none; color: #fff;}

/* 좋아요 */
.wr_good {margin-top: 10px; opacity: 0.5;}
.wr_good a {display: inline-flex; align-items: center; justify-content: center; border: none; background: none; padding-top: 2px; width: 20px; height: 20px; border: 1px solid var(--lt-font-color); border-radius: 50px; font-size: 12px; color: inherit; box-sizing: border-box;}
.wr_good.is_good {opacity: 1;}
.wr_good.is_good a {color: #fff; background: crimson; border-color: crimson;}
.wr_good.is_good span {color: crimson;}


.thread_wrap.type_list:has(.no-data) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.no-data {
    text-align: center;
    width: 100%;
}

.type_list{ 
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
}

.type_list .list-box{ 
    position: relative; 
    width: var(--thumb-width);
    height: var(--thumb-height);
    display: inline-block;
}

.type_list > .list-box .list_thumb img {
    width: var(--thumb-width);
    height: var(--thumb-height);
    object-fit: cover; /* 비율 유지하며 꽉 채우기 */
    object-position: center; /* 가운데 기준으로 크롭 */
}

/* 스포일러 */
.type_list > .list-box.spoiler .list_thumb img { 
    width: var(--thumb-width);
    height: var(--thumb-height);
    object-fit: cover;
    object-position: center;
    filter: blur(5px) grayscale(0);
    transform: scale(1.2); 
    opacity: 1;
    transition: all 0.25s ease;
}

/* 기존 */
.type_list > .list-box .list_thumb.no_img {
    width: var(--thumb-width); height: var(--thumb-height); 
    position: relative; display: flex; align-items: center; 
    justify-content: center; font-size: 0px; z-index: 2; 
    color: #ffffff; 
    background: rgba(0,0,0,0.25); 
}
.type_list > .list-box > a:hover .list_thumb img {transform: scale(1); opacity: 0.7;}
.type_list > .list-box > a {display: block; position: relative;border-radius: 0px; overflow: hidden;}

/* 테두리(box-shadow) 전용 */
.type_list > .list-box > a::before {
    pointer-events: none;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px #A3CCA2;
    z-index: 10;
}
.type_list > .list-box > a::after {
    pointer-events: none;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.type_list > .list-box > a:hover::after { 
    opacity: 1;
    z-index: 1;
}

.type_list > .list-box .list_title { 
    position: absolute; top: 0;
    left: 0; 
    padding: 7px 10px;
    width: 100%;
    font-size: 12px; 
    font-weight: bold;
    line-height: 1.45;
    z-index: 2; 
    box-sizing: border-box;
    word-break: keep-all;
    transition: color 0s ease;
    opacity: 0;
} 

.type_list > .list-box .list_title.is_admin_gap {
    padding: 7px 25px 7px 10px;
}

.type_list > .list-box .list_title span {
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 2; 
    overflow: hidden;} 

.type_list > .list-box > a:hover .list_title {
    color: rgb(255,255,255); 
    opacity: 1;
}

/* 파일 개수 표시 스타일 */
.file_count_indicator {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
}

.file_count_indicator i {
    margin-left: 5px;
    margin-right: 3px;
    font-size: 12px;
}

.file_count_indicator i:first-child {
    margin-left: 0;
}

/* 비밀글 가림 레이어 스타일 */
.lock_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #a3cca2;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    word-break: keep-all;
}

/* 비밀글(lock_overlay)이 자식으로 있는 경우, 이미지의 블러를 제거 */
.type_list > .list-box.spoiler:has(.lock_overlay) .list_thumb img {
    filter: none !important; 
    transform: scale(1) !important;
    opacity: 1;
}

.type_list > .list-box.spoiler:has(.lock_overlay) .spoiler_overlay {
    display: none !important;
}

/* 성인글 레이어 스타일 */
.adult_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background-color: rgba(0, 0, 0, 1.0);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    word-break: keep-all;
    transition: all 0.25s ease; 
    opacity: 1;                 
    cursor: pointer;
}

.adult_layer.hide {
    opacity: 0;
    pointer-events: none;
}

/* 해시태그 */
.type_list > .list-box .list_tag {
    position: absolute; 
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 5;
    gap: 5px;
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;
}

.type_list > .list-box .list_tag a {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    padding: 0px 5px;
    color: #ffffff;
    background-color: #A3CCA2;
    box-shadow: inset 0 0 0 0px #fff;
    filter: drop-shadow(0px 0px 0px rgba(0,0,0,0.0));
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0s;
    vertical-align: top;
}

.type_list > .list-box .list_tag a:hover {
    opacity: .7;
}


/* 답글 스타일 */
.thread_reply {position: relative; bottom: 0; right: 0;}
.thread_reply button {border: none;background: none;font-size: 12px; transform: rotate(180deg);}
.board-comment-write {display: none;}
.board-comment-form {margin: 10px 0;}
#board-comment-form-div {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.board-comment-form textarea {border: 1px solid var(--lt-color-point); width: 100%; height: 70px;}
.board-comment-list {margin-top: 10px;}
.board-comment-list .item {padding-left: 20px; border-left: 2px solid var(--lt-color-point);}
.board-comment-list .item + .item {margin-top: 0px;}
.co_head_wrap {margin-bottom: 10px; display: flex; gap: 5px; align-items: center;}
.co_head_wrap .co-name {font-weight: bold; margin-right: 5px;}
.co_head_wrap .co-info {font-size: 11px; line-height: 1.5;}
.co_head_wrap .co-info span:first-child {opacity: 0.8;}
.co_head_wrap .co-admin {margin-left: auto;}

.co-content {padding-bottom: 10px;}

.type_list > .list-box .list_thumb {
    position: relative; /* 오버레이 위치 기준점 */
    overflow: hidden; /* 블러 효과가 밖으로 새지 않도록 */
    width: 100%;
}

.type_list > .list-box .spoiler_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-shadow: 0 0 3px black, 0 0 3px black;
    background-color: rgba(0,0,0,.5);
    color: #fff;
    padding: 15px 10px;
    border-radius: 4px;
    text-align: center;
    width: max-content;
    font-size: 12px; 
    font-weight: bold;
    line-height: 1.5;
    pointer-events: none;
    z-index: 4;
}

.type_list > .list-box.spoiler:hover .list_thumb img { 
    transform: scale(1.2); 
    filter: blur(5px) grayscale(0);
    opacity: 0.7;
}

/* 모달 */
.my-modal-layout {
    position: relative !important;
    min-height: 100vh;
    z-index: 99 !important;
    pointer-events: none !important;
}

.my-modal-layout {
    pointer-events: auto !important;
}

.modal_overlay {
    display: none;
    position: fixed; 
    top: 0; left: 0;
    width: 100%; 
    height: 100%; 
    z-index: 99; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0px !important; 
    padding-bottom: 0px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.modal_overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,.75);
    z-index: -1;
    cursor: pointer;
}

#viewContent .thread_wrap { margin-top: 0 !important; }

/* 모달 닫기 버튼 */
    .modal_close {
        position: absolute; top: 20px; right: 20px;
        color: #fff; font-size: 30px; cursor: pointer;
        z-index: 100; line-height: 30px;
        padding: 0px;
    }
    .modal_close:hover { color: #A3CCA2; }

/* 모달 이전/다음 화살표 버튼 */
    .modal_nav_btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 50px;
        color: #fff;
        z-index: 100;
        cursor: pointer;
        text-decoration: none;
        padding: 0px;
    }
    .modal_nav_btn:hover { color: #A3CCA2; }
    
    .modal_prev { 
            margin-left: 145px; left: 20px; 
        }
            @media (max-width: 1000px) {
                .modal_prev {
                margin-left: 0 !important;
                }
            }

    .modal_next { right: 20px; }

#viewContent { 
    margin-left: 145px;
    width: 800px !important;
    max-width: 95% !important;
    box-sizing: border-box !important;
    max-height: 100vh; 
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1000px) {

    #viewContent {
        margin-left: 0 !important;
    }
}

#viewContent .thread-box {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--lt-color-point); 
    border-radius: 0px;
    padding: 35px 30px;
    background: rgba(0,0,0,.5);
    max-height: 80vh;    
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-all;
    box-sizing: border-box;
}

#viewContent .board-skin-basic {
    width: 100% !important;
    max-width: 100% !important;
}

#viewContent::-webkit-scrollbar { display: none; }

div[id^="thread"]{
    scroll-margin-top: 98px;
}
div[id^="c_"] {
    scroll-margin-top: 70px;
}