@charset "utf-8";

ul.tt_category > li > a {
    display: none;
}

[data-tistory-react-app="Namecard"] {
    display: none;
}
html {
  overflow-y: scroll;
}
/* =========================
   기본 설정
========================= */

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: 'Inter', 'Pretendard', sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

#container {
    max-width: 630px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* =========================
   헤더
========================= */

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
 
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 9px;
    font-weight: 500;
    color: #666;
}

.profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.profile-sub {
    font-size: 8px;
    color: #999;
    margin-top: 1px;
}
/* =========================
   검색 / 아이콘
========================= */
.header-search { 
    display: flex;
    align-items: center; 
    /* 검색창이 가장 위에 배치됩니다. */
}

.header-search input[type="text"] { 
  border: 1px solid #eee; 
  padding: 6px 10px; 
  width: 100px; 
  border-radius: 5px; 
  font-size: 9px; 
  }
.header-search button { 
  background: none; 
  border: none; 
  cursor: pointer; 
  
  font-size: 12px; 
  color: #828e9a; 
  margin-top: 3px;
  }

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: -32px;
}


.nav-icons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #828e9a;
    padding: 0px 0 6px 0;
}
.nav-icons svg,
.search-box svg {
    width: 15px;
    height: 15px;
    stroke: #828e9a;
    
}
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #828e9a;
    margin-left: -6px;
    margin-top: 0px;
}
@media screen and (max-width: 768px) {
  .menu-btn {
margin-top: -1px;
}
}
/* =========================
   카테고리 메뉴
========================= */

#category-menu {
    position: absolute;
    top: 25px;
    right: 0;
    z-index: 1000;
    width: 120px;
    padding: 18px 18px 10px 18px;
    background-color: #86c0ef;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    color: white;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

.category-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

#category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#category-menu ul li {
    margin: 8px 0;
    font-size: 11px;
}

#category-menu a {
    color: white;
}

/* 하위 카테고리 영역 */
#category-menu .sub_category_list {
    margin-top: 6px;
    margin-left: 10px;
}

/* 하위 카테고리 */
#category-menu .sub_category_list li {
    margin: 5px 0;
}

/* 하위 카테고리 링크 */
#category-menu .sub_category_list a {
    font-size: 10px;
    opacity: 0.9;
}

/* 하위 카테고리 기본 숨김 */
.sub_category_list {
    display: none;
    margin-left: 10px;
    margin-top: 5px;
}

/* 펼쳐졌을 때 */
.category_list li.open > .sub_category_list {
    display: block;
}

/* 부모 카테고리 */
.category_list > li > a {
    font-weight: 400;
}

/* 하위 카테고리 */
.sub_category_list a {
    font-size: 10px;
    opacity: 0.9;
}

/* =========================
   메인 영역
========================= */

#main {
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   홈 썸네일 리스트
========================= */

#main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.post-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


.post-item .thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background-image: url('./images/NoImage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
.post-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #fff; /* 원본 이미지가 투명 PNG일 경우를 대비 */
}
.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    display: block;
}

.post-item:hover img {
    transform: scale(1.05);
}

/* =========================
   글 상세 페이지
========================= */

.entry-content {
    width: 100%;
    grid-column: 1 / -1;
    box-sizing: border-box;
}

.entry-header {
    margin-bottom: 20px;
    font-size: 8px;
}

.entry-header h1 {
    margin: 10px 0;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
    word-break: keep-all;
}

.content {
    width: 100%;
    font-size: 10px;
    line-height: 1.8;
    color: #444;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0px;
    display: block;
    margin: 10px auto;
}
.content p,
.content figure,
.content .imageblock,
.content [data-ke-type='image'] {
    margin: 0 !important;
    padding: 0 !important;
}

.content img {
    display: block;
    margin: 0 auto !important;
}
/* =========================
   방명록
========================= */

/* =========================
   GUESTBOOK / COMMENT
========================= */

/* 이름 / 비밀번호 입력창 */
.tt-box-account input {
  font-size: 10px !important;
}

/* placeholder 글씨 */
.tt-box-account input::placeholder {
  font-size: 10px !important;
}
.tt-box-account input {
  height: 28px;
  padding: 0 10px;
}
/* 내용 입력칸 글씨 */
.tt-cmt {
  font-size: 11px !important;
  line-height: 1.5;
}

/* placeholder */
.tt-cmt:empty::before {
  font-size: 11px !important;
}
/* 입력창 영역 높이 */
.tt-cmt {
  min-height: 60px !important;
}
/* 전체 컨테이너 */
[id^="entry"] .tt-comment-cont {
  max-width: 720px;
  margin: 3em auto;
  margin-top: 20px; /* 또는 0 */
  padding: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: #222;

  display: flex !important;
  flex-direction: column !important;
}

/* 입력창(form) 위로 이동 */
[id^="entry"] .tt-comment-cont form {
  order: -1 !important;
  margin-bottom: 40px;
}

