@charset "utf-8";
@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

@font-face {
  font-family: 'Paperlogy-4Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}


/* ==============================
   글쓰기 폼 통일 (#bo_w .board-write)
============================== */

#bo_w .board-write{
  --form-max: 800px;
  --label-w : 110px;
  --gap     : 10px;
  max-width: var(--form-max);
  margin: 0 auto;
  padding: 12px 0;
}

/* 라벨/입력칸 2열 */
#bo_w .board-write dl{
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  align-items: start;
  gap: var(--gap);
  margin: 10px 0;
}

#bo_w .board-write dt{
  margin: 0;
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
  font-size: 13px;
  color: #4a4a4a;
  opacity: .95;
  padding-top: 8px;
}

#bo_w .board-write dd{
  margin: 0;
}

/* 공통 입력 스타일 */
#bo_w .board-write .frm_input,
#bo_w .board-write .frm_input.full,
#bo_w .board-write .frm_file.full,
#bo_w .board-write textarea,
#bo_w .board-write select{
  width: 100%;
  border: 1px solid rgba(110,70,50,.25);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  font: inherit;
  color: #333;
  outline: none;
}

#bo_w .board-write select{
  height: 36px;
  padding: 6px 12px;
}

#bo_w .board-write input[type="file"]{
  padding: 6px 8px;
}

#bo_w #char_count_desc,
#bo_w #char_count_wrap{
  font-size: 12px;
  color: #666;
}

/* 작성완료/취소 버튼 */
#bo_w .btn_confirm{
  margin-top: 16px;
  text-align: center;
}

#bo_w .btn_confirm .ui-btn{
  display: inline-block;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

#bo_w .btn_confirm .ui-btn:hover{
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

#bo_w .btn_confirm .ui-btn.point{
  background: #ae5d5c;
  border-color: #ae5d5c;
  color: #fff;
}

/* 모바일: 1열 */
@media (max-width:768px){
  #bo_w .board-write{
    max-width: 100%;
    padding: 8px 0;
  }
  #bo_w .board-write dl{
    grid-template-columns: 1fr;
  }
  #bo_w .board-write dt{
    text-align: left;
    padding-right: 0;
  }
}

/* 그누보드 기본 폭 고정 제거 */
#bo_w .board-write input[type="text"],
#bo_w .board-write input[type="url"],
#bo_w .board-write input[type="file"],
#bo_w .board-write select,
#bo_w .board-write textarea,
#bo_w .board-write .frm_input,
#bo_w .board-write .frm_input.full,
#bo_w .board-write .frm_file.full,
#bo_w .board-write .wr_content{
  width: 100% !important;
  max-width: 100% !important;
}

.wr_content{
  margin: 0 !important;
}

.wr_content textarea {
    min-height: 60px !important;
    height: 100px !important;
}

.wc-tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px; 
    margin: 10px 0;
}

/* 댓글 한 줄을 가로 플렉스 배치 */
.cmt-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* select = 가장 좁게 */
.cmt-row select {
    width: 90px !important;
    flex: 0 0 90px !important;
    white-space: nowrap;
}

/* 이름 칸 = 중간 정도 */
.cmt-row .c-name {
    width: 120px !important;
    flex: 0 0 120px !important;
}

/* 글 입력 칸 = 가장 넓게 */
.cmt-row .c-text {
    flex: 1 1 auto !important;
    width: auto !important;
}

/* 삭제 버튼도 같은 줄에 우측 붙이기 */
.cmt-row .c-del {
    flex: 0 0 auto !important;
    white-space: nowrap;
}

