@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 400;
  src: url(/static/fonts/NanumGothic-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 700;
  src: url(/static/fonts/NanumGothic-Bold.ttf) format('truetype');
}


html,
body,
div,
span,
h2,
h3,
p,
a,
em,
img,
ul,
li,
article,
header,
section,
button {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
  font-style: normal;
}

article,
header,
section,
main {
  display: block;
}

body {
  width: 100%;
  height: 100%;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border-radius: 0;
  vertical-align: middle;
}

body,
button {
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", arial, Dotum, 돋움, sans-serif;
}

a {
  color: #333;
  text-decoration: none;
}

a:active,
a:hover {
  text-decoration: underline;
}


/* ===================================================================
   2. 유틸리티
   =================================================================== */

.sp_img {
  background-image: url(/static/img/sp_img.png);
  background-repeat: no-repeat;
}

.clear:after {
  clear: both;
  display: block;
  visibility: hidden;
  content: "";
}

.blind {
  position: absolute;
  overflow: hidden;
  visibility: hidden;
  margin: -1px;
  width: 0;
  height: 0;
  top: -9999px;
  font-size: 0;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.ip {
  font-family: tahoma, sans-serif;
  font-size: 11px;
  color: #999;
}

.font_red {
  color: #d31900;
}

.link {
  color: #29367c;
  text-decoration: underline;
}


/* ===================================================================
   3. 레이아웃
   =================================================================== */

.view_wrap {
  min-width: 1515px;
}

.wrap_inner {
  position: relative;
  width: 1450px;
  margin: 0 auto;
}

#container {
  width: 1050px;
  margin: 20px auto 0;
}

.width1160 #container {
  width: 1160px;
  margin: 20px auto 0;
}

.page_head {
  height: 40px;
  margin-bottom: 5px;
}

.page_head h2 {
  float: left;
  font-size: 24px;
  font-family: 'Nanum Gothic', sans-serif;
  letter-spacing: -1px;
  margin: 2px 8px 0 3px;
  max-width: 420px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #29367c;
}

.page_head h2 a {
  color: #29367c;
}

.page_head h2 a:hover {
  text-decoration: none;
}

/* Firefox */
@-moz-document url-prefix() {
  .page_head h2 {
    margin: 1px 6px 0 2px;
  }
}

/* Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .page_head h2 {
    margin: -2px 6px 0 2px;
  }
}

.issue_wrap {
  position: relative;
  border-top: 2px solid #29367c;
  z-index: 13;
}

.writer_nikcon img {
  vertical-align: middle;
}

.icon_write_app, .icon_write_mbl {
  display: inline-block;
  width: 11px;
  height: 14px;
  margin-left: 9px;
  vertical-align: -1px;
  background-position: -278px 0;
}
.icon_write_mbl {
  background-position: -263px 0;
}

/* ===================================================================
   7. 본문 뷰
   =================================================================== */

.view_content_wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", arial, 굴림, Gulim, sans-serif;
  font-size: 13px;
  color: #333;
}

/* 글 제목 영역 */
.gallview_head {
  margin: 16px 0 29px;
  padding-bottom: 11px;
  border-bottom: 1px solid #eee;
}

.gallview_head .title {
  padding: 0 2px;
  margin-bottom: 7px;
  font-size: 14px;
}
.gallview_head .gall_writer {
  padding: 0 2px;
}

.gallview_head .gall_date::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #ccc;
  margin: 0 10px 0 6px;
  vertical-align: -2px;
}

.gallview_head .gall_writer > .fr {
  padding-right: 7px;
}

.gallview_head .gall_writer .fr > span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #ccc;
  margin: 0 10px 0 6px;
  vertical-align: -1px;
}

.gallview_head .gall_writer .fr > span:first-child::before {
  display: none;
}

.gallview_head .gall_date,
.gallview_head .gall_count,
.gallview_head .gall_reply_num,
.gallview_head .gall_comment {
  cursor: default;
}

