@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

.ui-btn { 
    display: inline-flex !important; justify-content: center; align-items: center; 
    height: 35px !important; line-height: normal !important; padding: 0 20px; vertical-align: middle;
}
.ui-btn.small { height:26px !important; font-size:11px !important; padding: 0 10px; }
.ui-mmb-button { text-align: center; padding-top: 0; margin-bottom: 10px; position: relative; }

#navi_category { text-align: center; padding: 5px 0; }
#navi_category ul { padding: 0; margin: 0; }
#navi_category li { display: inline-block; padding: 0 5px; }
#navi_category a { display: inline-block; padding: 5px 12px; background: #f5f5f5; border-radius: 15px; font-size: 12px; color: #666; transition: 0.2s; }
#navi_category a:hover, #navi_category li.on a { background: var(--point-color); color: #fff; }

.ui-paging { margin-bottom: 5px; padding-bottom: 0; text-align: center; }
.ui-paging a, .ui-paging strong { 
    display: inline-block; 
    min-width: 20px; height: 20px; line-height: 20px; 
    padding: 0 !important; 
    background: transparent !important; 
    border-radius: 0; 
    margin: 0 2px; 
    color: #ccc; 
    text-decoration: none; border: none; vertical-align: middle; 
    font-size: 11px; 
    transition: 0.2s; 
    box-shadow: none !important; 
}
.ui-paging strong { 
    background: transparent !important; 
    color: #555; 
    font-weight: bold; 
    box-shadow: none; 
}
.ui-paging a:hover { 
    background: transparent !important; 
    color: #555; 
}

.gallery-wrapper {
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 10px !important; 
    padding: 10px 0 !important; max-width: 700px; 
    margin: 0 auto;
}
.gallery-item {
    position: relative; border-radius: 8px; overflow: hidden; background: #fff;
    /* 목록 아이템은 구분을 위해 약한 그림자 유지 (원하시면 box-shadow: none; 으로 변경 가능) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(0,0,0,0.1); }
.item-link { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }

.thumb-container {
    position: relative; width: 100%; padding-top: 142.86%; background-color: #f9f9f9; overflow: hidden;
}
.thumb-container img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}

.text-thumb-box {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 15px;
    box-sizing: border-box; background-color: #fff !important; color: #444; 
    font-size: 11px; line-height: 1.6; text-align: left; 
    word-break: break-all; overflow: hidden; z-index: 2;
}
.text-thumb-box * { max-width: 100% !important; box-sizing: border-box !important; }
.text-thumb-box img, .text-thumb-box video, .text-thumb-box iframe { display: none !important; }
.text-thumb-box p { margin: 0 0 5px 0; }

.cate-badge {
    position: absolute; top: 5px; right: 5px; background: rgba(151, 195, 209, 0.9); color: #fff;
    padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: bold; z-index: 10;
}
.item-overlay {
    display: flex; flex-direction: column; justify-content: flex-end;
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px; box-sizing: border-box; z-index: 5; opacity: 1; transition: 0.3s;
}
.ov-title { 
    color: #fff; font-size: 13px; font-weight: bold; margin-bottom: 3px; 
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: 0.3s;
}
.ov-date { color: rgba(255,255,255,0.8); font-size: 10px; }
.gallery-item:hover .item-overlay { height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); }
.gallery-item:hover .ov-title { white-space: normal; text-overflow: clip; overflow: visible; }

.cmt-toolbar {
    display: flex; gap: 5px; padding: 5px 0 5px 5px;
    background: #fdfdfd; border: 1px solid #f5f5f5; 
    border-bottom: none; 
    border-radius: 10px 10px 0 0;
}
.btn-cmt-tool {
    height: 28px; border-radius: 6px; 
    padding: 0 10px; 
    background: #fff; border: 1px solid #ddd;
    color: #555; font-size: 11px; cursor: pointer; 
    display: flex; justify-content: center; align-items: center;
}
.btn-cmt-tool:hover { background: #eee; color: #000; }

.input-comment textarea { 
    border-top-left-radius: 0 !important; 
    border-top-right-radius: 0 !important;
    margin-top: 0 !important; 
    width: 100% !important; height: 60px; border: none; background: #f5f5f5; 
    padding: 15px; box-sizing: border-box; resize: none; font-size: 13px; outline: none;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
}

.bottom-control-box {
    max-width: 700px; margin: 20px auto 50px auto; 
    display: flex; justify-content: space-between; 
    gap: 5px; padding: 0 5px;
}
.ctrl-btn {
    width: 32px !important; height: 32px !important; 
    border-radius: 5px; 
    background: transparent !important; 
    border: none; 
    color: #ccc !important; 
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 14px; transition: 0.2s;
    box-shadow: none !important;
}

.ctrl-btn.write { background: transparent !important; color: #ccc !important; border-color: transparent; } 

.ctrl-btn:hover { 
    background: transparent !important; 
    color: #333 !important; 
    transform: translateY(-2px); 
}

.ctrl-btn.txtggu:hover { background: transparent !important; color: var(--point-color) !important; }
.ctrl-btn.emoticon:hover { background: transparent !important; color: #ff9f43 !important; }


.log-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 9000; overflow-y: auto;
}
.log-modal-content {
    position: relative; width: 90%; max-width: 720px; /* [ra0] 600px → 720px (가로 20% 넓게) */ margin: 60px auto; background: #fff;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); overflow: hidden;
}
.btn-modal-close {
    position: absolute; top: 15px; right: 15px; background: #f0f0f0; border: none; color: #555;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 32px;
    text-align: center; z-index: 200; transition: 0.2s;
}
.btn-modal-close:hover { background: #d3393d; color: #fff; transform: rotate(90deg); }


#log_list .item { margin: 0 !important; padding: 0 !important; width: 100% !important; border: none !important; }
.item-inner { box-shadow: none !important; margin: 0 !important; border: none !important; background: transparent !important; }
.ui-pic .pic-header { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 30px; margin-right: 40px; border-bottom: 1px solid #f5f5f5;
}
.ui-pic .pic-header .title-area { 
    font-size: 15px; color: #333; font-weight: bold; display: flex; flex-direction: column; padding-left: 5px;
}
.ui-pic .pic-header .date-area { font-size: 11px; color: #999; font-weight: normal; margin-top: 4px; }
.ui-pic .pic-header a.del, .ui-pic .pic-header a.mod {
    font-size: 11px; color: #999; background: #f9f9f9; padding: 5px 10px; border-radius: 5px;
    text-decoration: none; margin-left:5px;
}
.ui-pic .pic-header a.del:hover { background: #fee; color: #d3393d; }
.ui-pic .pic-header a.mod:hover { background: #eef; color: var(--point-color); }

.pic-data { width: 100% !important; padding: 10px 30px 25px 30px; box-sizing: border-box; text-align: center; }
.pic-data img { max-width: 100% !important; height: auto !important; border-radius: 10px; margin: 0 auto; display: block; cursor: zoom-in; }
.pic-data .theme-box {
    height: auto !important; max-height: none !important; overflow: visible !important;
    padding: 5px 5px !important; margin-top: 10px; 
    font-size: 14px; line-height: 1.7; color: #444; text-align: left; 
    white-space: pre-wrap; word-break: break-all; background: transparent; border: none;
}
.swiper { width: 100%; padding-bottom: 10px; }
.swiper-slide { text-align: center; background: transparent; display: flex; justify-content: center; align-items: center; }
.swiper-button-next, .swiper-button-prev { color: var(--point-color) !important; transform: scale(0.6); }
.swiper-pagination-bullet-active { background: var(--point-color) !important; }

.ui-comment { margin-top: 10px; background: #fff; padding: 10px 25px 40px 25px !important; width: 100% !important; box-sizing: border-box; }
.item-comment { 
    position: relative; background: #f8f9fa !important; border: none !important;
    border-radius: 15px !important; padding: 20px 25px !important; margin-bottom: 12px; 
    width: 100% !important; box-sizing: border-box; display: block !important; box-shadow: none !important;
}
.item-comment.item-reply { margin-left: 15px; background: #f9f9f9 !important; width: auto !important; }
.co-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.03); }
.co-header strong { font-size: 13px; color: #444; font-weight: bold; }
.co-footer { text-align: right; margin-top: 5px; }
.co-footer .date { font-size: 11px; color: #aaa; margin-right: 5px; }
.co-footer a.btn-cmt { 
    display: inline-block; font-size: 11px; padding: 2px 7px; 
    background: #fff; border: 1px solid #eee; border-radius: 12px; color: #888; text-decoration: none; margin-left: 3px; font-weight: normal; transition: 0.2s;
}
.co-footer a.btn-cmt:hover { background: var(--point-color); color: #fff; border-color: var(--point-color); }
.co-content { font-size: 13px; color: #555; line-height: 1.6; margin: 10px 0 5px 0; padding: 0 2px; }

.comment-img-grid {
    display: grid; gap: 2px;
    width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #eee;
    margin-top: 5px; margin-bottom: 10px;
}
.comment-img-grid img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; transition: 0.2s; }
.comment-img-grid img:hover { filter: brightness(0.95); }

.grid-1 { grid-template-columns: 1fr; aspect-ratio: 16/9; }
.grid-2 { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; height: 200px !important; }
.grid-3 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; grid-template-rows: 1fr !important; height: 200px !important; } 
.grid-3 img:nth-child(1), .grid-3 img:nth-child(2), .grid-3 img:nth-child(3) { grid-area: auto !important; height: 100% !important; }
.grid-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; grid-template-rows: 1fr !important; height: 200px !important; aspect-ratio: auto !important; }

.item-comment-form-box { display: none; margin-top: 10px; padding: 0; }
.input-comment textarea { 
    width: 100% !important; height: 60px; border: none; background: #f5f5f5; 
    border-radius: 10px; padding: 15px; box-sizing: border-box; resize: none; font-size: 13px; outline: none;
}
.input-comment textarea:focus { background: #f0f0f0; }
.btn_confirm .ui-comment-submit {
    background: var(--point-color); 
    color: #333;
    border: 1px solid rgba(0,0,0,0.1); 
    padding: 0 25px; height: 35px;
    border-radius: 20px; cursor: pointer; font-weight: bold; font-size: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05); display: inline-flex; align-items: center; justify-content: center;
}
.btn-cmt-toggle {
    display: block; width: 100%; padding: 10px 0; text-align: center;
    background: #fdfdfd; border: 1px dashed #ddd; border-radius: 10px;
    color: #888; font-size: 12px; cursor: pointer; transition: 0.2s; margin-top: 5px; 
}
.btn-cmt-toggle:hover { background: #f5f5f5; color: #555; border-style: solid; }

#img-lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 99999;
    justify-content: center; align-items: center; flex-direction: column;
}
#img-lightbox .lightbox-swiper { width: 100%; height: 100%; }
#img-lightbox .swiper-slide { display: flex; justify-content: center; align-items: center; height: 100%; }
#img-lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
#img-lightbox .close-btn {
    position: absolute; top: 30px; right: 30px; color: #fff; font-size: 50px;
    cursor: pointer; opacity: 0.8; transition: 0.2s; line-height: 1; z-index: 100000;
}
#img-lightbox .close-btn:hover { opacity: 1; transform: scale(1.1); color: #d3393d; }

@media all and (max-width: 1024px) {
    .gallery-wrapper { grid-template-columns: repeat(2, 1fr) !important; padding: 0 10px !important;}
    .bottom-control-box { padding: 0 20px; } 
    .log-modal-content { width: 95%; margin: 40px auto; }
 
}

@keyframes modalUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes modalDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}

@keyframes bgFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bgFadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }

.log-modal-overlay.open-anim { animation: bgFadeIn 0.4s forwards; }
.log-modal-overlay.close-anim { animation: bgFadeOut 0.3s forwards; }

.log-modal-content.open-anim { animation: modalUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.log-modal-content.close-anim { animation: modalDown 0.3s ease-in forwards; }

.log-modal-overlay { cursor: pointer; }
.log-modal-content { cursor: default; }


.item-overlay {
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100%; 
    
    padding: 20px; 
    box-sizing: border-box; 
    z-index: 5;
    
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
}

.item-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0; 
    z-index: -1; 
    transition: opacity 0.8s ease;
}

.gallery-item:hover .item-overlay::before {
    opacity: 1;
}

.ov-title { 
    color: #fff; 
    font-size: 13px; 
    font-weight: bold; 
    margin-bottom: 5px; 
    line-height: 1.5; 
    
    display: block;
    max-height: 1.5em;
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    transition: max-height 2s ease;
}

.ov-date { 
    color: rgba(255,255,255,0.7); 
    font-size: 11px; 
    opacity: 0.7; 
    transition: opacity 0.5s ease;
}


.gallery-item:hover .ov-title {
    white-space: normal; 
    text-overflow: clip; 
    
    max-height: 200px; 
}

.gallery-item:hover .ov-date { 
    opacity: 1; 
}

.gallery-item .item-link::after { display: none !important; }

#img-lightbox .swiper-slide::after,
#img-lightbox .swiper-slide:hover::after {
    content: none !important;
    display: none !important;
}


.log-modal-content .swiper-slide {
    position: relative;
}

.sch_simple_box form {
    display: flex;
    align-items: center;
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    padding: 0;
    gap: 5px;
}

.sch_simple_box form:hover, 
.sch_simple_box form:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.sch_input {
    border: 1px solid rgba(0,0,0,0.08); 
    background: rgba(255, 255, 255, 0.5);
    height: 30px; 
    width: 110px; 
    font-size: 12px;
    color: #555;
    outline: none;
    border-radius: 15px;
    padding: 0 12px; 
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.sch_input:hover, .sch_input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.2);
    width: 130px; 
}
.sch_input::placeholder { color: #bbb; }

.sch_btn {
    width: 32px; height: 32px;
    background: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #ccc; 
    display: flex; justify-content: center; align-items: center;
    font-size: 14px;
    transition: 0.2s;
}

.sch_btn:hover {
    color: #333;
    transform: translateY(-2px);
}

/* 모바일 대응 */
@media all and (max-width: 400px) {
    .sch_input { width: 80px; }
    .sch_input:hover, .sch_input:focus { width: 100px; }
}

.tile-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}