/* 목록 아래 */
[id^="entry"] .tt-area-reply {
  order: 2 !important;
}

/* 댓글/방명록 개수 숨김 */
.tt-box-total {
  display: none !important;
}

/* 프로필 이미지 숨김 */
.tt-box-thumb {
  display: none !important;
}

/* 입력 영역 */
[id^="entry"] .tt-area-write {
  width: 100%;
}

/* 입력창 내부 */
[id^="entry"] .tt_wrap_write {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 입력 박스 */
.tt-box-textarea .tt-inner-g {
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  padding: 18px;
  background: #fff;

  overflow: hidden;
  box-shadow: none !important;
}

/* 닉네임 */
[id^="entry"] .tt_txt_user {
  font-size: 11px !important;
  font-weight: 600;
  color: #222;
  display: block;
  margin-bottom: 10px;
}

/* 실제 입력 영역 */
[id^="entry"] .tt-cmt {
  min-height: 90px;
  font-size: 12px;
  line-height: 1.7;
  outline: none;
  color: #333;
}

/* placeholder */
[id^="entry"] .tt-cmt:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  font-size: 12px;
  pointer-events: none;
}

/* 아래 버튼 영역 */
[id^="entry"] .tt-box-write {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 0px;
}

/* 비밀글 */
[id^="entry"] .tt-xe-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #999;
  cursor: pointer;
}

[id^="entry"] .tt-xe-label input {
  accent-color: #aaa;
  cursor: pointer;
}

/* 등록 버튼 */
[id^="entry"] .tt-btn_register {
  background: #f3f3f3;
  color: #888;
  border: none;
  border-radius: 999px;
  padding: 9px 24px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;

}

/* hover */
[id^="entry"] .tt-btn_register:hover:enabled {
  background: #ebebeb;
  color: #222;
}

/* 비활성화 */
[id^="entry"] .tt-btn_register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 목록 전체 */
.tt-area-reply {
  margin-top: 10px;
}

/* 댓글 하나 */
.tt-item-reply {
  padding: 18px 0;
  border-bottom: 1px solid #f2f2f2;
}

.tt-wrap-info {
  margin-top: -6px !important;
}

/* 이름 */
.tt-wrap-cmt .tt-link-user {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

/* 날짜 */
.tt-wrap-cmt .tt_date {
  font-size: 9px;
  color: #aaa;
}

/* 본문 */
.tt-wrap-cmt .tt_desc {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.7;
}

/* 답글 버튼 */
.tt-link-comment .tt_txt_g {
  font-size: 9px;
  color: #999;
  margin-top: 3px;
}

/* 수정/삭제 버튼 */
.tt-box-modify {
  opacity: 0.5;
}

/* 답글 들여쓰기 */
.tt-list-reply-comment {
  margin-left: 18px;
}

/* 모바일 */
@media (max-width: 600px) {

  [id^="entry"] .tt-comment-cont {
    padding: 0 16px;
  }

  [id^="entry"] .tt-cmt {
    min-height: 70px;
  }

  [id^="entry"] .tt-btn_register {
    padding: 8px 18px;
    font-size: 11px;
  }

}

/* 등록 버튼 글자 세로 깨짐 수정 */
[id^="entry"] .tt-btn_register {
  min-width: 60px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  writing-mode: horizontal-tb !important;

  line-height: 1;
  font-size: 11px !important;
}


/* =========================
   페이지네이션
========================= */

.paging .numbox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.paging .num {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #4b4a4d;
}

.paging .selected {
    font-weight: bold;
}

/* =========================
   모바일
========================= */

@media screen and (max-width: 768px) {

    #container {
        padding: 40px 20px;
    }

    #main {
        grid-template-columns: repeat(3, 1fr);
    }

    .guest-info-fields {
        flex-direction: column;
    }

    .reply-item {
        margin-left: 15px;
    }
}
/* =========================
   썸네일 hover 제목
========================= */

.thumbnail {
    position: relative;
    overflow: hidden;
}
.thumb-title {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
    box-sizing: border-box;

    background: rgba(0,0,0,0.45);
    color: white;

    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;

    border-radius: 10px;

    opacity: 0;
    transition: 0.25s;
}

.thumbnail:hover .thumb-title {
    opacity: 1;
}


/* =========================
   보호글
========================= */
/* =========================
   썸네일 hover 제목
========================= */

.thumbnail {
    position: relative;
    overflow: hidden;
}

.thumb-title {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
    box-sizing: border-box;

    background: rgba(0,0,0,0.45);
    color: white;

    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;

    border-radius: 10px;

    opacity: 0;
    transition: 0.25s;
}

.thumbnail:hover .thumb-title {
    opacity: 1;
}

/* =========================
   보호글
========================= */
.protected-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;
    color: #999;

    font-size: 18px;
    border-radius: 10px;
}


.container_postbtn .btn_menu_toolbar {display: none;}