.gallview_head .gall_comment a {
  display: inline-block;
  height: 20px;
  line-height: 20px;
  padding: 0 10px;
  background: #eee;
  border: 1px #ccc solid;
  border-radius: 50px;
}

.gallview_head .gall_comment a:hover {
  text-decoration: none;
}

/* 본문 내용 */
.gallview_contents {
  line-height: 22px;
}

.gallview_contents > .inner {
  margin-bottom: 50px;
}

.writing_view_box {
  float: left;
  max-width: 900px;
  word-break: break-all;
  line-height: 1.5;
}

.writing_view_box img {
  max-width: 100%;
}

.writing_view_box ul {
  padding-left: 15px;
}

.write_div div {
  padding-bottom: 5px;
}

.write_div > ul {
  list-style-type: disc;
  padding-left: 22px;
}

.gall_writer {
  position: relative;
  font-size: 13px;
  cursor: pointer;
}
.gall_writer .addbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
}


/* ===================================================================
   8. 댓글
   =================================================================== */

.comment_wrap {
  overflow: hidden;
  width: 100%;
  height: 38px;
  margin-top: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", arial, 굴림, Gulim, sans-serif;
  font-size: 13px;
  color: #333;
}
.comment_wrap .bottom_paging_box {
  border-top: 1px #eee solid;
}
.comment_wrap.show,
.comment_box .reply.show {
  overflow: visible;
  height: 100%;
}

.comment_box .reply.show:after {
  clear: both;
  display: block;
  visibility: hidden;
  content: "";
}

.comment_count {
  height: 38px;
  line-height: 38px;
  font-weight: bold;
}

.comment_count:after {
  clear: both;
  display: block;
  visibility: hidden;
  content: "";
}

.comment_count > .fr {
  font-size: 0;
}

.comment_count > .fr > *::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px 0 9px;
  background: #ccc;
  vertical-align: -1px;
}

.comment_count > .fr > *:first-child::before {
  display: none;
}

.comment_count .num_box {
  width: 50%;
}

.comment_box {
  position: relative;
  border-top: 2px solid #3b4890;
}

/* 댓글 아이템 */
.cmt_info {
  position: relative;
  padding: 9px 12px 7px;
  border-top: 1px solid #eee;
}

.view_comment .cmt_info {
  padding: 9px 3px 7px;
}

.cmt_list li:first-child .cmt_info {
  border-top: none;
}

.cmt_txtbox {
  float: left;
  width: 820px;
  cursor: pointer;
}

.reply .cmt_txtbox {
  cursor: default;
}

.cmt_info p {
  line-height: 20px;
}

.usertxt {
  float: left;
  width: 820px;
  line-height: 20px;
  cursor: pointer;
  word-break: break-all;
  overflow: hidden;
}
.mention {
  color: #7799dd;
}
.darkmode .mention {
  color: #6d8cc9;
}
.date_time {
  float: left;
  font-size: 12px;
  color: #999;
  vertical-align: top;
  margin-top: 1px;
}

/* 닉네임 박스 */
.cmt_nickbox {
  float: left;
  width: 152px;
  margin-right: 33px;
  margin-top: 3px;
  line-height: 13px;
}

.cmt_nickbox:empty {
  display: none;
}

.comment_box .nickname {
  font-size: 12px;
  color: #777;
  vertical-align: top;
}

.comment_box .nickname > em {
  display: inline-block;
  max-width: 84px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
}

.comment_box .nickname.in > em {
  max-width: 110px;
  padding-right: 1px;
}

.comment_box .reply .nickname.in > em {
  max-width: 107px;
}

.comment_box .nickname .ip {
  display: inline-block;
  vertical-align: 1px;
}

/* addbox (이용자 메모 포함 닉/텍스트 묶음) */
.cmt_nickbox {
    display: flex;
    float: left;
    width: 152px;
    margin-right: 33px;
    margin-top: 3px;
    line-height: 13px;
}
.addbox .cmt_txtbox,
.addbox .usertxt {
  width: 800px;
}