.tile-wrapper .item-box {
    flex-grow: 1 !important;
    height: 250px !important;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden; 
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #eee;     
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.tile-wrapper .tile-span-3 { flex-basis: 20%; } 
.tile-wrapper .tile-span-4 { flex-basis: 30%; } 
.tile-wrapper .tile-span-6 { flex-basis: 50%; flex-grow: 2; } 
.tile-wrapper .tile-span-8 { flex-basis: 70%; flex-grow: 3; } 

.tile-wrapper .thumb-container {
    width: 100%; height: 100% !important;
    padding-top: 0 !important;
    background: transparent !important;
    overflow: hidden;
}

.gallery-wrapper .thumb-container img,
.tile-wrapper .thumb-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    display: block;
    transform: scale(1.02); 
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden; 
    -webkit-font-smoothing: subpixel-antialiased;
    transition: transform 0.5s ease;
}

.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img {
    transform: scale(1.1);
}

.tile-wrapper .item-overlay {
    opacity: 0 !important; 
    transition: opacity 0.3s ease;
}

.tile-wrapper .item-box:hover .item-overlay {
    opacity: 1 !important; 
}

.tile-wrapper .cate-badge {
    opacity: 0 !important; 
    transition: opacity 0.3s ease;
}

.tile-wrapper .item-box:hover .cate-badge {
    opacity: 1 !important; 
}

.theme-box img {
    display: inline-block !important; 
    margin: 0 !important;             
    vertical-align: middle !important;
    border-radius: 0 !important;      
    cursor: default !important; 
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

.gallery-wrapper .thumb-container,
.tile-wrapper .thumb-container {
    background-color: #ffffff !important; 
    border: 1px solid #eee; /* 아주 연한 테두리로 경계 구분 */
    box-sizing: border-box;
}

@media all and (max-width: 1024px) {
    .tile-wrapper .item-box { 
        height: 200px !important; 
        flex-basis: 48% !important; 
    }
}


/* =========================================================
   커스텀 추가 : 해시태그 + 카드 호버 리뉴얼
   (파일 끝에 있어야 위쪽 기본값을 덮어씁니다)
   ========================================================= */

/* ---------- 카드 호버 : 어둡게 대신 밝게 + 글로우 ---------- */
.gallery-item {
    transition: transform .35s cubic-bezier(.2,.8,.3,1),
                box-shadow .35s ease;
}
.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.18),
        0 0 0 1px rgba(var(--point-rgb), 0.55),
        0 0 24px rgba(var(--point-rgb), 0.45),
        0 0 48px rgba(var(--point-rgb), 0.22);
    z-index: 20;
}

