@charset "utf-8";

@font-face {
    font-family: 'Cafe24Ohsquare';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Cafe24Ohsquare.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.upskin-version {
    font-size: 0.8em;
    font-family: var(--f-pre);
    color: var(--content-font-color);
    opacity: 0.2;
    margin-right: 5px;
}

/* =============================== */
/*	카테고리	*/
/* =============================== */

ul.upcategories {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

a.upcate {
    background: var(--color-bg);
    padding: 2px 15px;
    border-radius: 20px;
    border: 1px solid var(--card-border-color);
    font-size: 12px;
    font-family: var(--f-pre);
    color: var(--btn-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

a.upcate.point {
    background: var(--color-accent);
    color: var(--color-bg);
}


/* =============================== */
/*	상단 검색창 & 글쓰기 영역	*/
/* =============================== */

.thumb-guide {
    display: flex;
    justify-content: space-between;
    margin: 0px 0px 15px;
}

.thumb-sch-input {
    width: 200px;
}

.thumb-ui-btn {
    display: flex;
    gap: 2px;
}

.thumb-btn {
    text-align: center;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-radius: var(--btn-secondary-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    transition: all 0.2s;
    font-family: 'Pretendard';
    padding: 7px 12px;
    height: 30px;
}

.thumb-btn:hover {
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
}

.thumb-btn.admin {
    background: var(--error-color);
    color: var(--white);
}

.thumb-btn.admin:hover {
    color: var(--btn-accent-text);
    background: var(--btn-accent-bg);
}

/* =============================== */
/*	하단 체크박스 & 선택 삭제	*/
/* =============================== */

.thumb-chk-option {
    display: flex;
    gap: 2px;
}

.chk_all {
    height: 25px;
    width: 25px;
    color: var(--btn-primary-text);
    background: var(--card-bg-color);
    border: 1px inset var(--border-light) !important;
    border-radius: 10px !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.select-trash-btn {
    height: 25px;
    width: 25px;
    font-size: 0.8em;
    line-height: 1;
    color: var(--btn-primary-text);
    background: var(--card-bg-color);
    border: 1px inset var(--border-light) !important;
    border-radius: 10px !important;
}

.select-trash-btn:hover {
    background: linear-gradient(45deg, rgba(121, 121, 121, 1) 35%, rgba(199, 199, 199, 1) 100%);
    border: 1.5px inset var(--color-card);
    color: var(--color-card);
}

/* =============================== */
/*	리스트	*/
/* =============================== */

/* 갤러리 리스트 */
#bo_gall {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.gall_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 이미지 박스: 부모 .gall_li 전체를 채움 */
.gall_box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.gall_li {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--card-border-color);
  background: var(--card-bg-color);
  box-shadow: 0px 6px 4px rgba(0, 0, 0, 0.2);
}

/* 이미지 호버 시 확대 */
.gall_li:hover .gall_box {
    transform: scale(1.05);
}

/* 체크박스: 왼쪽 상단에 겹치도록 */
.gall_chk {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
    padding: 5px;
}

/* 이미지가 없을 때(no-img) - 중앙에 큰 텍스트 */
.gall_box.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: transparent; 배경 투명 */
}

.no-img-title {
    display: inline-block;
    font-size: 2em;
    text-align: center;
    transform: scale(3);
    transform-origin: center;
    color: var(--color-ttext);
    font-family: 'Cafe24Ohsquare';
}


/* 정보 오버레이: 아래쪽에 겹치도록 */
.info_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    color: var(--btn-primary-text);
    z-index: 10;
}

.info_overlay .info span.name {
    flex: 1;
    color: var(--accent-color);
}

.cate {
    font-family: var(--f-pre);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    margin: 0 auto;
    margin-top: 30px;
    border-radius: 10px;
    font-size: 10px;
    padding: 0px 6px;
    text-align: center;
    width: fit-content;
}

.ov-subject {
    font-family: var(--f-pre);
    font-size: 1.4em;
    font-weight: 700;
    margin-left: 5px;
    margin-top: 2px;
    color: var(--white);
}

.info {
    font-family: var(--f-pre);
    font-size: 1.0em;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    margin-left: 5px;
}

.info .like_area {
    display: flex;
    align-items: center;
    gap: 2px;
}

.info .like_area .like_btn {
    padding: 0px 1px;
    font-size: 10px;
}



/* =============================== */
/*	뷰 스킨	*/
/* =============================== */


.thumb-theme-box {
    display: block;
    position: relative;
    padding: 50px;
    box-sizing: border-box;
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    color: var(--content-font-color);
    border-radius: var(--card-border-radius);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0px 6px 4px rgba(0, 0, 0, 0.2);
}

.thumb-maintitle {
    font-family: var(--title-font-family);
    font-size: 2.5rem;
    font-weight: 700;
    padding: 10px;
    text-align: center;
    line-height: 1.3;
    color: var(--title-font-color);
}

.thumb-subtitle {
    color: var(--accent-color);
    width: fit-content;
    margin: 0 auto;
    margin-top: 10px;
    padding: 2px 13px;
    border-radius: 10px;
}


.thumb-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: var(--f-pre);
    font-size: 13px;
    font-weight: 300;
    gap: 5px;
    color: var(--text-muted);
}

.thumb-name .sv_member {
    color: var(--content-font-color);
}

.content-box {
    padding: 0px 50px 50px;
    font-size: 1rem;
    line-height: 1.7;
}

.content_area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--content-font-color);
    white-space: pre-wrap;
    padding: 20px;
}