.addbox .cmt_nickbox {
  width: 152px;
}

.comment_box .addbox .gall_writer {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.comment_box .addbox .nickname {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.comment_box .addbox .nickname em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 답글 */
.view_comment {
  position: relative;
}

.comment_box .reply {
  overflow: hidden;
  height: 0;
}

.reply_info {
  position: relative;
}

.reply_info .usertxt {
  position: relative;
  width: 774px;
  padding-left: 16px;
  cursor: default;
}
.mention.deco {
  padding-right: 1px;
}
.reply_info .usertxt::before {
  content: " ";
  position: absolute;
  left: 0;
  top: 3px;
  display: block;
  width: 8px;
  height: 8px;
  background: url(/static/img/sp_img.png) no-repeat;
  background-position: -283px -200px;
}

.reply .cmt_nickbox {
  width: 133px;
  margin-right: 23px;
}

.reply_box {
  margin: 0px 0 12px 30px;
  padding: 0px 0 0;
  border: 1px solid #ddd;
  background: #fafafa;
  border-width: 0 1px 1px 1px;
}

li:first-child .reply_box {
  margin: 0 0 0 30px;
}

.reply_list li {
  padding: 9px 12px 7px;
  border-top: 1px solid #ddd;
}

.reply_list li:first-child {
  margin-top: 0;
}

.cmt_list li:first-child .reply {
  padding: 12px 0;
  border-top: none;
}

.cmt_list li:first-child .reply li:first-child {
  margin-top: 0;
}

.cmt_list.add .reply .cmt_txtbox,
.cmt_list.add .reply .usertxt {
  cursor: pointer;
}


/* ===================================================================
   9. 다크모드
   =================================================================== */

/* 배경 */
html.darkmode,
.darkmode body {
  background-color: #151515;
}

/* 기본 텍스트·링크 */
.darkmode a,
.darkmode .comment_wrap,
.darkmode .view_content_wrap {
  color: #ccc;
}

/* 페이지 타이틀 */
.darkmode .page_head h2 a {
  color: #7a86af;
}

/* 폰트 컬러 */
.darkmode .font_red {
  color: #c33333;
}

.darkmode .comment_box .nickname {
  color: #bbb;
}

.darkmode .date_time,
.darkmode .comment_box .nickname .ip {
  color: #888;
}

/* 구분선 배경 */
.darkmode .gallview_head .gall_date::before,
.darkmode .gallview_head .gall_writer .fr > span::before {
  background: #444;
}

.darkmode .comment_count > .fr > *::before {
  background: #555;
}

/* 보더 */
.darkmode .cmt_info,
.darkmode .reply_box,
.darkmode .reply_list li,
.darkmode .gallview_head,
.darkmode .gallview_head .gall_comment a,
.darkmode .bottom_paging_box{
  border-color: #484848;
}

.darkmode .issue_wrap {
  border-color: #273272;
}

.darkmode .comment_box {
  border-color: #374384;
}

/* 배경색 */
.darkmode .reply_box,
.darkmode .gallview_head .gall_comment a {
  background: #222;
}

/* 투명도 */
.darkmode .writer_nikcon img,
.darkmode .reply_info .usertxt::before {
  opacity: 0.9;
}

/* 본문 반전 (다크모드에서 라이트 배경 콘텐츠를 반전) */
.darkmode .write_div *,
.darkmode .write_div {
  color: #444;
}

.darkmode .write_div,
.darkmode .write_div > p div,
.darkmode .write_div img {
  filter: invert(100%);
}
#dark_toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9999;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #555;
  background: #252525;
  color: #ccc;
  cursor: pointer;
  border-radius: 3px;
}

html:not(.darkmode) #dark_toggle {
  background: #fff;
  color: #333;
  border-color: #29367c;
}