@charset "UTF-8";
/* 변수 저장 : 간단한 커스텀은 이 부분을 변경하세요 */
:root {
  --item-width: 600px; /* 박스 크기 */
  --item-bg:linear-gradient(135deg, #fafafa, #fff); /* 박스 배경색 */
  --item-color: #222; /* 박스 글자색 */
  --item-radius:20px; /* 박스 모서리 */
  --font1: "Pretendard-Regular"; /* No 폰트 */
}

/* 초기화 */
* {
  box-sizing: border-box;
}

#list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.refresh {
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.refresh:hover .is-icons {
  transition-duration: 0.6s;
  transform: rotate(360deg);
}

/* LIST 상단 WRITE 부분 */
.refresh + #write_item {
  margin-bottom: 60px !important;
}

.searc-sub-box {
  display: flex;
  justify-content: center;
}

/* LIST > ITEM 기본 */
.item {
  width: var(--item-width);
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 24px 20px 18px;
  border: 1px solid #ddd;
  border-radius: var(--item-radius);
  background: var(--item-bg);
  color: var(--item-color);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  position: relative;
}
.item:not(.comment) {
  margin-top: 40px;
}
.item .is-icons {
  font-size: 1em;
}
.item .more-box {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  width: 100%;
  left: 0;
  padding: 4px 8px;
}
.item .more-box .no {
  font-family: var(--font1);
}
.item .more-box .more-btn {
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  gap: 2px;
}
.item .more-box .more-btn a[onclick] {
  cursor: pointer;
}
.item .item-content {
  display: grid;
  grid-template-columns: 50px minmax(10px, 1fr);
  gap: 10px;
}
.item .profile-wrap {
  width: 50px;
  flex-shrink: 0;
}
.item .profile-wrap .profile {
  position: relative;
}
.item .profile-wrap .profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}
.item .profile-wrap input[type=file] {
  display: none;
}
.item .profile-wrap #add_profile {
  position: absolute;
  bottom: -4px;
  right: -4px;
  height: 20px;
  width: 20px;
  padding: 0;
  margin: 0;
  font-size: 1.2em;
}
.item .profile-wrap #del_profile {
  display: none;
  position: absolute;
  bottom: -4px;
  left: -4px;
  height: 20px;
  width: 20px;
  padding: 0;
  margin: 0;
  font-size: 1.2em;
}
.item .content-wrap .by {
  margin-bottom: 10px;
}
.item .content-wrap .by .by-name {
  font-weight: bold;
}
.item .content-wrap .by .by-id, .item .content-wrap .by .by-date span {
  opacity: 0.4;
}
.item .content-wrap .by .by-date {
  position: relative;
}
.item .content-wrap .by .by-date a.date-tooltip {
  position: absolute;
  width: max-content;
  bottom: 100%;
  margin-bottom: 4px;
  font-size: 11px;
  padding: 4px;
  left: calc(50% + 4px);
  transform: translateX(-50%);
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transition-property: opacity;
}
.item .content-wrap .by .by-date:hover a.date-tooltip {
  opacity: 1;
}
.item .content-wrap .memo {
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.item .content-wrap .memo label {
  gap: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.item .content-wrap .memo label input {
  width: 100%;
}
.item .content-wrap .memo svg {
  flex-shrink: 0 !important;
}
.item .content-wrap .memo div {
  position: relative;
}
.item .content-wrap .memo div span {
  z-index: 1;
  position: relative;
}
.item .content-wrap .memo div span.ui-btn.etc {
  border: none !important;
  border-radius: 0 !important;
  position: absolute !important;
  width: 100% !important;
  height: 3px !important;
  bottom: 0 !important;
  left: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.item .content-wrap .content-text {
  word-break: break-all;
  margin-block: 10px;
}
.item .content-wrap .content-text img {
  vertical-align: inherit;
}
.item .content-wrap .content-video {
  margin-top: 10px;
}
.item .content-wrap .content-video iframe {
  max-width: 100%;
  width: 100%;
  height: 100%;
}
.item .content-wrap .content-img {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 5px;
}
.item .content-wrap .content-img:not(:has(:first-child)) {
  margin: 0;
}
.item .content-wrap .content-img input[type=checkbox] {
  display: none;
}
.item .content-wrap .content-img:has(:nth-child(3)):not(:has(:nth-child(4))), .item .content-wrap .content-img:has(:nth-child(6)):not(:has(:nth-child(7))) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}
.item .content-wrap .content-img:has(:nth-child(7)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: 100px;
}
.item .content-wrap .img-wrap {
  flex-basis: calc(33.3333333333% - 10px);
  flex-shrink: 0;
  flex-grow: 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  border: 1px solid #d1d1d1;
}
.item .content-wrap .img-wrap img {
  aspect-ratio: 1/1;
  object-fit: cover;
  /* 이미지 4, 5개 / 이미지 크기가 작을 때 여백이 남는 게 싫으시다면 아래 min-width 주석을 해제해 주세요*/
  /* min-width: 100%; */
}
.item .content-wrap .img-wrap:only-child img {
  aspect-ratio: unset;
}
#write_item p.ui-btn.help {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
}
#write_item span.by-id {
  position: relative;
  left: 12px;
}
#write_item input.by-id {
  margin-left: -10px;
  padding-left: 25px;
}
#write_item .img-wrap {
  cursor: pointer;
  line-height: 0;
}
#write_item .img-wrap .del_file, #write_item .img-wrap .prev_file, #write_item .img-wrap .next_file {
  position: absolute;
  font-size: 1.6em;
  opacity: 0;
}
#write_item .img-wrap .del_file {
  top: 6px;
  right: 6px;
}
#write_item .img-wrap .prev_file {
  bottom: 6px;
  left: 6px;
  transform: rotate(180deg);
}
#write_item .img-wrap .next_file {
  bottom: 6px;
  right: 6px;
}
#write_item .img-wrap:hover img {
  opacity: 0.5;
}
#write_item .img-wrap:hover .del_file, #write_item .img-wrap:hover .prev_file, #write_item .img-wrap:hover .next_file {
  opacity: 1;
}
#write_item .img-wrap:first-child .prev_file {
  display: none;
}
#write_item .img-wrap:last-child .next_file {
  display: none;
}