/* 이미지 : 확대 + 밝아짐 */
.gallery-wrapper .thumb-container img,
.tile-wrapper .thumb-container img {
    transition: transform .6s cubic-bezier(.2,.8,.3,1), filter .4s ease;
}
.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img {
    transform: scale(1.09);
    filter: brightness(1.12) saturate(1.08) contrast(1.02);
}

/* 오버레이 : 전체를 덮던 어두운 판을 걷어내고 아래쪽 그라데이션만 */
.item-overlay {
    padding: 14px 12px;
    background: linear-gradient(to top,
        rgba(24, 16, 6, 0.88) 0%,
        rgba(24, 16, 6, 0.55) 32%,
        rgba(24, 16, 6, 0.10) 60%,
        transparent 85%);
}
.item-overlay::before { display: none !important; }
.gallery-item:hover .item-overlay::before { opacity: 0 !important; }

.ov-text-wrap { position: relative; z-index: 2; }

.ov-title {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
    max-height: none;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    transform: translateY(12px);
    transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.ov-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
    transform: translateY(12px);
    transition: transform .35s cubic-bezier(.2,.8,.3,1) .05s;
}
.ov-tags em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: .02em;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(var(--point-rgb), 0.55);
}
.ov-date {
    font-size: 10px;
    letter-spacing: .04em;
    opacity: 1;
    transform: translateY(12px);
    transition: transform .35s cubic-bezier(.2,.8,.3,1) .1s;
}
.gallery-item:hover .ov-title,
.gallery-item:hover .ov-tags,
.gallery-item:hover .ov-date { transform: translateY(0); }

/* 호버 시 카테고리 배지는 물러나게 (태그와 겹침 방지) */
.gallery-wrapper .cate-badge { transition: opacity .3s ease; }
.gallery-wrapper .item-box:hover .cate-badge { opacity: 0; }

/* ---------- 해시태그 필터 바 ---------- */
.tag-bar {
    max-width: 700px;
    margin: 4px auto 14px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0 4px;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    letter-spacing: .02em;
    padding: 5px 11px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--point-color);
    background: rgba(var(--point-rgb), 0.06);
    border: 1px solid rgba(var(--point-rgb), 0.25);
    transition: all .25s ease;
    white-space: nowrap;
}
.tag-pill:hover {
    color: var(--point-color);
    border-color: rgba(var(--point-rgb), 0.6);
    box-shadow: 0 0 12px rgba(var(--point-rgb), 0.35);
    transform: translateY(-1px);
}
.tag-pill.on {
    color: #fff;
    background: var(--point-color);
    border-color: var(--point-color);
    box-shadow: 0 0 14px rgba(var(--point-rgb), 0.45);
}
.tag-num { font-size: 9px; opacity: .6; }
.tag-pill.on .tag-num { opacity: .85; }

.tag-active-note {
    max-width: 700px;
    margin: 0 auto 14px auto;
    text-align: center;
    font-size: 11px;
    color: rgba(var(--point-rgb), 0.85);
}
.tag-active-note span { color: var(--point-color); font-weight: bold; }
.tag-clear {
    margin-left: 8px;
    font-size: 10px;
    text-decoration: none;
    color: rgba(var(--point-rgb), 0.7);
    border-bottom: 1px solid rgba(var(--point-rgb), 0.3);
}
.tag-clear:hover { color: var(--point-color); border-color: var(--point-color); }

/* ---------- 모달 / 뷰 페이지 안 해시태그 ---------- */
.log-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 4px 0;
}
.log-tag {
    font-size: 11px;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--point-color);
    background: rgba(var(--point-rgb), 0.07);
    border: 1px solid rgba(var(--point-rgb), 0.22);
    transition: all .25s ease;
}
.log-tag:hover {
    color: #fff;
    background: var(--point-color);
    border-color: var(--point-color);
    box-shadow: 0 0 12px rgba(var(--point-rgb), 0.4);
}

/* ---------- 글쓰기 : 해시태그 입력 ---------- */
.tag-input-wrap {
    max-width: 600px;
    margin: 0 auto 15px auto;
    text-align: left;
}
.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}
.tag-chips:empty { margin-bottom: 0; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--point-color);
}
.tag-chip button {
    border: 0;
    background: rgba(255,255,255,0.25);
    color: #fff;
    width: 14px;
    height: 14px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
}
.tag-chip button:hover { background: rgba(255,255,255,0.5); }
#tag_typer {
    width: 100%;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}
.tag-help {
    font-size: 10px;
    color: rgba(var(--point-rgb), 0.5);
    margin-top: 4px;
    padding-left: 2px;
}

@media all and (max-width: 1024px) {
    .tag-bar, .tag-active-note { max-width: 100%; padding: 0 10px; }
    .gallery-item:hover { transform: translateY(-3px) scale(1.02); }
}


/* =========================================================
   이미지 배치 : 가로 슬라이드 + 썸네일 스트립 / 세로 일렬
   ========================================================= */

/* ---------- 가로 배치 ---------- */
.slider-with-thumbs { position: relative; }
.slider-with-thumbs.has-thumbs {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.slider-with-thumbs .mySwiper {
    flex: 1 1 auto;
    min-width: 0;
}

.thumb-swiper {
    flex: 0 0 78px;
    width: 78px;
    max-height: 560px;
    box-sizing: border-box;
}
.thumb-swiper .swiper-wrapper { align-items: stretch; }
.thumb-swiper .swiper-slide {
    height: auto;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(var(--point-rgb), 0.18);
    opacity: .45;
    transition: opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
    background: rgba(var(--point-rgb), 0.04);
}
.thumb-swiper .swiper-slide img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.thumb-swiper .swiper-slide:hover { opacity: .8; }
.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--point-color);
    box-shadow: 0 0 10px rgba(var(--point-rgb), 0.45);
}

/* ---------- 세로 배치 ---------- */
.vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vertical-gallery .vg-item { line-height: 0; }
.vertical-gallery .vg-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    transition: filter .3s ease;
}
.vertical-gallery .vg-item img:hover { filter: brightness(1.05); }

/* ---------- 모바일 : 썸네일을 아래쪽 가로줄로 ---------- */
@media all and (max-width: 1024px) {
    .slider-with-thumbs.has-thumbs {
        flex-direction: column;
        gap: 8px;
    }
    .thumb-swiper {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
    }
    .thumb-swiper .swiper-slide { width: 64px; }
    .thumb-swiper .swiper-slide img { height: 64px; }
}


/* =========================================================
   폰트 / 메이슨리 / 19금 표시
   (head.php 에서 웹폰트를 이미 불러오고 있어야 합니다)
   ========================================================= */

/* ---------- 폰트 ----------
   제목 : Cinzel Decorative + 부크크 명조
   본문 : EB Garamond + 리디바탕
   라벨 : Amarante + 빛의계승자체
------------------------------ */

/* 본문 계열 — 게시판 전체 기본 */
#load_log_board,
#load_log_board input,
#load_log_board textarea,
#load_log_board select,
#load_log_board button,
.log-modal-content,
.theme-box,
.co-content,
.text-thumb-box {
    font-family: 'EB Garamond', 'Ridibatang', serif;
}

/* 제목 계열 */
.ov-title,
.ui-pic .pic-header .title-area > span:first-child,
.polaroid-title {
    font-family: 'Cinzel Decorative', 'BookkMyungjo', serif;
    letter-spacing: 0.01em;
}

/* 라벨 계열 — 태그, 카테고리, 컨트롤 버튼 */
.tag-pill,
.log-tag,
.tag-chip,
.ov-tags em,
.cate-badge,
.ctrl-btn,
#navi_category a,
.sch_input {
    font-family: 'Amarante', 'HeirofLightRegular', serif;
    letter-spacing: 0.03em;
}

/* 날짜는 숫자 위주라 본문 서체가 더 안정적 */
.ov-date,
.ui-pic .pic-header .date-area,
.co-footer .date {
    font-family: 'EB Garamond', 'Ridibatang', serif;
}

