@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');
}

:root {
  --color-primary:    #29367c;
  --color-primary-hl: #3b4890;
  --color-accent:     #ee3c24;
  --color-border:     #eee;
  --color-bg:         #fff;
  --color-text:       #333;
  --color-muted:      #999;
  --color-visited:    #770088;
  --color-hover-bg:   #f3f3f3;

  --font-base: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", arial, Dotum, 돋움, sans-serif;
  --font-list: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", arial, 굴림, Gulim, sans-serif;
  --font-mono: tahoma, sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 12px;
}

.sp_img        { background: url(/static/img/sp_img.png) no-repeat; }
.sp_pagingicon { background: url(/static/img/sp_pagingicon.png) no-repeat; }

.blind {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  margin: -1px;
  width: 1px;
  height: 1px;
}

.clear::after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
}

.fl { float: left; }

#container {
  width: 840px;
  margin: 20px auto 0;
}

.left_content {
  width: 840px;
}

.page_head {
  height: 37px;
  margin-bottom: 8px;
}

.page_head h2 {
  float: left;
  max-width: 420px;
  margin: 2px 8px 0 3px;
  font-size: 24px;
  font-family: 'Nanum Gothic', sans-serif;
  letter-spacing: -1px;
  color: var(--color-primary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn_write {
  float: right;
  width: 66px;
  height: 21px;
  margin: 4px 3px 0 0;
  padding: 0 6px;
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: bold;
  line-height: 19px;
  letter-spacing: -0.025em;
  text-align: center;
  cursor: pointer;
}

.btn_write:hover {
  border-color: var(--color-primary-hl);
}

.gall_listwrap {
  position: relative;
}

table.gall_list {
  padding: 0 4px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-primary);
  font-family: var(--font-list);
  color: var(--color-text);
  vertical-align: middle;
  text-align: center;
}

table.gall_list th {
  height: 37px;
  border-width: 2px 0 1px;
  border-style: solid;
  border-color: var(--color-primary);
  font-family: var(--font-base);
  color: var(--color-text);
  vertical-align: middle;
  text-align: center;
}

.list table.gall_list td {
  height: 25px;
}

table.gall_list tbody tr:first-child td {
  border-top: none;
}

table.gall_list tbody tr:hover {
  background: var(--color-hover-bg);
}

.gall_list .gall_num,
.gall_list .gall_date,
.gall_list .gall_count,
.gall_list .gall_recommend {
  font-family: var(--font-mono);
  font-size: 11px;
  padding-top: 1px;
}

.gall_tit {
  text-align: left;
}

.gall_tit a {
  display: inline-block;
  max-width: 82%;
  color: var(--color-text);
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list .gall_tit a {
  padding-top: 1px;
}

.list .gall_tit a:visited {
  color: var(--color-visited);
}

.gall_writer {
  font-size: 13px;
  cursor: pointer;
}

.list .gall_writer {
  padding-top: 2px;
}

.list .nickname {
  display: inline-block;
  max-width: 70%;
  vertical-align: top;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.comment_box .nickname.in > em {
  max-width: 110px;
  padding-right: 1px;
}
.list .nickname em {
  line-height: 13px;
  font-style: normal;
}

.ip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list .ip {
  letter-spacing: -0.05em;
}

.addbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 150px;
  min-width: 0;
  overflow: hidden;
}

.icon_img {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  vertical-align: -3px;
  background: url(/static/img/icon_img.png) no-repeat;
}

.icon_pic    { background-position: 0 -100px; }
.icon_txt    { background-position: 0 -123px; }
.icon_movie  { background-position: 0 -147px; }
.icon_ai     { background-position: -3px -818px; }
.icon_recomimg { background-position: 0px -50px; }

.bottom_paging_wrap {
  display: inline-block;
  width: 100%;
  margin-top: 5px;
  padding: 0 121px;
}

.bottom_paging_box {
  text-align: center;
  line-height: 20px;
  padding-top: 6px;
  margin-top: 3px;
}

.bottom_paging_box a,
.bottom_paging_box em {
  display: inline-block;
  margin-left: 5px;
  padding-top: 6px;
  font-size: 14px;
  font-weight: bold;
  font-style: normal;
}

.bottom_paging_box a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.bottom_paging_box em {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: underline;
}

.iconpaging .page_next,
.iconpaging .page_prev {
  width: 12px;
  height: 14px;
  padding: 0;
  vertical-align: 2px;
}
.iconpaging .page_first, .iconpaging .page_end {
    width: 13px;
    height: 14px;
    padding: 0;
}
.iconpaging .page_first, .iconpaging .page_prev, .iconpaging .page_next, .iconpaging .page_end {
    font-size: 0 !important;
    padding-top: 0 !important;
    vertical-align: 2px;
}
.iconpaging .page_next {
  margin: 0 10px 0 19px;
  background-position: -1px -24px;
}
.iconpaging .page_prev {
  background-position: -24px -1px;
  margin: 0 10px 0 10px;
}
.iconpaging .page_first {
    background-position: -1px -1px;
}
.iconpaging .page_end {
    background-position: -23px -24px;
    margin-left: 0;
}
.buttom_search_wrap {
  width: 451px;
  margin: 20px auto 0;
}

.bottom_search {
  float: left;
  height: 36px;
  margin-left: 5px;
  background: var(--color-primary-hl);
}

.bottom_search .inner_search {
  float: left;
  width: 278px;
  margin: 3px 0 0 3px;
  background: var(--color-bg);
}

.bottom_search .in_keyword {
  width: 260px;
  height: 30px;
  padding: 0 9px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--color-text);
  font-size: 13px;
}

.bottom_search .in_keyword::placeholder {
  color: var(--color-muted);
}

.bottom_search .bnt_search {
  float: left;
  width: 37px;
  height: 36px;
  border: none;
  background: transparent url(/static/img/sp_img.png) no-repeat 0 -195px;
  cursor: pointer;
  font-size: 0;
}
.reply_num {
  font-size: 12px;
  color: #999;
}
#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;
}