@charset "utf-8";
/* 모바일 목록 */

@media all and (max-width: 767px) {
  .responsive #bo_list .float-left.float-md-none {
    margin-right: 1rem;
  }
  .responsive #bo_list .na-title {
    margin-bottom: 0.14rem;
  }
}

/* 리스트 스타일 모바일 목록 */
.wr-photo-img img {
  width: 50px;
  height: 50px;
}
@media all and (max-width: 767px) {
  .responsive #bo_list .float-left.float-md-none {
    margin-right: 1rem;
  }
  .responsive #bo_list .na-title {
    margin-bottom: 0.14rem;
  }
  .responsive .wr-photo-img.nw-5 {
    width: auto !important;
  }
}

/* 갤러리 스타일 */
#bo_gallery .chk-box {
  position: absolute;
  bottom: 5px;
  right: 10px;
  z-index: 2;
}
#bo_gallery .wr-now {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* 웹진 스타일 */
#bo_webzine .chk-box {
  position: absolute;
  bottom: 5px;
  right: 10px;
  z-index: 2;
}
#bo_webzine .wr-now {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* 게시판 읽기 */
#bo_v_title {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: -1px;
  color: #ffffff !important; /* 흰색으로 강제 지정 */
}
#bo_v_con {
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
}
@media all and (max-width: 575px) {
  .responsive #bo_v_title {
    font-size: 20px;
    line-height: 1.5;
  }
  .responsive #bo_v_con {
    min-height: 140px;
  }
}

#bo_v_con img {
  max-width: 100%;
  height: auto;
}
#bo_v_img {
  width: 100%;
  text-align: center;
  overflow: hidden;
  zoom: 1;
}
#bo_v_img:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_v_img a.view_image {
  display: block;
}
#bo_v_img img {
  margin-bottom: 1rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon {
  margin: -5px auto;
}
#bo_v_sns_icon img {
  width: 40px;
  border-radius: 50%;
  margin: 5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
  top: 0;
  left: -16px;
}
.by-writer {
  background: #fbefef !important;
  border-top: 1px solid #f6cece !important;
}
.cmt-content {
  word-break: break-all;
  overflow: hidden;
}
.cmt-content img {
  max-width: 100%;
  height: auto;
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul {
  list-style: none;
  margin: 0;
}
.cmt-btn ul > li {
  float: left;
  font-size: 12px;
  padding: 0 10px;
}
.cmt-btn ul > li::before {
  float: left;
  color: #ccc;
  content: "|";
  margin-left: -12px;
}
.cmt-btn ul > li:last-child {
  padding-right: 0;
}
.cmt-btn ul > li:first-child::before,
.cmt-btn ul > li.no-bar::before {
  content: "";
  margin-left: 0;
}
.cmt-btn ul > li > a {
  float: left;
  color: #888;
  white-space: nowrap;
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content {
  resize: none;
}
@media all and (max-width: 575px) {
  .responsive .cmt-box {
    border-right: 0 !important;
  }
  .responsive #bo_vc_w .cmt-box {
    border-left: 0 !important;
    border-radius: 0 !important;
  }
  .responsive #bo_vc_login {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {
  margin: 0;
  padding: 0;
  list-style: none;
  zoom: 1;
  background: #ccc;
  border-radius: 3px;
}
#bo_vc_opt ol:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_vc_opt ol li {
  float: left;
  margin: 0;
}
#bo_vc_send_sns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  zoom: 1;
}
#bo_vc_send_sns ul:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_vc_send_sns ul li {
  float: left;
  margin: 0 1rem 0 0;
}
#bo_vc_send_sns input {
  margin: 0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
  border-right: 0;
}
#bo_w #wr_content {
  margin-bottom: 1rem !important;
}
@media all and (max-width: 575px) {
  #bo_w .list-group-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .responsive #bo_w #wr_content {
    max-height: 160px !important;
  }
}

/* [추가] 게시판 읽기 상단 버튼 텍스트 색상 (흰색) */
#bo_v_btn a.btn {
  color: #ffffff !important;
}

#bo_v_btn a.btn i {
  color: #ffffff !important;
}