/* ---------- 호버 : 밝아짐 + 확대 + 글로우 (강화) ---------- */
.gallery-item:hover {
    transform: translateY(-7px) scale(1.04);
    box-shadow:
        0 16px 34px rgba(0,0,0,0.20),
        0 0 0 1px rgba(var(--point-rgb), 0.65),
        0 0 26px rgba(var(--point-rgb), 0.55),
        0 0 56px rgba(var(--point-rgb), 0.28);
}
.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img {
    transform: scale(1.10);
    filter: brightness(1.16) saturate(1.10) contrast(1.03);
}

/* ---------- 19금 : 목록에서 흐리게 + 붉은 마크 ---------- */
.gallery-item.is-adult .thumb-container img,
.gallery-item.is-adult .text-thumb-box {
    filter: blur(16px) saturate(0.85);
    transform: scale(1.12);
    transition: filter .35s ease, transform .6s cubic-bezier(.2,.8,.3,1);
}
/* 마우스를 올려도 계속 가려둡니다. 보려면 글을 열어야 합니다. */
.gallery-wrapper .item-box.is-adult:hover .thumb-container img,
.tile-wrapper .item-box.is-adult:hover .thumb-container img {
    filter: blur(13px) saturate(0.9) brightness(1.1);
    transform: scale(1.14);
}

.adult-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #ffffff;
    border: 5px solid #e0393f;
    color: #3a3a3a;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 3px 10px rgba(0,0,0,0.28);
    pointer-events: none;
    user-select: none;
}
.gallery-item.is-adult:hover .adult-badge {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 3px 14px rgba(224,57,63,0.6);
}

/* ---------- 글쓰기 : 19금 체크 ---------- */
.adult-check-wrap {
    max-width: 600px;
    margin: 0 auto 10px auto;
    text-align: left;
}
.adult-check-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #b03636;
    padding: 6px 12px;
    border: 1px solid rgba(217,45,45,0.3);
    border-radius: 999px;
    background: rgba(217,45,45,0.05);
    transition: all .2s ease;
}
.adult-check-wrap label:hover {
    border-color: rgba(217,45,45,0.6);
    background: rgba(217,45,45,0.1);
}
.adult-check-wrap input { margin: 0; accent-color: #d92d2d; }


/* =========================================================
   목록 배치 : 지그재그(메이슨리) / 호버 밝기 최종 정리
   ========================================================= */

/* ---------- 메이슨리 목록 ---------- */
/* 핀터레스트식 벽돌 정렬 : 행을 맞추지 않고, 가장 짧은 칸에 다음 카드를 붙입니다.
   JS(layoutBricks)가 카드마다 left/top 을 직접 계산합니다. */
.masonry-wrapper {
    position: relative;
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}
.masonry-wrapper .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
    margin: 0 !important;
    vertical-align: top;
}
/* JS 가 아직 돌지 않았을 때 겹쳐 보이지 않도록 */
.masonry-wrapper:not(.bricks-ready) .gallery-item { position: relative; margin-bottom: 8px !important; }
/* 메이슨리에서는 썸네일 비율을 고정하지 않고 원본 비율대로 */
.masonry-wrapper .thumb-container {
    position: relative;
    padding-top: 0 !important;
    height: auto !important;
    overflow: hidden;
}
.masonry-wrapper .thumb-container img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}
.masonry-wrapper .text-thumb-box {
    position: relative;
    height: auto;
    min-height: 160px;
}
/* 칸 수와 간격은 JS 안의 BRICK_COLS / BRICK_GAP 에서 정합니다. */

/* ---------- 호버 : 확실히 '밝아지게' ----------
   기존에는 오버레이가 항상 깔려 있어서 어두워 보였습니다.
   이제 평소엔 오버레이를 감추고, 호버 시 아주 옅은 그라데이션만 깔립니다. */
.gallery-wrapper .item-overlay,
.masonry-wrapper .item-overlay {
    opacity: 0;
    background: linear-gradient(to top,
        rgba(20, 13, 4, 0.62) 0%,
        rgba(20, 13, 4, 0.22) 38%,
        transparent 68%);
    transition: opacity .3s ease;
}
.gallery-wrapper .item-box:hover .item-overlay,
.masonry-wrapper .item-box:hover .item-overlay,
.tile-wrapper .item-box:hover .item-overlay {
    opacity: 1 !important;
}
.tile-wrapper .item-overlay {
    background: linear-gradient(to top,
        rgba(20, 13, 4, 0.62) 0%,
        rgba(20, 13, 4, 0.22) 38%,
        transparent 68%);
}

/* 이미지 자체는 확실히 밝게 */
.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img,
.masonry-wrapper .item-box:hover .thumb-container img {
    transform: scale(1.08);
    filter: brightness(1.22) saturate(1.12) contrast(1.02);
}

/* 카드 위로 따뜻한 빛이 한 겹 얹히도록 */
.thumb-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 40%,
        rgba(255, 244, 214, 0.30) 0%,
        rgba(255, 236, 190, 0.12) 45%,
        transparent 75%);
    transition: opacity .35s ease;
}
.gallery-item:hover .thumb-container::after { opacity: 1; }

/* 글자는 그림자로 가독성 확보 (어둡게 덮지 않기 위함) */
.ov-title, .ov-date, .ov-tags em {
    text-shadow: 0 1px 5px rgba(0,0,0,0.75), 0 0 14px rgba(0,0,0,0.45);
}

/* 19금 글은 밝기 효과에서 제외 (가려두는 게 목적) */
.gallery-item.is-adult:hover .thumb-container::after { opacity: 0; }


/* =========================================================
   호버 밝기 최종 확정
   원인 : style.css 89행의
     .gallery-item:hover .item-overlay { height:100%;
       background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); }
   이 규칙이 호버 시 이미지 전체를 검게 덮고 있었습니다.
   선택자 우선순위가 위쪽 규칙들보다 높아서 계속 이겼습니다.
   ========================================================= */

/* 검은 전면 덮개 무력화 — 바닥 쪽에만 아주 옅게 */
.gallery-wrapper .gallery-item:hover .item-overlay,
.tile-wrapper .gallery-item:hover .item-overlay,
.masonry-wrapper .gallery-item:hover .item-overlay,
.gallery-item:hover .item-overlay {
    height: 100% !important;
    background: linear-gradient(to top,
        rgba(18, 11, 3, 0.50) 0%,
        rgba(18, 11, 3, 0.14) 26%,
        rgba(18, 11, 3, 0) 48%) !important;
}

/* 이미지는 확실히 밝게 */
.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img,
.masonry-wrapper .item-box:hover .thumb-container img,
.gallery-item:hover .thumb-container img {
    transform: scale(1.08) !important;
    filter: brightness(1.28) saturate(1.14) contrast(1.02) !important;
}

/* 글자는 그림자로만 가독성 확보 (덮어서 어둡게 하지 않음) */
.ov-title, .ov-date, .ov-tags em {
    text-shadow:
        0 1px 4px rgba(0,0,0,0.85),
        0 0 12px rgba(0,0,0,0.6) !important;
}

/* 성인물 글은 밝기 예외 (가려두는 것이 목적) */
.gallery-item.is-adult:hover .thumb-container img {
    filter: blur(13px) saturate(0.9) brightness(1.05) !important;
    transform: scale(1.14) !important;
}


/* =========================================================
   최종 조정 : 호버 밝기 / 태그 크기 / 하단 툴바
   ========================================================= */

/* ---------- 호버 밝기 완화 ---------- */
.gallery-wrapper .item-box:hover .thumb-container img,
.tile-wrapper .item-box:hover .thumb-container img,
.masonry-wrapper .item-box:hover .thumb-container img,
.gallery-item:hover .thumb-container img {
    transform: scale(1.06) !important;
    filter: brightness(1.09) saturate(1.04) !important;
}
.thumb-container::after {
    background: radial-gradient(circle at 50% 40%,
        rgba(255, 246, 224, 0.16) 0%,
        rgba(255, 238, 200, 0.06) 45%,
        transparent 72%);
}

/* ---------- 태그 : 더 뚜렷하고 살짝 크게 ---------- */

/* 목록 상단 필터 바 */
.tag-bar { gap: 7px; margin-bottom: 16px; }
.tag-pill {
    font-size: 12.5px;
    font-weight: 500;
    padding: 7px 15px;
    color: var(--point-color);
    background: rgba(var(--point-rgb), 0.10);
    border: 1.5px solid rgba(var(--point-rgb), 0.42);
}
.tag-pill:hover {
    background: rgba(var(--point-rgb), 0.20);
    border-color: var(--point-color);
    box-shadow: 0 0 14px rgba(var(--point-rgb), 0.4);
}
.tag-pill.on {
    background: var(--point-color);
    border-color: var(--point-color);
    box-shadow: 0 2px 12px rgba(var(--point-rgb), 0.5);
}
.tag-num { font-size: 10.5px; opacity: .72; }