/* 요소 기본 스타일 통일 */
.cmt-row input,
.cmt-row select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* 선택지명 줄을 한 줄 가로 정렬로 만들기 */
.choice-top {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* 선택지 input = 가장 넓게 */
.choice-top .choice-name {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

/* + 줄 추가 버튼 = 댓글 삭제 버튼보다 조금 더 넓게 */
.choice-top .choice-add-line {
    flex: 0 0 110px !important;  /* 꼭대기 길이 조절하면 됨 */
    white-space: nowrap;
}


.choice-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.choice-block {
    margin-bottom: 5px;
}
.choice-block:last-child {
    margin-bottom: 15px;
}


/* ========== Gallery (board/grid/item/header/options) ========== */

.gallery-board {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
}

.pic-header {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.list-option {
  display: flex;
  flex: 1;
  gap: 5px;
  margin-bottom: 3px;
  opacity: 20%;
}

.list-option:hover {
  opacity: 100%;
}

.list-option.btn {
  justify-content: flex-end;
  font-size: 10px;
  font-family: 'Paperlogy-4Regular';
}

.gall_chk {
  z-index: 10;
}

.ico-category {
  display: none;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 0px 5px;
  font-size: 10px;
  font-family: 'Paperlogy-4Regular';
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 5px;
  background: #eeeeee17;
  backdrop-filter: blur(2px);
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  width: 120px !important; height: 150px !important;
}

/* 이미지에 트랜지션 적용 */
.gallery-item {
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* 호버 시 이미지 확대 배율 조정 */
.gallery-item:hover {
  transform: scale(1.05);  /* 1.1배 확대, 필요에 따라 값 변경 가능 */
}

.gallery-item img {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 모바일 */
@media (max-width: 768px) {
  .pic-header {
    display: none !important;
  }
  .gallery-item {
    width: 100px !important;
    height: 100px !important;
  }
}


/* ========== (구) 모달: 주석 보존 ========== */

/*
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
  /* backdrop-filter: blur(3px);  필요 없으면 주석 */
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close {
  position: relative;
  top: 0;
  left: 0px;
  font-size: 45px;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0px 0px 3px black;
}

.modal-description {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px;
  border-radius: 20px;
}

.modal-title {
  font-family: 'Paperlogy-4Regular';
  font-size: 18px;
  font-weight: bold;
}

.modal-meta {
  display: none;
  font-family: 'Paperlogy-4Regular';
  font-size: 12px;
  font-weight: normal;
  color: #bbb;
}

.modal-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-nav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
  color: #eee;
  text-shadow: 3px 3px 3px black;
}

.modal-img {
  max-width: 100%;
  display: block;
}
*/


/* ========== 상단 가이드/버튼/검색/레이아웃 공통 ========== */
/* ==============================
   카테고리/상단 버튼
============================== */
.ico-category{ background:#000; color:#fff; border-radius:10px; padding:0 5px }
.simple-category{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:20px; justify-content:center }
.simple-category li{
  background:#fff; color:#444; border-radius:10px; padding:4px 6px;
  border:1px inset #333; transition:background .2s; white-space:nowrap; text-align:center
}
.simple-category li:hover{ background:#dcbfbe; color:#444 }
.simple-category li.selected{ background:#ae5d5c }
.simple-category li.selected a{ color:#fff !important }

#bo_btn_top{ margin:10px 0 }
#bo_btn_top:after,.bo_fx:after,#bo_sch:after{ content:""; display:block; clear:both }
.bo_fx{ margin-bottom:5px; float:right }
.bo_fx ul,.btn_bo_user,.btn_bo_adm{ margin:0; padding:0; list-style:none }
.btn_bo_user{ float:right }
.btn_bo_user li{ float:left; margin-left:5px }
.btn_bo_adm{ float:left }
.btn_bo_adm li{ float:left; margin-right:5px }

#bo_btn_top .btn_bo_user a.ui-btn,
#bo_btn_top .btn_bo_user a.point{
  display:inline-block !important; background:#fff !important; color:#222 !important;
  border:1px solid rgba(0,0,0,.15) !important; border-radius:10px !important;
  padding:6px 14px !important; text-decoration:none !important; font-weight:600 !important; line-height:1.2 !important;
  box-shadow:0 1px 3px rgba(0,0,0,.06) !important; 
}
#bo_btn_top .btn_bo_user a.ui-btn:hover,
#bo_btn_top .btn_bo_user a.point:hover{
  background:#f5f5f5 !important; box-shadow:0 2px 6px rgba(0,0,0,.10) !important
}

/* 관리자 버튼 */
.list-option.btn{
  display:flex;
  gap:6px;
  justify-content: flex-end;
  font-size: 10px;
  padding: 0;
  height: 20px;
}

.list-option{ opacity:.2; transition:opacity .2s }
.list-option:hover{ opacity:1 }

.list-option.btn a{
  display:inline-block;
  background:#fff !important;
  color:#222 !important;
  border:1px solid rgba(0,0,0,.18) !important;
  border-radius:5px;
  padding:3px;
  font-size: 0.8em;
  line-height:1.2;
  text-decoration:none !important;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:background .15s ease, box-shadow .15s ease, transform .02s ease;
}
.list-option.btn a:hover{
  background:#f6f7f8 !important;
  box-shadow:0 2px 8px rgba(0,0,0,.22);
}
.list-option.btn a:active{
  transform:translateY(.5px);
}

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


/* ========== Instagram-style Modal ========== */

/* 모달 오버레이 + 블러 백그라운드 */
.insta-modal {
  position: fixed;
  inset: 0;
  display: block;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 40px 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0,0,0,0.3);

  /* 숨겨진 상태 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.insta-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 팝업 등장 애니메이션 */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80vw;
  max-width: 1000px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.insta-modal.show .modal-container {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* PC */
#insta-modal .modal-container {
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-container .insta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  background: #fff;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.1);
  z-index: 10;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5em;
  color: #444;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  opacity: 0.5;
}

.close-btn:hover {
  color: #000;
  opacity: 1;
}

.modal-container .modal-body {
  display: flex;
  flex-direction: row;
  max-height: 70vh;
  height: 70vh;
  overflow: hidden;
}

.modal-container .pic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid #eee;
  background: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 -4px 16px -4px rgba(0,0,0,0.1);
}

.insta-img {
  /* flex: 0 0 35%; */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 70vh;
}

.insta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 374px;
  max-height: 100%;
}

.insta-details {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.insta-meta {
  padding: 2.5vw 2.5vw;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-text {
  margin: 0 0 12px;
  color: #444;
  font-family: 'Paperlogy-4Regular';
  font-size: clamp(1.2em, 2.2vw, 1.4em);
  white-space: pre-line;
  line-height: 1.3;
}

.modal-reply {
  margin: 1em 0 0 2em;
  padding: 1.5em;
  background: #f1edec;
  border-radius: 10px;
  font-size: clamp(1.1em, 2.2vw, 1.3em);
  color: #666;
  font-family: 'Paperlogy-4Regular';
  word-break: break-all;
  line-height: 1.3;
}

/* ─────────────── 모바일 전용 (≤768px) ─────────────── */
@media (max-width: 768px) {
  .modal-reply {
    margin: 1em 0 0 0;
  }
}


.modal-reply hr {
  all: unset;
  display: block;
  height: 1px;
  background-color: #ccc;
  margin: 6px 0;
}

strong.flow-name {
  color: #aa9682;
}
/* 키워드 색상 */
strong.flow-name > span.kw-ayn { color:#ae5d5c; }
strong.flow-name > span.kw-shu { color:#e1afa5; }

.flow-text::before {
  content: ": ";
  margin-right: 10px;
}

/* ========== 선택지 세트(탭/패널) ========== */

.flow-choice-set {
  border-top: 1px solid var(--flow-divider, #ccc);
  border-bottom: 2px solid var(--flow-divider-strong, #aaa);
  padding: 8px 0 16px 0;
  margin: 8px 0 20px 0;
}

.flow-choice-set + .comment-separator {
  display: none;
}

/* 탭 컨테이너 세로 스택 */
.flow-choice-set .choice-tabs {
  display: block !important;
  margin: 0 0 10px 0;
  gap: 0;
}

/* 탭 버튼 */
.flow-choice-set .choice-tab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 65%;
  margin: auto;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--flow-divider, #e5e7eb);
  color: #666;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  padding-block: 8px;
  padding-inline: 12px;
  font-size: 1em;
  text-align: center;
  font-family: 'Paperlogy-4Regular';
}

/* ─────────────── 모바일 전용 (≤768px) ─────────────── */
@media (max-width: 768px) {
  .flow-choice-set .choice-tab {
    width: 100%;
  }
}

.flow-choice-set .choice-tab[aria-selected="true"] {
  background: #aa9682;
  color: #fff !important;
  font-weight: 600;
}

.flow-choice-set .choice-tab + .choice-tab {
  margin-top: 5px;
}

.flow-choice-set .choice-panels {
  display: block;
}

.flow-choice-set .choice-panel {
  line-height: 1.3;
}

.flow-choice-set + hr.reply-separator,
hr.reply-separator + .flow-choice-set {
  display: none;
}

/* 답글 들여쓰기 */
.flow-row.is-comment {
  margin-left: 0;
}

.flow-row.is-reply {
  margin-left: 12px;
}

.flow-row.is-reply .reply-marker {
  display: inline-block;
  line-height: 1;
  vertical-align: text-top;
  opacity: .85;
}


/* ========== 댓글 작성 UI ========== */

.write-comments {
  margin-top: 10px;
}

.write-comments .wc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}

.write-comments .wc-tools {
  display: flex;
  gap: 8px;
}

.wc-list .cmt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.wc-list .cmt-row select {
  width: 90px;
}

.wc-list .cmt-row .c-name {
  width: 160px;
}

.wc-list .cmt-row .c-text {
  flex: 1;
}

.wc-list .cmt-row select,
.wc-list .cmt-row .c-name,
.wc-list .cmt-row .c-text {
  padding: 6px 8px;
}

.wc-list .cmt-row .c-del {
  padding: 6px 10px;
}


/* ========== 모달 메타/푸터(공용) ========== */

.modal-meta {
  margin-top: auto;
  text-align: right;
  color: #777;
}

.pic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid #eee;
  background: #fff;
}

.pic-footer .hologram {
  display: flex;
  gap: 12px;
  font-size: 1.25rem;
  color: #666;
}

.pic-footer .mini-icon {
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.pic-footer .mini-icon:hover {
  color: var(--point, crimson);
}

.pic-footer .footer-memo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Paperlogy-4Regular';
}

.pic-footer .link_hash_tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f2f2f2;
  border-radius: 12px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s;
}

.pic-footer .link_hash_tag:hover {
  background: #ddd;
}


/* ─────────────── Instagram Modal: 모바일 전용 (≤768px) ─────────────── */
@media (max-width: 768px) {
  /* 1) 모달 최상위: 상단 여백, 전체 스크롤 */
  #insta-modal {
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #insta-modal .modal-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 96vw;
    max-width: 96vw;
    margin: 5% auto 0 auto;
  }

  .modal-container .modal-body {
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* 내부 이미지, 본문(리플)도 96vw에 맞춰 상속 */
  .insta-img,
  .insta-details {
    width: inherit !important;   /* 부모의 96vw를 강제 상속 */
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 이미지 영역: 가로 96vw, 세로 비율 유지 */
  .insta-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: none;
    height: auto;
    max-height: none;
  }

  .insta-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: none;
    max-width: 100%;
    max-height: none;
  }

  /* 본문+리플: 패딩만 적용, 높이 자동, 내부 스크롤X */
  .insta-details {
    padding: 16px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* 푸터 스타일 보정 */
  #insta-modal > .pic-footer {
    border-radius: 0 0 15px 15px;
    padding: 10px 16px;
    box-shadow: 0 -4px 16px -4px rgba(0,0,0,0.1);
  }
}


/* 커스텀 스크롤바 */
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.1);
    filter: brightness(0.9);
}

* {
    scrollbar-color: rgba(0,0,0,0.1) rgba(255,255,255,0);
}