.thumb-theme-box .content-box .content_area a:link,
.thumb-theme-box .content-box .content_area a:visited {
    color: var(--accent-color);
}

.hr-line {
    display: block;
    border: 0px;
    border-top: 1px solid;
    width: 50%;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    border-image: linear-gradient(to right, var(--color-card) 10%, var(--text-muted) 50%, var(--color-card) 90%);
    border-image-slice: 1;
}

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

.thumbnail {
    max-width: 400px;
    margin: 20px;
    max-height: 400px;
}

.unused-images-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unused-images-area img {
    max-width: 100%;
    height: auto;
    width: fit-content;
    border-radius: 8px;
}

.view-option {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.view-option-btn {
    display: flex;
    flex-direction: row;
    gap: 3px;
}


/* =============================== */
/*	댓글	*/
/* =============================== */

.comment_area {
    padding: 15px;
}

.board-comment-form {
    display: flex;
    gap: 10px;
    margin: 10px 0px;
}

.board-comment-list {
    font-family: var(--f-pre);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.co-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.co-name a {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--title-font-family);
    color: var(--accent-color);
}

.co-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reply-to-info {
    display: flex;
    align-items: center;
    gap: 5px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-top: 5px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.co-inner-group {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.co-inner {
    padding: 10px;
    color: var(--content-font-color);
    font-family: var(--content-font-family);
}

.co-time {
    color: var(--accent-color);
    line-height: 20px;
}

.co-info {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    font-size: 0.85rem;
    opacity: 0.6;
    color: var(--content-font-color);
    font-family: var(--f-pre);
}

.co-info a {
    color: var(--color-border) !important;
}

.co-time {
    color: var(--accent-color);
    line-height: 20px;
}

.c-submit {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 80px;
}

#bo_v .btn_confirm {
    text-align: center;
    margin-top: 0;
    padding: 0;
}

.c-secret {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--content-font-color);
    background: var(--card-bg-color);
    border: 1px inset var(--card-border-color);
    font-size: 1rem;
    border-radius: var(--card-border-radius);
    height: 30px;
}

.board-comment-form .c-submit .btn_confirm button#btn_submit {
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
    border: 1px inset var(--btn-primary-text);
    font-size: 1rem;
    font-weight: bold !important;
    border-radius: var(--btn-primary-radius);
    height: 65px;
    width: 100%;
}

.bo_v_bot {
    display: flex;
    justify-content: center;
}

.bo_v_com {
    display: flex;
    justify-content: flex-end;
    height: 80px;
    width: 900px;
    align-items: center;
    gap: 2px;
}

.bo_v_com .ui-btn {
    color: var(--color-text) !important;
    background: var(--color-comment-bg) !important;
    border: 1px inset var(--border-light) !important;
    font-size: 12px !important;
    font-family: 'Pretendard-Regular' !important;
    border-radius: 10px !important;
    height: 45px !important;
    width: 60px !important;
    line-height: 43px;
}

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

/* 블러 처리 */
.gall_box.adult-blur {
    filter: blur(10px);
    transition: filter 0.3s;
}

.gall_li:hover .gall_box.adult-blur {
    filter: blur(5px);
}

div#bo_v, .thumb-board-skin {
    padding: 50px 0;
}

.background-container {
    background-size: cover;
    background-position: center center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: -1;
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(3px);
}


/* 모달 컨테이너 */
#imageModal {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* 어두운 배경 */
  align-items: center; /* 수직 중앙 정렬 */
  justify-content: center; /* 수평 중앙 정렬 */
  z-index: 9999;
}
/* 모달 콘텐츠 이미지 */
#imageModal .modal-content {
  max-width: 90%;
  max-height: 90%;
  border: 0;
}
/* 닫기, 이전, 다음 버튼 스타일 (원하는 대로 수정) */
#imageModal .close, #imageModal .prev, #imageModal .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

#imageModal .close {
  top: 20px;
  right: 30px;
}

#imageModal .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#imageModal .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}



@media screen and (max-width: 768px) {
    .thumb-guide .thumb-sch .thumb-sch-input {
        max-width: 130px;
    }

    .thumb-guide .thumb-sch .thumb-sch-select {
        max-width: 100px;
    }

    .gall_row {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumb-theme-box {
        padding: 20px;
    }

    .thumb-theme-box .content-box {
        padding: 0;
    }
}