/* 모달 / 개별 글 안의 태그 */
.log-tags { gap: 6px; margin: 8px 0 6px 0; }
.log-tag {
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 13px;
    color: var(--point-color);
    background: rgba(var(--point-rgb), 0.10);
    border: 1.5px solid rgba(var(--point-rgb), 0.38);
}

/* 카드 위 태그 */
.ov-tags { gap: 5px; }
.ov-tags em {
    font-size: 10.5px;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(255,255,255,0.20);
    border: 1.5px solid rgba(var(--point-rgb), 0.7);
}

/* 분류(카테고리) 배지 — 하드코딩 민트색을 포인트 컬러로 */
.cate-badge {
    top: 8px !important;
    right: 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: var(--point-color) !important;
    border: 1.5px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    letter-spacing: 0.03em;
}

/* 글쓰기 입력 칩 */
.tag-chip { font-size: 12.5px; padding: 5px 7px 5px 12px; }
.tag-chip button { width: 16px; height: 16px; font-size: 12px; }

/* ---------- 하단 툴바 ---------- */
.bottom-control-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 700px;
    margin: 22px auto 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(var(--point-rgb), 0.18);
}

/* 검색창 */
.sch_input {
    height: 32px;
    width: 130px;
    font-size: 12.5px;
    color: #4a4238;
    border: 1.5px solid rgba(var(--point-rgb), 0.25) !important;
    background: rgba(255,255,255,0.65) !important;
    border-radius: 999px;
}
.sch_input:hover, .sch_input:focus {
    width: 175px;
    background: #fff !important;
    border-color: rgba(var(--point-rgb), 0.6) !important;
    box-shadow: 0 0 12px rgba(var(--point-rgb), 0.22);
}
.sch_input::placeholder { color: rgba(var(--point-rgb), 0.55); letter-spacing: 0.08em; }
.sch_btn { color: var(--point-color) !important; }
.sch_btn:hover { color: var(--point-color) !important; transform: scale(1.12); }