.item #wr_file {
  display: none;
}

#prev_file_del_input, #file_box {
  display: none !important;
}

/* LIST > ITEM 코멘트 */
.comment-area {
  width: var(--item-width);
  max-width: 100%;
}

.item.comment {
  width: calc(var(--item-width) - 40px);
  max-width: calc(100% - 40px);
  margin-left: 40px;
}

@media screen and (max-width: 1000px) {
  .item.comment {
    width: calc(var(--item-width) - 20px);
    max-width: calc(100% - 20px);
    margin-left: 20px;
  }
}
/* WRITE */
#write_item {
  padding-bottom: 10px;
}
#write_item textarea[name=wr_content] {
  resize: vertical;
  transition: none;
}
#write_item .comments {
  line-height: 0;
}

/* 스포일러, 접기 */
.spoiler, .plip {
  display: none !important;
}

.spoiler + .content-img {
  pointer-events: none;
}
.spoiler + .content-img > .img-wrap * {
  pointer-events: none;
}
.spoiler + .content-img > .img-wrap img {
  transition: filter 0.3s ease-in-out;
  filter: blur(80px);
}

.spoiler:checked + .content-img {
  pointer-events: all !important;
}
.spoiler:checked + .content-img > .img-wrap > img {
  filter: none;
}

.plip ~ .content-text, .plip ~ .content-img {
  display: none !important;
}
.plip ~ label {
  visibility: hidden;
}
.plip:checked ~ .content-text {
  display: block !important;
}
.plip:checked ~ .content-img {
  display: flex !important;
}
.plip:checked ~ label {
  visibility: visible;
}

/* 라벨 가운데정렬 */
a.ui-btn, label.ui-btn, p.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition-property: background, border;
}

.comment-label {
  float: right;
}
.comment-label .cmt-count {
  font-size: 12px;
  margin-right: 4px;
}
.comment-label::after {
  content: "";
  float: none;
  display: block;
}

#list .comment-footer {
  display: flex;
  justify-content: space-between;
  position: relative;
  bottom: -10px;
}