/* 관리 버튼(톱니바퀴) 클릭 시 드롭다운 메뉴 텍스트는 검정으로 유지 (안 그러면 흰색 배경에 흰글씨가 됨) */
#bo_v_btn .dropdown-menu a.btn {
  color: #333 !important;
}

/* =======================================================
   다크 테마 텍스트 가독성 패치 (2026-02-16)
   ======================================================= */

/* 1. 게시판 읽기 (View Page) */
/* 제목 글자색 흰색 변경 */
#bo_v_title {
  color: #ffffff !important;
}

/* 상단 버튼(목록, 관리, 쓰기 등) 글자색 변경 */
#bo_v_btn a.btn {
  color: #ffffff !important;
}
#bo_v_btn a.btn i {
  color: #ffffff !important;
}
/* 관리 버튼 클릭 시 나오는 드롭다운 메뉴는 흰 배경이므로 검정 글씨 유지 */
#bo_v_btn .dropdown-menu a.btn {
  color: #333 !important;
}

/* 2. 게시판 글쓰기 (Write Page) */
/* 글쓰기 폼 전체 기본 글자색 흰색 지정 */
#bo_w {
  color: #000 !important;
}

/* 입력 항목 라벨(사이트주소, 첨부파일 등) 강제 흰색 */
#bo_w th,
#bo_w td,
#bo_w label,
#bo_w .form-group label {
  color: #000 !important;
}

/* 입력 필드(input, textarea)는 흰 배경이므로 글자색은 검정으로 유지 */
#bo_w input.form-control,
#bo_w select.form-control,
#bo_w textarea.form-control,
#bo_w input[type="text"],
#bo_w textarea {
  color: #000000 !important;
}

/* 파일 첨부 영역 텍스트 등 */
#bo_w .form-check-label,
#bo_w .custom-control-label {
  color: #000 !important;
}

/* =======================================================
   [최종 수정] 다크모드/라이트모드 자동 감지 텍스트 패치
   - 라이트 모드: 기본 검정 글씨 유지
   - 다크 모드: 흰색 글씨로 자동 변환
   ======================================================= */

/* 1. 게시판 읽기 (View Page) - 제목 및 버튼 */
html.na-dark #bo_v_title {
  color: #ffffff !important;
}

html.na-dark #bo_v_btn a.btn,
html.na-dark #bo_v_btn a.btn i {
  color: #ffffff !important;
}

/* 2. 게시판 글쓰기 (Write Page) - 기본 라벨 */
html.na-dark #bo_w .col-form-label,
html.na-dark #bo_w label {
  color: #ffffff !important;
}

/* [중요] 사용자님이 추가한 커스텀 필드 (사이트명, 가입코드, 보증금 등) */
/* write.skin.php의 clearfix 클래스 내부 라벨 타겟팅 */
html.na-dark #bo_w .clearfix label {
  color: #ffffff !important;
  font-weight: bold; /* 다크모드에서 더 잘 보이게 굵기 추가 */
}

/* [중요] 관리자 전용 필드 (날짜수정, 조회수수정) */
/* 이미지에서 안 보이던 'control-label' 클래스 타겟팅 */
html.na-dark #bo_w .control-label {
  color: #ffffff !important;
}

/* [중요] 체크박스 및 라디오 버튼 옆 글자 */
html.na-dark #bo_w .custom-control-label {
  color: #ffffff !important;
}

/* 3. 입력 필드 예외 처리 (입력칸 배경이 흰색이면 글자는 검정이어야 함) */
/* 다크모드라도 input 박스 안의 글자는 검정색 유지 */
html.na-dark #bo_w input.form-control,
html.na-dark #bo_w input.frm_input,  /* 커스텀 인풋 클래스 */
html.na-dark #bo_w textarea.form-control,
html.na-dark #bo_w select {
  color: #000000 !important;
  background-color: #ffffff !important; /* 입력칸 배경을 확실히 흰색으로 */
  border: 1px solid #ccc !important;
}

/* 4. 다크모드에서 입력 폼 배경색 보정 (혹시 배경이 흰색으로 나오는 문제 방지) */
html.na-dark #bo_w .list-group-item {
  background-color: #2b2b2b !important; /* 짙은 회색 배경 */
  border-color: #444 !important;
}