/* 아이콘 버튼 — 기존 #ccc 는 너무 옅어서 안 보였습니다 */
.ctrl-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 17px !important;
    color: rgba(var(--point-rgb), 0.75) !important;
    transition: all .22s ease !important;
}
.ctrl-btn.write { color: rgba(var(--point-rgb), 0.75) !important; }
.ctrl-btn:hover,
.ctrl-btn.write:hover {
    color: #fff !important;
    background: var(--point-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 12px rgba(var(--point-rgb), 0.45);
}

/* 보기 전환 아이콘 */
.view-toggle-btn {
    width: 32px; height: 32px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all .22s ease;
}
.view-toggle-btn:hover {
    background: rgba(var(--point-rgb), 0.14);
    transform: translateY(-1px);
}

@media all and (max-width: 700px) {
    .bottom-control-box {
        max-width: 100%;
        margin: 18px 10px 0 10px;
        border-radius: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sch_input { width: 100px; }
    .sch_input:hover, .sch_input:focus { width: 130px; }
    .tag-pill { font-size: 12px; padding: 6px 13px; }
}


/* =========================================================
   투명 배경(PNG) 이미지 대응
   흰 판을 없애고, 상황별로 흰색 농도를 다르게 줍니다.
     목록(모아보기) : 흰색 77%  + 뒷배경 살짝 블러
     게시글 보기    : 흰색 85%
   ========================================================= */

/* ---------- 목록 썸네일 : 흰색 77% + 블러 ---------- */
.gallery-item {
    background: transparent !important;
}
.gallery-wrapper .thumb-container,
.tile-wrapper .thumb-container,
.masonry-wrapper .thumb-container {
    background-color: rgba(255, 255, 255, 0.77) !important;
    border: 1px solid rgba(var(--point-rgb), 0.14) !important;
}

/* 텍스트 글 썸네일도 같은 농도로 */
.text-thumb-box {
    background-color: rgba(255, 255, 255, 0.77) !important;
}

/* 이미지 자체에는 흰 판을 두지 않습니다 (투명 부분이 그대로 비침) */
.thumb-container img {
    background: transparent !important;
}

/* ---------- 게시글 보기(모달 / 개별 페이지) : 흰색 85% ---------- */
.log-modal-content {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* 슬라이드 · 세로 배치 이미지 모두 흰 판 없이 */
.pic-data img,
.vertical-gallery .vg-item img,
.mySwiper .swiper-slide img {
    background: transparent !important;
}

/* 썸네일 스트립 칸은 옅게만 */
.thumb-swiper .swiper-slide {
    background: rgba(255, 255, 255, 0.55);
}

/* 라이트박스에서는 원본 그대로 (배경 판 없음) */
#img-lightbox img {
    background: transparent !important;
}

/* 모달 뒷배경(어두운 층) — 흰 패널이 회색으로 죽지 않게 살짝 밝힘.
   더 어둡게 하고 싶으면 0.62 를 0.85 로 올리세요. */
.log-modal-overlay {
    background: rgba(0, 0, 0, 0.62) !important;
}


/* =========================================================
   반투명 재조정 + 하단 알약 정렬 + 월별 모음
   ========================================================= */

/* ---------- 회색으로 죽던 문제 ----------
   원인 : 모달 뒷배경이 검정이라, 그 위에 흰색을 얹으면 회색이 됩니다.
   해결 : 뒷배경을 거의 투명하게 두고 패널은 유리처럼 옅게. */
.log-modal-overlay {
    background: rgba(30, 20, 8, 0.30) !important;
}
.log-modal-content {
    background: rgba(255, 252, 246, 0.46) !important;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 목록 썸네일도 같은 결로 옅게 */
.gallery-wrapper .thumb-container,
.tile-wrapper .thumb-container,
.masonry-wrapper .thumb-container {
    background-color: rgba(255, 252, 246, 0.52) !important;
}
.text-thumb-box {
    background-color: rgba(255, 252, 246, 0.58) !important;
}

/* 유리 위에서 글자가 묻히지 않도록 */
.log-modal-content,
.log-modal-content .theme-box,
.text-thumb-box {
    color: #3a2c1b;
}
.ui-pic .pic-header .title-area > span:first-child {
    text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

/* ---------- 하단 알약 정렬 ---------- */
.bottom-control-box {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 10px;
    padding: 9px 14px;
}
.sch_simple_box { flex: 0 0 auto; }
.sch_simple_box form { gap: 2px; }

/* 아이콘이 글자로 새어 보이던 문제 대비 — 폭을 고정해 겹침 방지 */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.view-toggle-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    overflow: hidden;
}
.btn_group_right { flex: 0 0 auto; }

/* ---------- 월별 모음 ---------- */
.month-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 0 4px 0 10px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(var(--point-rgb), 0.25);
    transition: all .22s ease;
}
.month-select-wrap:hover {
    border-color: rgba(var(--point-rgb), 0.6);
    box-shadow: 0 0 12px rgba(var(--point-rgb), 0.22);
}
.month-ico {
    font-size: 17px !important;
    color: var(--point-color);
}
.month-select {
    height: 30px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    font-family: 'Amarante', 'HeirofLightRegular', serif;
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: var(--point-color);
    cursor: pointer;
    padding: 0 4px;
    max-width: 130px;
}
.month-select option { color: #3a2c1b; background: #fff; }

@media all and (max-width: 700px) {
    .bottom-control-box { justify-content: center; }
    .month-select { max-width: 105px; font-size: 12px; }
}


/* =========================================================
   출처 표시 + 렌더링 부하 정리
   ========================================================= */

/* ---------- 출처 ---------- */
.log-source {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 6px 0 4px 0;
    font-size: 11.5px;
    line-height: 1.5;
    word-break: break-all;
}
.log-source-label {
    flex: 0 0 auto;
    font-size: 9.5px;
    letter-spacing: .12em;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--point-color);
    background: rgba(var(--point-rgb), 0.10);
    border: 1px solid rgba(var(--point-rgb), 0.28);
}
.log-source a {
    color: var(--point-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--point-rgb), 0.35);
    transition: border-color .2s ease;
}
.log-source a:hover { border-bottom-color: var(--point-color); }
.log-source span:not(.log-source-label) { color: #6b6155; }

/* 글쓰기 출처 입력칸 */
.source-input-wrap {
    max-width: 600px;
    margin: 0 auto 10px auto;
    text-align: left;
}
#wr_4 {
    width: 100%;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* =========================================================
   렌더링 부하 정리
   backdrop-filter 는 요소마다 배경을 매 프레임 다시 흐리게 만듭니다.
   카드 그리드처럼 같은 요소가 수십 개면 그만큼 곱해져서
   마우스 이동까지 버벅이게 됩니다. 반복 요소에서는 전부 걷어냈고,
   아래는 남은 비용을 더 줄이는 설정입니다.
   ========================================================= */

/* 카드 바깥 영향 차단 — 한 장이 바뀌어도 다른 카드를 다시 계산하지 않음 */
.gallery-item {
    contain: layout paint style;
}

/* 호버 글로우를 3겹 → 2겹으로. 큰 blur 반경의 그림자는 비쌉니다 */
.gallery-item:hover {
    box-shadow:
        0 12px 26px rgba(0,0,0,0.17),
        0 0 20px rgba(var(--point-rgb), 0.45) !important;
}

/* 이미지 확대는 transform 만 사용 (GPU 처리). filter 는 호버 때만 */
.gallery-wrapper .thumb-container img,
.tile-wrapper .thumb-container img,
.masonry-wrapper .thumb-container img {
    transition: transform .45s cubic-bezier(.2,.8,.3,1), filter .3s ease;
    backface-visibility: hidden;
}

/* 카드 위 빛무리 레이어 제거 — 그라데이션 겹침이 비용 대비 효과가 적습니다 */
.thumb-container::after { display: none !important; }

/* 성인물 블러 : 16px → 11px. 흐림 정도는 거의 같고 계산량은 크게 줍니다 */
.gallery-item.is-adult .thumb-container img,
.gallery-item.is-adult .text-thumb-box {
    filter: blur(11px) saturate(0.85) !important;
}
.gallery-wrapper .item-box.is-adult:hover .thumb-container img,
.tile-wrapper .item-box.is-adult:hover .thumb-container img,
.gallery-item.is-adult:hover .thumb-container img {
    filter: blur(11px) saturate(0.9) !important;
}

/* will-change 는 상시 켜두면 오히려 메모리를 잡아먹습니다 */
.gallery-item, .thumb-container, .item-overlay { will-change: auto; }

/* 화면 밖 카드는 그리지 않음 */
.gallery-wrapper .item-box,
.tile-wrapper .item-box {
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
}

/* ---------- 동영상 입력 ---------- */
.video-input-wrap {
    max-width: 600px;
    margin: 0 auto 12px auto;
    text-align: left;
}
#wr_video {
    width: 100%;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}
.video-help {
    font-size: 10px;
    color: rgba(var(--point-rgb), 0.6);
    margin-top: 4px;
    padding-left: 2px;
}

/* ---------- 동영상 출력 ---------- */
.log-video {
    width: 100%;
    max-height: 78vh;
    display: block;
    background: #000;
    border-radius: 6px;
}
.log-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;           /* 16:9 */
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.log-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 세로 배치에서도 동영상이 이미지와 같은 폭으로 */
.vertical-gallery .log-video,
.vertical-gallery .log-embed { margin-bottom: 0; }

/* 썸네일 스트립에 동영상이 걸리면 첫 프레임만 작게 */
.thumb-swiper .log-video {
    height: 72px;
    object-fit: cover;
    pointer-events: none;
    max-height: none;
}
.thumb-swiper .log-embed { padding-top: 0; height: 72px; }
.thumb-swiper .log-embed iframe { pointer-events: none; }

/* 본문에 직접 붙여넣은 iframe·video 도 넘치지 않게 */
.log-modal-content iframe,
.log-modal-content video {
    max-width: 100%;
}

@media all and (max-width: 700px) {
    .video-input-wrap { max-width: 100%; }
}


/* =========================================================
   패널 밝기 / 제목·본문 가독성 / 메이슨리 / 페이지 번호
   ========================================================= */

/* ---------- 1. 게시글 패널 : 흰색에 가까운 밝은 회색 반투명 ---------- */
.log-modal-content {
    background: rgba(250, 250, 252, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 40px rgba(40, 26, 8, 0.22);
}
.log-modal-overlay {
    background: rgba(30, 20, 8, 0.42) !important;
}

/* ---------- 2. 제목란 · 본문란 : 더 밝고 불투명하게 ---------- */
.ui-pic .pic-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 3;
}
.ui-pic .pic-header .title-area > span:first-child {
    color: #2f2a24;
    text-shadow: none;
}
.ui-pic .pic-header .date-area { color: #8d8579; }

/* 본문 글 영역에도 밝은 판을 깔아 배경과 분리 */
.pic-data .theme-box {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 16px 18px !important;
    color: #3a352d !important;
}
.pic-data .theme-box:empty { display: none; }

/* 태그 · 출처 줄도 같은 판 위에 얹히도록 */
.log-tags, .log-source { position: relative; z-index: 3; }

/* ---------- 3. 메이슨리 : 카드 정렬 ---------- */
/* 카드 폭과 위치는 JS(layoutBricks)가 넣습니다. 여기서 width 를 잡으면 배치가 깨집니다. */
.masonry-wrapper .gallery-item {
    float: none !important;
}
/* 카드 안 이미지를 가운데로 */
.masonry-wrapper .thumb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.masonry-wrapper .thumb-container img {
    margin: 0 auto;
}

/* ---------- 4. 페이지 번호 : 흰 원형 ---------- */
.ui-paging { margin: 6px 0 10px 0; }
.ui-paging a,
.ui-paging strong {
    min-width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
    margin: 0 3px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    box-sizing: border-box;
    font-size: 12px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(var(--point-rgb), 0.22) !important;
    color: #7a7168 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    transition: all .2s ease;
}
.ui-paging a:hover {
    background: #ffffff !important;
    color: var(--point-color) !important;
    border-color: rgba(var(--point-rgb), 0.55) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--point-rgb), 0.3) !important;
}
.ui-paging strong {
    background: var(--point-color) !important;
    border-color: var(--point-color) !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(var(--point-rgb), 0.45) !important;
}

/* =========================================================
   20260918 : 분류 배지 · 해시태그 · 성인물 비밀글 · 하단 페이지
   ========================================================= */

/* ---------- 분류 : 제목 앞 사각형 배지 ---------- */
.cate-prefix {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 7px 2px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    background: var(--point-color, #8a8178);
    color: #fff;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: 1px;
    text-shadow: none;
}

.ov-title .cate-prefix {
    font-size: 10px;
    padding: 2px 6px 1px;
    margin-right: 5px;
}

.title-area .cate-prefix {
    font-size: 11.5px;
    vertical-align: 2px;
    border-color: rgba(0,0,0,0.08);
}

/* ---------- 썸네일 위 해시태그 알약 : 연한 금색 테두리 + 흰 글씨 ---------- */
.ov-tags em {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(214, 182, 106, 0.75);
    color: #fff;
    font-weight: 500;
}

/* ---------- 글쓰기 : 그동안 쓴 해시태그 목록 ---------- */
.tag-input-wrap { position: relative; }

.tag-recent {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
}

.tag-input-wrap:hover .tag-recent,
.tag-input-wrap:focus-within .tag-recent { display: block; }

.tag-recent-head {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #aaa;
}

.tag-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
}