#list .board-emoji {
  position: relative;
  left: 60px;
}

#list .item-comment-box .board-emoji {
  left: 0;
}

#list .comment-footer .comment-label {
  bottom: 0px;
}

#list .comment-label {
  bottom: -10px;
  right: -12px;
}

#list p.ui-btn.help {
  display: none;
}

a.more {
  display: block;
  text-align: center;
  margin-block: 4px;
}
a.more span:last-child {
  top: -2px;
  position: relative;
}

/* WRITE 버튼 */
.write-btn-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.write-btn-area .label-area {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  gap: 8px;
  display: flex;
  height: 18px;
}
.write-btn-area .change-img-siz-box {
  display: flex;
  gap: 4px;
  color: var(--effect-point3);
}
.write-btn-area .change-img-siz-box .is-checked, .write-btn-area .change-img-siz-box :has(:checked) {
  color: var(--effect-point);
}
.write-btn-area .change-img-siz-box input[type=radio] {
  display: none;
}
.write-btn-area .change-img-siz-box label:not(.item-icon) {
  font-family: var(--font1) !important;
  font-size: 10px;
  font-weight: bold;
}

.label-box {
  position: relative;
  padding-left: 20px;
}
.label-box textarea {
  width: 100%;
  min-height: auto;
}
.label-box .is-icons {
  position: absolute;
  top: 0;
  left: 0;
}
.label-box .url-image-input {
  margin-block: 2px;
  display: flex;
  gap: 2px;
}
.label-box .url-image-input input {
  flex: 1 1 100%;
}

.item-icon {
  position: relative;
  min-width: 20px;
}
.item-icon svg {
  fill: currentColor;
}
.item-icon input[type=checkbox] {
  display: none;
}
.item-icon:has(input:checked) {
  color: var(--effect-point);
}
.item-icon .tooltip {
  position: absolute;
  font-size: 12px;
  font-family: "Nanum Gothic";
  top: -200%;
  left: 50%;
  transform: translate(-50%, 50%);
  width: max-content;
  background: #111;
  color: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 99;
  display: none;
}
.item-icon:hover .tooltip {
  display: flex;
}
.item-icon .tooltip:before {
  content: "";
  position: absolute;
  border: 6px solid transparent;
  border-top-color: #111;
  margin-bottom: -11px;
  left: calc(50% - 6px);
  bottom: 0;
}

#btn_submit, .refresh, .comment-label {
  display: inline-flex;
  align-items: center;
}

.is-icons {
  line-height: 1;
  display: inline-flex;
}

/* 수정중 댓글 가리기 */
.editing.item {
  display: none !important;
}

/* 로그링크 */
.log_link_tag::before {
  content: "@";
}

/* 북마크 */
a.bookmark-box {
  display: flex;
  color: inherit;
  text-decoration: none;
  user-select: none;
  transition: background 0.02s ease-in;
  cursor: pointer;
  flex-grow: 1;
  min-width: 0px;
  flex-wrap: wrap-reverse;
  align-items: stretch;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(153, 153, 153, 0.4);
  border-radius: 4px;
  position: relative;
  fill: inherit;
  margin-block: 4px;
}
a.bookmark-box:hover {
  background: rgba(153, 153, 153, 0.1);
}
a.bookmark-box > div {
  flex: 4 1 180px;
  padding: 12px 14px 14px;
  overflow: hidden;
  text-align: left;
}
a.bookmark-box > div.bm-image {
  flex: 1 1 180px;
  display: block;
  position: relative;
  padding: 0;
}
a.bookmark-box > div.bm-image > div {
  position: absolute;
  inset: 0;
}
a.bookmark-box > div.bm-image > div img {
  display: block;
  object-fit: cover;
  border-radius: 2px;
  width: 100%;
  height: 100%;
}
a.bookmark-box > div .bm-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.bookmark-box > div .bm-description {
  margin-bottom: 4px;
  opacity: 0.8;
  font-size: 12px;
  line-height: 16px;
  height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.bookmark-box > div .bm-url {
  font-size: 12px;
  line-height: 1.5;
  color: #999;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}