.tag-recent-chip:hover {
    border-color: var(--point-color, #8a8178);
    color: var(--point-color, #8a8178);
}

.tag-recent-chip.is_on {
    background: var(--point-color, #8a8178);
    border-color: var(--point-color, #8a8178);
    color: #fff;
}

.tag-recent-num { font-size: 10.5px; opacity: 0.65; }

/* ---------- 성인물 = 비밀글 ---------- */
.adult-lock-box {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 100%; height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ece7e0;
    color: #8d8378;
}

.adult-lock-box .adult-lock-ico { font-size: 26px; line-height: 1; }
.adult-lock-box .adult-lock-txt { font-size: 11.5px; letter-spacing: 0.04em; }

.gallery-item.is-locked .adult-lock-box { filter: none; }

/* 메이슨리는 높이를 고정하지 않으므로 잠금 박스로 높이를 만들어 줍니다 */
.masonry-wrapper .item-box.is-locked .thumb-container { min-height: 320px; }
.masonry-wrapper .adult-lock-box { position: absolute; height: 100%; }

.adult-lock-note {
    margin: 0 30px 20px 30px;
    padding: 30px 20px;
    border: 1px solid #ece7e0;
    border-radius: 10px;
    background: #faf8f5;
    text-align: center;
    color: #8d8378;
    font-size: 13px;
    line-height: 1.7;
}

.adult-lock-note .adult-lock-ico { display: block; font-size: 24px; margin-bottom: 8px; }
.adult-lock-note strong { display: block; color: #6b625a; font-size: 14px; margin-bottom: 4px; }

/* ---------- 페이지 번호 : 목록 아래 ---------- */
.ui-paging-bottom {
    max-width: 700px;
    margin: 26px auto 0 auto;
    padding: 0 5px;
    text-align: center;
}


/* ---------- 잠금 이미지 (성인물 · 비밀글) ---------- */
.adult-lock-box .adult-lock-img {
    display: block;
    width: 72px;
    max-width: 40%;
    height: auto;
}

.adult-lock-note .adult-lock-img {
    display: block;
    width: 96px;
    max-width: 50%;
    height: auto;
    margin: 0 auto 10px auto;
}

.adult-check-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================================
   20260927 : 폭·높이 확대 / 세로 배치 썸네일 / 치환자 색 변수
   ========================================================= */

/* ---------- 목록 폭 1.3배 (700 → 910, 메이슨리 1100 → 1430) ---------- */
.gallery-wrapper,
.bottom-control-box,
.tag-bar,
.tag-active-note,
.ui-paging-bottom {
    max-width: 910px;
}

.masonry-wrapper { max-width: 1430px; }

@media all and (max-width: 1024px) {
    .gallery-wrapper,
    .bottom-control-box,
    .tag-bar,
    .tag-active-note,
    .ui-paging-bottom,
    .masonry-wrapper { max-width: 100%; }
}

/* ---------- 세로 배치 : 옆에 썸네일 ---------- */
.vertical-with-thumbs {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vertical-with-thumbs .vertical-gallery {
    flex: 1 1 auto;
    min-width: 0;
}

.vg-thumbs {
    flex: 0 0 78px;
    width: 78px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

.vg-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(var(--point-rgb), 0.18);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(var(--point-rgb), 0.04);
    opacity: .45;
    cursor: pointer;
    transition: opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.vg-thumb img {
    width: 100% !important;
    height: 72px !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
}

.vg-thumb video,
.vg-thumb iframe { width: 100%; height: 72px; pointer-events: none; }

.vg-thumb:hover { opacity: .8; }

.vg-thumb.is_on {
    opacity: 1;
    border-color: var(--point-color);
    box-shadow: 0 0 10px rgba(var(--point-rgb), 0.45);
}

@media all and (max-width: 1024px) {
    .vertical-with-thumbs { flex-direction: column-reverse; }
    .vg-thumbs {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        position: static;
        max-height: none;
        overflow-x: auto;
    }
    .vg-thumb { flex: 0 0 64px; width: 64px; }
    .vg-thumb img { height: 64px !important; }
}

/* ---------- 치환자(textggu.css)가 쓰는 색 변수 ---------- */
#load_log_board,
.log-modal-content,
.text-thumb-box,
.co-content {
    --effect-point: var(--point-color);
    --effect-point2: rgba(var(--point-rgb), 0.55);
    --effect-point3: rgba(var(--point-rgb), 0.25);
    --effect-text: #333333;
    --effect-text2: #ffffff;
    --lt-color-point: var(--point-color);
    --lt-color-default: #ffffff;
    --shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* 목록 카드 안에서는 블러가 span 이라 따로 지정 */
span.blur-txt { filter: blur(5px); color: CurrentColor; cursor: pointer; }
span.blur-txt.none-blur { filter: blur(0); }

/* ---------- 파일 여러 개 선택 ---------- */
.multi-upload { margin-bottom: 10px; }

.multi-upload-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.multi-upload-btn:hover { border-color: var(--point-color); color: var(--point-color); }

.multi-upload-info { margin-left: 8px; font-size: 11px; color: #aaa; }

.multi-upload-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.multi-upload-list:empty { display: none; }

.multi-upload-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(var(--point-rgb), 0.10);
    color: #555;
    font-size: 11.5px;
    line-height: 1.3;
    word-break: break-all;
}

.multi-upload-item button {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.multi-upload-item button:hover { color: #555; }

/* 빈 칸만 감춥니다. 이미 올라간 파일이 있는 칸은 그대로 보여 줍니다. */
.file-slot-box { display: block; }
.file-slot { display: none; }
.file-slot.has-file {
    display: block;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    font-size: 11.5px;
    color: #666;
}
.file-slot.has-file input[type=file] { display: none; }
.file-slot.has-file label { cursor: pointer; }

.file-slot-head {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #aaa;
}
.file-slot-box:not(.has-any) .file-slot-head { display: none; }

/* 미지원 브라우저용 : 개별 첨부 칸을 모두 보여줍니다. */
.file-slot-box.fallback .file-slot { display: block; margin-bottom: 5px; }
.file-slot-box.fallback .file-slot input[type=file] { display: inline-block; }

/* 선택한 파일 순서 바꾸기 */
.multi-upload-item .mu-order {
    display: inline-flex;
    gap: 2px;
}
.multi-upload-item .mu-order button,
.multi-upload-item button[data-clear] {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 12px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}
.multi-upload-item .mu-order button:hover,
.multi-upload-item button[data-clear]:hover { color: #555; }
.multi-upload-item .mu-order button:disabled { opacity: .25; cursor: default; }
.multi-upload-item .mu-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--point-color);
    color: #fff;
    font-size: 10px;
}

/* ---------- 파일 첨부 상자 : 다른 입력 박스와 폭 맞춤 ---------- */
.upload_box {
    max-width: 600px;
    margin: 0 auto 15px auto;
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    box-sizing: border-box;
    text-align: left;
}

.upload_box .frm_input,
.upload_box textarea { max-width: 100%; box-sizing: border-box; }

/* 올라가 있는 파일 : 순서 변경 버튼 */
.file-slot.has-file {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.file-slot .fs-idx { flex: 0 0 auto; }
.file-slot .fs-order { display: inline-flex; gap: 2px; }
.file-slot .fs-order button {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 12px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}
.file-slot .fs-order button:hover { color: #555; }
.file-slot .fs-order button:disabled { opacity: .25; cursor: default; }

/* ---------- 글 페이지 : 이전 글 / 다음 글 ---------- */
.view-prevnext {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 15px 30px;
    font-size: 12px;
}
.view-prevnext a {
    color: #999;
    text-decoration: none;
}
.view-prevnext a:hover { color: var(--point-color, #666); }

/* =========================================================
   20261004 : 상단바 (검색 · 분류 탭 · 페이지)
   글자색과 글씨체는 스킨 기본값을 따릅니다.
   ========================================================= */
.ucho-topbar {
    max-width: 910px;
    margin: 0 auto 14px auto;
    padding: 0 5px;
    box-sizing: border-box;
}

.ucho-topbar .ut-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 1줄 : 검색 · 월별 · 설정 · 추가 ---------- */
.ut-tools {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ut-search {
    display: flex;
    align-items: center;
    flex: 0 1 380px;
    min-width: 180px;
    height: 42px;
    margin: 0;
    padding: 0 10px 0 16px;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.ut-search input[type=text] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.ut-search button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.ut-search button .material-icons { font-size: 22px; }

.ut-month {
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
}

.ut-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    box-sizing: border-box;
}

.ut-round .material-icons { font-size: 20px; }

.ut-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ut-views a {
    display: inline-flex;
    padding: 4px;
    opacity: .4;
    text-decoration: none;
}

.ut-views a.on,
.ut-views a:hover { opacity: 1; }

.ut-views .material-icons { font-size: 20px; }

.ut-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--point-color);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}

/* ---------- 2줄 : 분류 탭 ---------- */
.ut-cate-row {
    gap: 8px;
    margin-bottom: 12px;
}

.ut-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.ut-arrow .material-icons { font-size: 22px; }

.ut-arrow.is-off { opacity: .3; cursor: default; }

.ut-cate-scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ut-cate-scroll::-webkit-scrollbar { display: none; }



/* ---------- 3줄 : 페이지 ---------- */
.ut-paging {
    gap: 6px;
    margin-bottom: 4px;
}

.ut-pg-num,
.ut-pg-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 4px;
    font-size: 15px;
    text-decoration: none;
    box-sizing: border-box;
}

.ut-pg-num.on {
    border: 1px solid var(--point-color);
    border-radius: 50%;
    font-weight: 700;
}

.ut-pg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    text-decoration: none;
}

.ut-pg-arrow .material-icons { font-size: 24px; }

.ut-pg-arrow.is-off { opacity: .25; }

@media all and (max-width: 560px) {
    .ut-search { flex: 1 1 100%; }
    .ut-arrow { width: 32px; height: 32px; }
    .ut-pg-num, .ut-pg-gap { min-width: 28px; height: 28px; font-size: 13px; }
}

/* ---------- 관리자 외에는 사진 확대 없음 ---------- */
#load_log_board.no-zoom .pic-data img,
#load_log_board.no-zoom .swiper-slide img,
#load_log_board.no-zoom .vertical-gallery img,
#load_log_board.no-zoom .comment-img-grid img,
#load_log_board.no-zoom .lightbox_trigger {
    cursor: default !important;
}

/* =========================================================
   20261004 : 글씨체 · 분류 알약 · 에디터 상자
   ========================================================= */

/* ---------- 부크크 명조 (빛의 계승자 · 리디바탕은 사이트에서 이미 불러옴) ---------- */
@font-face {
    font-family: 'BookkMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Lt.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'BookkMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Bd.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ---------- 본문 등 그 외 : 부크크 명조 → 리디바탕 ----------
   글씨체가 따로 지정되지 않은 곳만 이 값을 물려받습니다.
   에디터에서 글씨체를 지정한 본문은 그 지정이 그대로 우선합니다. */
#load_log_board {
    font-family: 'EB Garamond', 'BookkMyungjo', 'Ridibatang', serif;
}

/* ---------- 제목 · 기타 : 빛의 계승자 ---------- */
.ov-title,
.title-area,
.pic-header .no,
.ucho-topbar,
.ut-search input[type=text],
.ut-month,
.ut-add,
.ut-cate,
.ut-pg-num,
.ut-pg-gap,
.adult-check-label,
.multi-upload-btn,
.multi-upload-info,
.file-slot-head,
.tag-recent-head,
.view-prevnext,
#bo_w .ui-btn,
#bo_w label,
#bo_w select {
    font-family: 'Amarante', 'HeirofLight', 'HeirofLightRegular', serif;
}

/* ---------- 상단 분류 알약 (스크랩 게시판과 같은 모양) ---------- */
.ut-cate-scroll { gap: 6px; padding: 2px 0; }

.ut-cate {
    flex: 0 0 auto;
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--point-color);
    border-radius: 999px;
    background: #fff;
    color: var(--point-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.ut-cate em {
    font-style: normal;
    margin-left: 3px;
    opacity: .7;
}

.ut-cate:hover {
    background: color-mix(in srgb, var(--point-color) 15%, #fff);
}

.ut-cate.on {
    background: var(--point-color);
    color: #fff;
}

.ut-cate.on em { opacity: .85; }

/* ---------- 본문 에디터 상자 : 사진 첨부 상자와 같은 배경 ---------- */
.write-editor-box {
    max-width: 600px;
    margin: 15px auto 0 auto;
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    box-sizing: border-box;
}

/* 에디터를 끈 게시판에서 나오는 기본 입력칸도 흰 바탕 없이 */
.write-editor-box textarea {
    width: 100%;
    min-height: 300px;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    resize: vertical;
}

/* 에디터 바깥 틀의 흰 바탕을 걷어냄 */
.write-editor-box > div,
.write-editor-box .cke,
.write-editor-box .se2_inputarea,
.write-editor-box [class*="editor"] {
    background-color: transparent;
}

/* ---------- 게시글 배경 : 흰색에 가까운 회색, 불투명도 30% ----------
   뒤 배경 사진이 비칩니다. 값은 rgba 의 마지막 숫자(0.3)로 조절합니다.
   1 에 가까울수록 불투명, 0 에 가까울수록 투명입니다. */
#load_log_board .item > .item-inner {
    background: rgba(245, 245, 245, 0.3) !important;
}

/* 안쪽 상자가 따로 색을 칠하면 그 부분만 불투명해지므로 비웁니다 */
#load_log_board .item-inner .pic-data .theme-box,
#load_log_board .item-inner .ui-comment {
    background: transparent !important;
}

/* ---------- 20261004 보정 ---------- */
/* 분류 알약 가운데 정렬 (넘칠 때는 그대로 좌우 이동) */
.ut-cate-scroll > .ut-cate:first-child { margin-left: auto; }
.ut-cate-scroll > .ut-cate:last-child  { margin-right: auto; }

/* 현재 페이지 숫자 : 테마의 strong 색에 덮이지 않게 span + 색 지정 */
.ut-paging .ut-pg-num.on {
    color: var(--point-color);
}

/* 검색줄 : 둥근 모양 */
.ut-search,
.ut-month {
    border-radius: 999px;
}
.ut-search { padding: 0 14px 0 20px; }
.ut-month  { padding: 0 14px; }


/* ---------- 게시글 제목 : Mona12 ---------- */
.ui-pic .pic-header .title-area .post-title-text {
    font-family: 'Mona12', 'Amarante', 'HeirofLight', 'HeirofLightRegular', serif;
}

/* ---------- 게시글을 열었을 때 뒤쪽 블러 (약하게) ----------
   흐림 정도는 blur() 안의 숫자로 조절합니다. */
.ucho-blur-behind {
    filter: blur(3px);
    transition: filter .25s ease;
}

.ucho-view-bgblur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* ---------- 목록 · 글쓰기 90% 크기 (게시글은 원래 크기) ----------
   버튼, 글자, 그림, 간격을 함께 줄입니다.
   값을 바꾸려면 0.9 를 조절합니다. (1 = 원래 크기) */
#load_log_board.is-list,
#load_log_board.is-write {
    zoom: 1; /* [ra0] 90% 축소 해제 (원래 크기) */
}

/* =========================================================
   게시글 반투명 : 안쪽 상자들이 따로 칠한 바탕을 모두 비우고
   .item-inner 한 겹만 반투명 회색으로 둡니다.
   ========================================================= */
#load_log_board .item,
#load_log_board .item .ui-pic,
#load_log_board .item .pic-header,
#load_log_board .item .pic-data,
#load_log_board .item .theme-box,
#load_log_board .item .ui-comment,
#load_log_board .item .item-comment-box,
#load_log_board .item .item-comment-form-box {
    background-color: transparent !important;
    background-image: none !important;
}

/* =========================================================
   목록 위 게시글 창
   ========================================================= */
.ucho-post-layer {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9000;
    display: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.ucho-post-layer.is-open { display: block; }

.ucho-post-layer iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color-scheme: normal;
}

.ucho-post-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    color: #333;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}
.ucho-post-close:hover { background: #fff; }

/* 창이 열려 있는 동안 뒤 목록 스크롤 고정 */
html.ucho-layer-open,
html.ucho-layer-open body { overflow: hidden !important; }

/* ---------- 창 안(게시글 쪽) ---------- */
html.ucho-in-layer,
html.ucho-in-layer body {
    background: transparent !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
html.ucho-in-layer body > *:not(#load_log_board):not(#img-lightbox):not(script):not(style):not(link) {
    display: none !important;
}
html.ucho-in-layer #load_log_board {
    width: 100%;
    max-width: 800px;   /* 게시글 창 안의 게시글 폭 */
    margin: 40px auto !important;
    padding-top: 0 !important;
}

/* [ra0] 아보카도 공통 CSS에 있던 가운데 정렬. ra0에는 없어서 글쓰기 선택 칸이 왼쪽으로 붙던 문제 */
#load_log_board .txt-center { text-align: center; }

/* [ra0] 목록 썸네일 위 글자 20% 키움
   제목 13px → 15.6px / 날짜 10px → 12px / 해시태그 10.5px → 12.6px / 분류 10px → 12px */
#load_log_board .ov-title { font-size: 15.6px; }
#load_log_board .ov-date { font-size: 12px; }
#load_log_board .ov-tags em { font-size: 12.6px; }
#load_log_board .ov-title .cate-prefix { font-size: 12px; }
