/* GT_thumb_bbs 전용 CSS (목록 · 보기 이미지 · 설정 모달). 선택자는 .gtt_ / .gtc_ / .gtv_ 접두어.
   이미지 높이는 절대 px 로 고정하지 않는다 (aspect-ratio + object-fit). 모바일 500px, 태블릿 1024px. */

:root { --gtt-accent: #2563eb; }

/* ---------- 상단 툴바 ---------- */
.gtt_bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 16px; flex-wrap: wrap; }
.gtt_bar_l, .gtt_bar_r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gtt_total { font-size: 14px; color: #666; }
.gtt_total b { color: #111; font-weight: bold; }
.gtt_chkall { display: inline-flex; align-items: center; justify-content: center; height: 32px; margin: 0; padding: 0; vertical-align: middle; }
.gtt_pg .pg_wrap { margin: 0; padding: 0; float: none; display: block; }
.gtt_pg .pg { display: flex; align-items: center; gap: 4px; }
.gtt_pg .pg_page, .gtt_pg .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; box-sizing: border-box; border-radius: 50%; border: 0; font-size: 13px; line-height: 1; background: transparent; color: #444; text-decoration: none; }
.gtt_pg a.pg_page:hover { background: #eef0f3; }
.gtt_pg .pg_current { background: var(--gtt-accent); color: #fff; font-weight: bold; }
.gtt_pg .pg_start, .gtt_pg .pg_end { display: none; }
.gtt_pg .pg_page .sound_only { display: none; }
.gtt_ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #333; cursor: pointer; text-decoration: none; position: relative; }
.gtt_ib .material-icons { font-size: 22px; line-height: 1; }
.gtt_ib:hover { border-color: var(--gtt-accent); color: var(--gtt-accent); }
.gtt_ib.is-main { background: var(--gtt-accent); border-color: var(--gtt-accent); color: #fff; }
.gtt_ib.is-main:hover { opacity: .85; color: #fff; }
.gtt_menu { position: relative; }
.gtt_menu .more_opt { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: max-content; min-width: 130px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 60; }
.gtt_menu .more_opt li { margin: 0; padding: 0; }
.gtt_menu .more_opt button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #333; font-size: 13px; white-space: nowrap; cursor: pointer; text-align: left; }
.gtt_menu .more_opt button:hover { background: #f3f4f6; }
.gtt_menu .more_opt .material-icons { font-size: 18px; color: #777; }
.gtt_point_ul { margin: 0 0 10px; padding: 0; list-style: none; }
@media (max-width: 500px) {
    .gtt_bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .gtt_bar_r { justify-content: flex-end; }
}

/* ---------- 격자 ---------- */
.gtt_list { display: grid; grid-template-columns: repeat(var(--gtt-cols, 4), minmax(0, 1fr)); gap: var(--gtt-gap, 24px); margin-top: 20px; }
.gtt_item { position: relative; min-width: 0; }
.gtt_item a { text-decoration: none; }

.gtt_list.gtt-masonry { display: block; margin-left: calc(var(--gtt-gap, 24px) * -1); }
.gtt-masonry .gtt_item { width: calc(100% / var(--gtt-cols, 4)); padding-left: var(--gtt-gap, 24px); margin-bottom: var(--gtt-gap, 24px); box-sizing: border-box; }

@media (max-width: 1024px) {
    .gtt_list { grid-template-columns: repeat(var(--gtt-cols-t, 3), minmax(0, 1fr)); }
    .gtt-masonry .gtt_item { width: calc(100% / var(--gtt-cols-t, 3)); }
}
@media (max-width: 500px) {
    .gtt_list { grid-template-columns: repeat(var(--gtt-cols-m, 2), minmax(0, 1fr)); }
    .gtt-masonry .gtt_item { width: calc(100% / var(--gtt-cols-m, 2)); }
}

/* ---------- 썸네일 ---------- */
.gtt_thumb { position: relative; overflow: hidden; border-radius: var(--gtt-radius, 10px); background: var(--gtt-img-bg, #f5f6f8); }
.gtt-r-11 .gtt_thumb { aspect-ratio: 1 / 1; }
.gtt-r-43 .gtt_thumb { aspect-ratio: 4 / 3; }
.gtt-r-32 .gtt_thumb { aspect-ratio: 3 / 2; }
.gtt-r-169 .gtt_thumb { aspect-ratio: 16 / 9; }
.gtt-r-34 .gtt_thumb { aspect-ratio: 3 / 4; }
.gtt-r-orig .gtt_thumb { aspect-ratio: auto; }
.gtt_thumb .gtt_hit { display: block; width: 100%; }
.gtt_list:not(.gtt-r-orig) .gtt_thumb .gtt_hit { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: auto; }
.gtt_thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gtt-r-orig .gtt_thumb img { height: auto; }
.gtt-fit-contain .gtt_thumb img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.gtt-r-orig.gtt-fit-contain .gtt_thumb img { padding: 0; }

.gtt_noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; color: #c3c8cf; background: var(--gtt-img-bg, #f5f6f8); }
.gtt-r-orig .gtt_noimg { aspect-ratio: 4 / 3; height: auto; }

.gtt_badge { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.gtt_badge .bbs_list_label { font-size: 11px; border-radius: 4px; padding: 3px 5px 2px; color: #fff; }
.gtt_badge .label1 { background: #FFC700; }
.gtt_badge .label3 { background: #8ED100; }
/* PICK 배지(오른쪽 위 사각) · 상태 배지 D-day(둥근, PICK 이 있으면 그 아래) · PICK 테두리 */
.gtt_pick { position: absolute; top: 0; right: 5px; z-index: 2; width: 50px; height: 50px; box-sizing: border-box; border-top: 5px solid #000; border-radius: 0; color: #fff; font-size: 15px; line-height: 45px; text-align: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
.gtt_dday { position: absolute; top: 5px; right: 5px; z-index: 2; width: 50px; height: 50px; box-sizing: border-box; border-radius: 25px; color: #fff; font-size: 13px; line-height: 50px; text-align: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
.gtt_dday.has-pick { top: 55px; }
.gtt_dday.is-end { background: #333; }
.gtt_dday.is-ongoing { background: #FF5A5A; }
.gtt_dday.is-upcoming { background: #2196F3; }
.gtt_dday.is-tomorrow { background: #7F00FF; }
/* PICK 테두리: 카드 바깥(그리드 gap 안)에 가상요소로 그린다. gap 이 좁으면 gap/3 까지만 나가 이웃 카드와 겹치지 않는다 */
.gtt_item.gtt-pickwrap { position: relative; --gtt-pk-in: max(-8px, calc(var(--gtt-gap, 24px) / -3)); }
.gtt_item.gtt-pickwrap::after { content: ""; position: absolute; top: var(--gtt-pk-in); right: var(--gtt-pk-in); bottom: var(--gtt-pk-in); left: var(--gtt-pk-in); z-index: 1; box-sizing: border-box; pointer-events: none; border: 2px dashed var(--gtt-pick-line, #2563eb); border-radius: calc(var(--gtt-radius, 10px) + 8px); }
.gtt-masonry .gtt_item.gtt-pickwrap::after { left: calc(var(--gtt-gap, 24px) + var(--gtt-pk-in)); } /* 벽돌 배치는 왼쪽 gap 이 카드 padding 으로 들어가 있다 */
@media (max-width: 500px) {
    .gtt_item.gtt-pickwrap { --gtt-pk-in: max(-5px, calc(var(--gtt-gap, 24px) / -3)); }
}
@media (max-width: 500px) {
    .gtt_pick, .gtt_dday { width: 40px; height: 40px; font-size: 12px; }
    .gtt_pick { line-height: 35px; }
    .gtt_dday { line-height: 40px; border-radius: 20px; }
    .gtt_dday.has-pick { top: 45px; }
}
.gtt_item .gall_chk_is { position: absolute; top: 10px; left: 10px; z-index: 3; }
.gtt_item.is_notice .gtt_thumb { box-shadow: 0 0 0 2px rgba(0,0,0,.08) inset; }

/* 확대 보기 오버레이 (zoom 모드) */
.gtt_zoomov { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; pointer-events: none; z-index: 2; }
.gtt_zoomov .material-icons { font-size: 30px; line-height: 1; }
.gtt_item:hover .gtt_zoomov { opacity: 1; }
/* 최고관리자용 글 보기 링크 */
.gtt_admin_view { position: absolute; top: 8px; right: 8px; z-index: 4; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .2s ease; }
.gtt_admin_view .material-icons { font-size: 16px; line-height: 1; }
.gtt_admin_view:hover { background: rgba(0,0,0,.85); color: #fff; }
.gtt_item:hover .gtt_admin_view, .gtt_admin_view:focus { opacity: 1; }
@media (hover: none), (max-width: 500px) {
    .gtt_zoomov { top: auto; left: auto; right: 8px; bottom: 8px; width: 30px; height: 30px; margin: 0; opacity: 1; }
    .gtt_zoomov .material-icons { font-size: 18px; }
    .gtt_admin_view { opacity: 1; }
}

/* ---------- 본문 ---------- */
.gtt_body { padding-top: 14px; }
.gtt_cate { margin: 0 0 6px; font-size: var(--gtt-fs-meta, 12px); color: #999; }
.gtt_subj { margin: 0; font-size: var(--gtt-fs-subj, 18px); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtt_subj a { color: inherit; }
.gtt_con { margin: 8px 0 0; font-size: var(--gtt-fs-con, 14px); line-height: 1.5; color: #777; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.gtt_meta { margin: 10px 0 0; font-size: var(--gtt-fs-meta, 12px); color: #999; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gtt-center .gtt_body { text-align: center; }
.gtt-center .gtt_meta { justify-content: center; }
.gtt_empty { text-align: center; padding: 60px 0; color: #999; }

@media (hover: hover) {
    .gtt-hover-zoom .gtt_item:hover .gtt_thumb img { transform: scale(1.05); }
}

/* ---------- 더보기 ---------- */
.gtt_more_wrap { text-align: center; margin: 30px auto 40px; }
.gtt_more { position: relative; z-index: 0; overflow: hidden; width: min(400px, 90%); min-width: 0; height: 60px; padding: 0; border: 0; border-radius: 30px; background: var(--gtt-cate-accent, var(--gtt-accent, #2563eb)); color: #fff; font-size: 16px; font-weight: bold; line-height: 60px; cursor: pointer; }
/* hover : 왼쪽에서 비스듬히 어두운 막이 지나간다 (글자는 막 위) */
.gtt_more::before { content: ""; position: absolute; z-index: -1; top: 0; left: -35%; width: 0; height: 100%; background: rgba(0,0,0,.18); transform: skew(50deg); transform-origin: top left; transition: width .6s; }
.gtt_more:hover::before { width: 135%; }
.gtt_more.is-loading::before { display: none; }
.gtt_more.is-loading { color: transparent; pointer-events: none; }
.gtt_more.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gttspin .7s linear infinite; }
@keyframes gttspin { to { transform: rotate(360deg); } }

/* ---------- 레이어 모달 (body 직속) ---------- */
:root { --gtt-accent-10: rgba(37,99,235,.1); }
.gtt_modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999; background: rgba(15,18,25,.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.gtt_modal, .gtt_modal * { box-sizing: border-box; }
.gtt_modal_box { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 960px; max-height: 88vh; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(15,18,25,.35); overflow: hidden; opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; }
.gtt_modal.is-in .gtt_modal_box { opacity: 1; transform: none; }
.gtt_modal.no-media .gtt_modal_box { max-width: 720px; }
.gtt_modal_in { flex: 1 1 auto; min-height: 360px; display: grid; grid-template-columns: 46fr 54fr; grid-template-rows: minmax(0, 1fr); }
.gtt_modal.no-media .gtt_modal_in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.gtt_modal .material-icons { font-size: 22px; line-height: 1; }
.gtt_modal_close { position: absolute; top: 16px; right: 16px; z-index: 6; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtt_modal_close:hover { background: #f3f4f6; }

/* 이전/다음 글 (모달 바깥, 화면 좌우) */
.gtt_pn { position: fixed; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #222; box-shadow: 0 2px 12px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtt_pn:hover { background: rgba(255,255,255,.95); }
.gtt_pn:disabled { opacity: .3; cursor: default; }
.gtt_pn.prev { left: 20px; }
.gtt_pn.next { right: 20px; }

/* 좌: 미디어 패널 */
.gtt_m_media { --gtt-mh: calc(88vh - 64px); --gtt-strip: 0px; position: relative; min-width: 0; min-height: 360px; padding: 32px; background: #f6f7f9; display: flex; flex-direction: column; overflow: hidden; }
.gtt_m_media.has-strip { --gtt-strip: 68px; }
.gtt_m_stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gtt_m_img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--gtt-mh) - var(--gtt-strip)); object-fit: contain; }
.gtt_m_video, .gtt_m_embed { position: relative; display: block; width: min(100%, calc((var(--gtt-mh) - var(--gtt-strip)) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0; padding: 0; border: 0; border-radius: 10px; background: #000; overflow: hidden; }
.gtt_m_video { cursor: pointer; }
.gtt_m_video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtt_m_playbtn { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.gtt_m_playbtn .material-icons { font-size: 42px; }
.gtt_m_video:hover .gtt_m_playbtn, .gtt_m_video:focus-visible .gtt_m_playbtn { background: var(--gtt-accent); }
.gtt_m_embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.gtt_m_strip { flex: 0 0 auto; display: flex; gap: 8px; margin-top: 12px; padding: 2px; overflow-x: auto; }
.gtt_m_strip > :first-child { margin-left: auto; }
.gtt_m_strip > :last-child { margin-right: auto; }
.gtt_m_th { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; overflow: hidden; opacity: .7; cursor: pointer; }
.gtt_m_th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gtt_m_th.is-on { border-color: var(--gtt-accent); opacity: 1; }
.gtt_ma { position: absolute; top: calc(50% - 34px); z-index: 2; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtt_ma:hover { background: #f3f4f6; }
.gtt_ma.prev { left: 10px; }
.gtt_ma.next { right: 10px; }

/* 우: 정보 패널 (본문은 서버 HTML 그대로) */
.gtt_m_side { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gtt_m_info { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 36px 36px 24px; -webkit-overflow-scrolling: touch; }
.gtt_m_cate { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--gtt-accent-10); color: var(--gtt-accent); font-size: 12px; font-weight: 600; line-height: 1.4; }
.gtt_m_title { margin: 0 24px 20px 0; padding: 0 0 18px; border-bottom: 1px solid #eceef1; font-size: 26px; font-weight: 700; line-height: 1.35; color: #111827; text-align: left; overflow-wrap: anywhere; }
.gtt_m_content { font-size: 15px; line-height: 1.7; color: #444; overflow-wrap: anywhere; }
.gtt_m_content img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.gtt_m_content table { max-width: 100%; }
.gtt_m_content p { margin: 0 0 .8em; }

/* 액션바: 패널 안 하단 고정 */
.gtt_m_bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px 36px; background: #fff; border-top: 1px solid #eceef1; }
.gtt_b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid #d9dde3; border-radius: 10px; background: #fff; color: #222; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.gtt_b:hover { background: #f6f7f9; color: #222; }
.gtt_b .material-icons { font-size: 19px; }
.gtt_b.is-main { background: var(--gtt-accent); border-color: var(--gtt-accent); color: #fff; }
.gtt_b.is-main:hover { background: var(--gtt-accent); color: #fff; opacity: .9; }
.gtt_b.is-more { margin-left: auto; border-color: transparent; background: transparent; color: #555; }
.gtt_b.is-more:hover { background: #f3f4f6; }
.gtt_b_dom { min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #8a919c; }

/* 로딩 스켈레톤 */
.gtt_sk { background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 37%, #eceef1 63%); background-size: 400% 100%; animation: gttshimmer 1.3s ease infinite; border-radius: 8px; }
.gtt_modal_in.is-skel .gtt_m_media .gtt_sk { flex: 1 1 auto; min-height: 296px; }
.gtt_sk_l { height: 16px; margin: 0 0 14px; }
.gtt_sk_t { width: 70%; height: 30px; margin-bottom: 22px; }
@keyframes gttshimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
    .gtt_modal_box { transition: none; opacity: 1; transform: none; }
    .gtt_sk { animation: none; }
}

/* 태블릿·모바일: 1단, 화면 가운데 모달 */
@media (max-width: 768px) {
    .gtt_modal { padding: 16px; }
    .gtt_modal_box { max-width: 560px; }
    .gtt_modal.no-media .gtt_modal_box { max-width: 560px; }
    .gtt_modal_in { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    .gtt_m_media { --gtt-mh: calc(42vh - 32px); flex: 0 0 auto; max-height: 42vh; min-height: 0; padding: 16px; }
    .gtt_modal_in.is-skel .gtt_m_media .gtt_sk { min-height: 160px; }
    .gtt_m_side { flex: 1 1 auto; }
    .gtt_m_info { padding: 24px 20px 16px; }
    .gtt_m_title { font-size: 22px; }
    .gtt_m_bar { padding: 12px 16px; flex-wrap: nowrap; }
    .gtt_b { flex: 1 1 0; min-width: 0; padding: 0 10px; }
    .gtt_b_dom { display: none; }
    .gtt_b.is-more { flex: 0 0 44px; margin-left: 0; padding: 0; }
    .gtt_b.is-more .gtt_b_t { display: none; }
    .gtt_pn { display: none; }
}
@media (max-width: 500px) {
    .gtt_modal_box { max-width: none; border-radius: 16px; }
    .gtt_modal_close { top: 10px; right: 10px; width: 36px; height: 36px; }
    .gtt_m_title { font-size: 20px; margin-right: 28px; }
}
body.gtt_lock { overflow: hidden; }

/* ---------- 확대 보기 라이트박스 (body 직속) ---------- */
.gtt_lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gtt_lb_stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1 1 auto; min-height: 0; padding: 20px 60px 0; box-sizing: border-box; }
.gtt_lb_img { display: block; width: auto; height: auto; max-width: 90vw; max-height: 85vh; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.gtt_lb_img.is-on { opacity: 1; }
.gtt_lb_spin { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: gttspin .8s linear infinite; display: none; }
.gtt_lb.is-loading .gtt_lb_spin { display: block; }
.gtt_lb_cap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; width: 100%; padding: 10px 20px 18px; box-sizing: border-box; color: #fff; font-size: 15px; text-align: center; }
.gtt_lb_title { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtt_lb_more { color: #fff; font-size: 13px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; text-decoration: none; }
.gtt_lb_more:hover { background: rgba(255,255,255,.15); color: #fff; }
.gtt_lb_count { font-size: 13px; color: #ccc; }
.gtt_lb_close, .gtt_lb_nav { position: absolute; z-index: 3; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.gtt_lb_close:hover, .gtt_lb_nav:hover { background: rgba(255,255,255,.3); }
.gtt_lb_close { top: 14px; right: 14px; width: 42px; height: 42px; }
.gtt_lb_nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; }
.gtt_lb_nav.prev { left: 12px; }
.gtt_lb_nav.next { right: 12px; }
.gtt_lb .material-icons { font-size: 26px; line-height: 1; }
.gtt_lb.is-single .gtt_lb_nav { display: none; }

@media (max-width: 500px) {
    .gtt_subj { font-size: calc(var(--gtt-fs-subj, 18px) * .9); }
    .gtt_con { font-size: calc(var(--gtt-fs-con, 14px) * .9); }
    .gtt_lb_stage { padding: 56px 10px 0; }
    .gtt_lb_nav { width: 38px; height: 38px; margin-top: -19px; }
    .gtt_lb_nav.prev { left: 4px; }
    .gtt_lb_nav.next { right: 4px; }
    .gtt_lb_title { max-width: 90vw; }
}

/* ---------- 보기 페이지 첨부 이미지: 늘리지 않고 가운데 정렬 ---------- */
.photo_left_area .mySwiper .swiper-slide { text-align: center; }
.photo_left_area .mySwiper .swiper-slide img, .gtv_img, #bo_v_img img { display: block; width: auto; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }

/* ---------- 저장 토스트 ---------- */
.gtt_toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 10000; padding: 12px 22px; border-radius: 24px; background: rgba(37,40,43,.94); color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .5s; }
.gtt_toast.is-hide { opacity: 0; }

/* =====================================================================
   설정 모달 공용 디자인 (.gtc_*) — 목록설정(#gtt_cfg) / 보기설정(#gtt_vcfg)
   ===================================================================== */
.gtc_modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9998; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; font-family: inherit; }
.gtc_modal.is-open { display: flex; }
.gtc_modal, .gtc_modal * { box-sizing: border-box; }
.gtc_box { width: 100%; max-width: 820px; max-height: 90vh; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; color: #1f2937; text-align: left; }
.gtc_form { display: flex; flex-direction: column; min-height: 0; max-height: 90vh; margin: 0; }
.gtc_head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid #eef0f3; }
.gtc_head h4 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: bold; color: #111827; }
.gtc_desc { margin: 4px 0 0; font-size: 12px; color: #6b7280; line-height: 1.5; }
.gtc_close { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtc_close:hover { background: #f3f4f6; color: #111; }
.gtc_body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 24px; background: #fafbfc; -webkit-overflow-scrolling: touch; }
.gtc_foot { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid #eef0f3; background: #fff; }
.gtc_sp { flex: 1 1 auto; }
.gtc_btn { height: 42px; min-width: 88px; padding: 0 20px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #374151; font-size: 14px; cursor: pointer; }
.gtc_btn:hover { background: #f3f4f6; }
.gtc_btn.is-main { background: var(--gtt-accent); border-color: var(--gtt-accent); color: #fff; font-weight: bold; }
.gtc_btn.is-main:hover { opacity: .9; }

/* 아코디언 섹션 */
.gtc_sec { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.gtc_sec_hd { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: #fff; cursor: pointer; font-size: 15px; font-weight: bold; color: #111827; text-align: left; }
.gtc_sec_hd .gtc_ic { font-size: 20px; color: var(--gtt-accent); }
.gtc_sec_t { flex: 1 1 auto; }
.gtc_chev { font-size: 22px; color: #9ca3af; transition: transform .2s ease; }
.gtc_sec.is-open .gtc_chev { transform: rotate(180deg); }
.gtc_sec_bd { display: none; padding: 4px 16px 16px; border-top: 1px solid #f1f2f4; }
.gtc_sec.is-open .gtc_sec_bd { display: block; }
.gtc_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.gtc_item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid #f5f6f8; }
.gtc_item.is-wide, .gtc_wide_row { grid-column: 1 / -1; }
.gtc_wide_row { display: block; }
.gtc_wide_row .gtc_item { border-bottom: 0; }
.gtc_item.is-wide { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
.gtc_lb { display: flex; flex-direction: column; min-width: 0; }
.gtc_lb label, .gtc_lbt { font-size: 14px; color: #1f2937; }
.gtc_lb small { margin-top: 2px; font-size: 12px; color: #9ca3af; line-height: 1.4; }
.gtc_ct { flex: 0 0 auto; display: flex; align-items: center; }
.is-wide > .gtc_ct { flex: 1 1 auto; }

/* 스위치 (iOS 풍) */
.gtc_sw { position: relative; display: inline-block; width: 46px; height: 28px; margin: 0; }
.gtc_sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.gtc_sl { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 28px; background: #d1d5db; transition: background .2s ease; }
.gtc_sl::before { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.gtc_sw input:checked + .gtc_sl { background: var(--gtt-accent); }
.gtc_sw input:checked + .gtc_sl::before { transform: translateX(18px); }
.gtc_sw input:focus-visible + .gtc_sl { box-shadow: 0 0 0 3px rgba(37,99,235,.3); }

/* 슬라이더 / 색상 */
.gtc_range { display: flex; align-items: center; gap: 10px; width: 190px; }
.gtc_range input[type=range] { flex: 1 1 auto; min-width: 0; height: 4px; accent-color: var(--gtt-accent); }
.gtc_range output { flex: 0 0 auto; min-width: 42px; text-align: right; font-size: 13px; color: #4b5563; }
.gtc_ct input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; }

/* 칩(라디오) */
.gtc_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gtc_chip { position: relative; margin: 0; }
.gtc_chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gtc_chip span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 18px; background: #fff; font-size: 13px; color: #374151; }
.gtc_chip input:checked + span { border-color: var(--gtt-accent); color: var(--gtt-accent); background: rgba(37,99,235,.06); font-weight: bold; }
.gtc_chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37,99,235,.3); }
.gtc_shape { display: inline-block; width: 18px; border: 1.5px solid currentColor; border-radius: 3px; }
.gtc_shape.is-orig { width: 18px; height: 14px; border-style: dashed; }

/* 선택 카드 (클릭 동작) */
.gtc_cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.gtc_card { position: relative; margin: 0; display: block; }
.gtc_card input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.gtc_card > span { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.gtc_card i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; color: #6b7280; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gtc_card b { font-size: 14px; color: #111827; align-self: end; }
.gtc_card small { font-size: 12px; color: #9ca3af; align-self: start; line-height: 1.4; }
.gtc_card input:checked + span { border-color: var(--gtt-accent); background: rgba(37,99,235,.05); box-shadow: 0 0 0 1px var(--gtt-accent) inset; }
.gtc_card input:checked + span i { background: var(--gtt-accent); color: #fff; }
.gtc_card input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37,99,235,.3); }

@media (max-width: 500px) {
    .gtc_modal { padding: 16px; align-items: center; }
    .gtc_box { max-width: none; max-height: 88vh; border-radius: 16px; }
    .gtc_form { max-height: 88vh; }
    .gtc_head, .gtc_foot { padding-left: 16px; padding-right: 16px; }
    .gtc_body { padding: 12px 12px; }
    .gtc_grid { grid-template-columns: minmax(0, 1fr); }
    .gtc_range { width: 150px; }
    .gtc_btn { min-width: 0; padding: 0 14px; }
}

/* ---------- 유튜브 썸네일 표시 아이콘 ---------- */
/* 유튜브 표시: 빨간 둥근 사각 재생 버튼 (인라인 SVG 삼각형) */
.gtt_yt { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 44px; height: 31px; border-radius: 8px; background: #FF0000; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; pointer-events: none; transition: transform .2s ease; }
.gtt_yt svg { display: block; width: 100%; height: 100%; }
.gtt_item:hover .gtt_yt { transform: scale(1.08); }
@media (max-width: 500px) { .gtt_yt { width: 34px; height: 24px; right: 8px; bottom: 8px; border-radius: 6px; } }
@media (hover: none), (max-width: 500px) {
    .has-yt .gtt_zoomov { bottom: 42px; }
}

/* ---------- 보기 페이지 상단 아이콘줄: 같은 기준선 ---------- */
.bo_v_com > li > .btn, .bo_v_com > li > button.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; padding: 0; line-height: 1; box-sizing: border-box; vertical-align: middle; }
.bo_v_com .btn .material-icons, .bo_v_com .btn .fa, .bo_v_com .btn i { font-size: 22px !important; line-height: 1 !important; padding: 0 !important; margin: 0 !important; vertical-align: middle; display: inline-block; }

/* ---------- 댓글 "비밀글" 체크박스 ---------- */
.bo_vc_w .btn_confirm .wr_secret_ck.gtt_ck { float: left; display: inline-flex; align-items: center; gap: 7px; position: relative; width: auto; height: 40px; padding: 0; margin: 0 10px 0 0; background: none; font-size: 13px; font-weight: normal; color: #444; cursor: pointer; }
.bo_vc_w .gtt_ck #wr_secret { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 0; opacity: 0; cursor: pointer; z-index: 2; }
.gtt_ck_box { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid #c4c9d0; border-radius: 4px; background: #fff; position: relative; transition: background .15s ease, border-color .15s ease; }
.gtt_ck input:checked + .gtt_ck_box { background: var(--gtt-accent); border-color: var(--gtt-accent); }
.gtt_ck input:checked + .gtt_ck_box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gtt_ck input:focus-visible + .gtt_ck_box { box-shadow: 0 0 0 3px rgba(37,99,235,.3); }

/* ---------- 인쇄 ---------- */
@media print {
    @page { margin: 12mm; }
    body * { visibility: hidden !important; }
    #bo_v, #bo_v * { visibility: visible !important; }
    #bo_v { position: absolute; left: 0; top: 0; width: 100% !important; margin: 0; padding: 0; }
    /* 아이콘(글자로 깨짐), 버튼/이동/공유/설정/댓글 쓰기폼 숨김 */
    #bo_v .material-icons, #bo_v .fa, #bo_v i.fa,
    #bo_v_top, #bo_v .btn_bo_user, #bo_v .bo_v_nb, #bo_v .noprint,
    #bo_vc_w, #bo_vc .bo_vc_act, #bo_vc .bo_vc_w,
    .rb_share_wrap, #bo_v_sns, #bo_v_share, .rb_contents_bottom_sns, .rb_sideinfo_sns,
    .rb_contents_bottom_inc, .rb_sideinfo_inc, .gtt_cfg_open, .gtc_modal, .gtt_toast,
    #bo_v .swiper-slide-duplicate, #bo_v .swiper-button-next, #bo_v .swiper-button-prev, #bo_v .swiper-pagination, #bo_v .mySwiper2,
    #bo_v .view_info_btns, #bo_v .view_info_btns_btn2 { display: none !important; }
    /* 정보패널 → 본문 위 1단 배치 (float/sticky/position 해제) */
    .bo_v_Wrap { display: flex !important; flex-direction: column-reverse !important; gap: 0 !important; }
    .bo_v_Left, .bo_v_Right, .bo_top_hd { width: 100% !important; max-width: 100% !important; height: auto !important; position: static !important; float: none !important; top: auto !important; }
    .bo_v_Right { margin-bottom: 16px; }
    #bo_v img { max-width: 100% !important; height: auto !important; }
    .photo_left_area { overflow: visible !important; }
    .photo_left_area .swiper-wrapper { display: block !important; transform: none !important; }
    .photo_left_area .swiper-slide { width: 100% !important; margin: 0 0 8px !important; }
}

/* ---------- 상단 전체선택 체크박스: 테마 form.css 의 label 패딩/line-height/:before 위치 초기화 후 22px 박스 수직 중앙 ---------- */
.gtt_bar .gtt_chkall input[type="checkbox"] + label { position: relative; display: block; width: 22px; height: 22px; margin: 0; padding: 0 !important; line-height: 0; vertical-align: middle; cursor: pointer; }
.gtt_bar .gtt_chkall input[type="checkbox"] + label:before { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin: 0; box-sizing: border-box; border: 1.5px solid #c4c9d0; border-radius: 6px; background: #fff; }
.gtt_bar .gtt_chkall input[type="checkbox"] + label:after { top: 4px; left: 7px; width: 6px; height: 11px; margin: 0; border-color: #fff; }
.gtt_bar .gtt_chkall input[type="checkbox"]:checked + label:before { background: var(--gtt-accent); border-color: var(--gtt-accent); }
.gtt_bar .gtt_chkall input[type="checkbox"]:checked + label:after { display: block; }

/* ===== 분류 탭 디자인 (gtt-cate) — _preview_cate.html 과 같은 내용. 강조색은 --gtt-cate-accent(없으면 --gtt-accent) =====
   기존 규칙을 이기는 방법 (원본 파일은 수정하지 않는다):
   - extend/gt_add_extend.php  : #bo_cate_on {color:테마색 !important} · #bo_cate_on:after {border:1px solid 테마색 !important} · #bo_cate a:hover/focus/active {color:테마색 !important}
       → 선택/hover 색은 id 2개 + !important 로, ::after 는 border 를 직접 지정한다
   - rb/rb.css/set.color.css   : .co_XXXXXX .rb_bbs_wrap #bo_cate #bo_cate_on {color}  → 선택 색은 !important
   - rb.css/custom.css         : .rb_bbs_wrap #bo_cate {margin-bottom:20px !important; margin-top:0 !important; border-bottom:1px solid #eee} · #bo_cate.swiper-container {overflow:hidden}
   - rb.css/style.css          : .swiper-slide-category {width:auto !important} · #bo_cate {border-bottom:1px solid rgba(0,0,0,.1)} · #bo_cate #bo_cate_ul:before {display:none !important}
   - 스킨 style.css            : .rb_bbs_wrap #bo_cate a / a:first-child / a:hover / #bo_cate_on / #bo_cate_on::after  (color · background · border · padding · font-weight · font-family)
   - common/gt_board_style.css : #bo_cate li {width:calc(33.333% - 2px)} (≤980px)  → li width:auto */
.rb_bbs_wrap #bo_cate.gtt-cate { margin-bottom: 28px !important; }
.rb_bbs_wrap #bo_cate.gtt-cate-x { --gc: var(--gtt-cate-accent, var(--gtt-accent, #2563eb)); border-bottom: 0; }
.rb_bbs_wrap #bo_cate.gtt-cate-x #bo_cate_ul:before { content: none; }
.rb_bbs_wrap #bo_cate.gtt-cate-x li { padding: 0; margin: 0 8px 0 0; width: auto; }
.rb_bbs_wrap #bo_cate.gtt-cate-x li:last-child { margin-right: 0; }
.rb_bbs_wrap #bo_cate.gtt-cate-x a,
.rb_bbs_wrap #bo_cate.gtt-cate-x a:first-child { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: normal; line-height: 1.2; color: #4b5563; white-space: nowrap; box-shadow: none; transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.rb_bbs_wrap #bo_cate.gtt-cate-x a::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; border-radius: inherit; background: var(--gc); opacity: 0; pointer-events: none; transition: opacity .15s; }
.rb_bbs_wrap #bo_cate.gtt-cate-x a:hover,
.rb_bbs_wrap #bo_cate.gtt-cate-x a:focus,
.rb_bbs_wrap #bo_cate.gtt-cate-x a:active { color: var(--gc) !important; font-family: inherit; }
.rb_bbs_wrap #bo_cate.gtt-cate-x a:hover::before { opacity: .1; }
.rb_bbs_wrap #bo_cate.gtt-cate-x #bo_cate_on { font-family: inherit; font-weight: bold; box-shadow: none; }
.rb_bbs_wrap #bo_cate.gtt-cate-x #bo_cate_on::after { content: none; }
.rb_bbs_wrap #bo_cate.gtt-cate-x #bo_cate_on::before { opacity: 0; }

/* 정렬 · 줄바꿈 */
.rb_bbs_wrap #bo_cate.gtt-cate-al-center { justify-content: center; }
.rb_bbs_wrap #bo_cate.gtt-cate-al-center #bo_cate_ul { justify-content: center; }
.rb_bbs_wrap #bo_cate.gtt-cate-wrap #bo_cate_ul { display: flex; flex-wrap: wrap; gap: 8px 0; }
.rb_bbs_wrap #bo_cate.gtt-cate-wrap li { width: auto; }

/* 글 수 */
.gtt-cate-n { font-size: .8em; font-weight: normal; opacity: .6; margin-left: 4px; }
.rb_bbs_wrap #bo_cate.gtt-cate-x .gtt-cate-n { margin-left: 0; }

/* bar : 밑줄 막대 */
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_ul { position: relative; border-bottom: 1px solid #e5e7eb; }
.rb_bbs_wrap #bo_cate.gtt-cate--bar li { margin-right: 24px; }
.rb_bbs_wrap #bo_cate.gtt-cate--bar a,
.rb_bbs_wrap #bo_cate.gtt-cate--bar a:first-child { height: 50px; color: #6b7280; }
.rb_bbs_wrap #bo_cate.gtt-cate--bar a:hover { background-color: transparent; }
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on:focus,
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on:active { color: #111 !important; background-color: transparent; }
.rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on::after { content: ""; position: absolute; top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 3px; margin: 0; border: 0 !important; background: var(--gc); }

/* pill : 알약 채움 (회색 바탕은 li 가 가지고, 선택 표시는 a 의 채움 또는 JS 표시 요소) */
.rb_bbs_wrap #bo_cate.gtt-cate--pill li { border-radius: 19px; background: #f1f3f5; }
.rb_bbs_wrap #bo_cate.gtt-cate--pill a,
.rb_bbs_wrap #bo_cate.gtt-cate--pill a:first-child { height: 38px; padding: 0 16px; border-radius: 19px; }
.rb_bbs_wrap #bo_cate.gtt-cate--pill a:hover { background-color: transparent; }
.rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:focus,
.rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:active { background-color: var(--gc); color: #fff !important; }

/* outline : 알약 테두리, chip : 알약 테두리 + 글 수 */
.rb_bbs_wrap #bo_cate.gtt-cate--outline a,
.rb_bbs_wrap #bo_cate.gtt-cate--outline a:first-child,
.rb_bbs_wrap #bo_cate.gtt-cate--chip a,
.rb_bbs_wrap #bo_cate.gtt-cate--chip a:first-child { height: 38px; padding: 0 16px; border: 1px solid #d1d5db; border-radius: 19px; background-color: #fff; }
.rb_bbs_wrap #bo_cate.gtt-cate--outline a:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--chip a:hover { border-color: var(--gc); background-color: #fff; }
.rb_bbs_wrap #bo_cate.gtt-cate--outline #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--outline #bo_cate_on:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--chip #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--chip #bo_cate_on:hover { border: 1px solid var(--gc); color: var(--gc) !important; background-color: #fff; }
.rb_bbs_wrap #bo_cate.gtt-cate--outline #bo_cate_on::before,
.rb_bbs_wrap #bo_cate.gtt-cate--chip #bo_cate_on::before { opacity: .1; }
.rb_bbs_wrap #bo_cate.gtt-cate--chip .gtt-cate-n { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #f1f3f5; color: #6b7280; font-size: 12px; line-height: 20px; text-align: center; opacity: 1; }
.rb_bbs_wrap #bo_cate.gtt-cate--chip #bo_cate_on .gtt-cate-n { background: var(--gc); color: #fff; }

/* box : 균등 칸 (align 무시, 칸이 많아 좁아지면 가로 스크롤) */
.rb_bbs_wrap #bo_cate.gtt-cate--box #bo_cate_ul { border-radius: 8px; overflow: hidden; }
.rb_bbs_wrap #bo_cate.gtt-cate--box li { flex: 1 0 auto; min-width: 84px; margin: 0; }
.rb_bbs_wrap #bo_cate.gtt-cate--box a,
.rb_bbs_wrap #bo_cate.gtt-cate--box a:first-child { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #e5e7eb; margin-left: -1px; background-color: #fff; }
.rb_bbs_wrap #bo_cate.gtt-cate--box li:first-child a { margin-left: 0; }
.rb_bbs_wrap #bo_cate.gtt-cate--box a:hover { background-color: #fff; }
.rb_bbs_wrap #bo_cate.gtt-cate--box #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--box #bo_cate_on:hover { z-index: 2; border: 1px solid var(--gc); color: var(--gc) !important; background-color: #fff; box-shadow: inset 0 2px 0 var(--gc); }

/* segment : 세그먼트 */
.rb_bbs_wrap #bo_cate.gtt-cate--segment #bo_cate_ul { flex: 0 0 auto; width: max-content; padding: 4px; border-radius: 12px; background: #f1f3f5; }
.rb_bbs_wrap #bo_cate.gtt-cate--segment li { margin-right: 2px; }
.rb_bbs_wrap #bo_cate.gtt-cate--segment a,
.rb_bbs_wrap #bo_cate.gtt-cate--segment a:first-child { height: 36px; padding: 0 16px; border-radius: 9px; color: #6b7280; }
.rb_bbs_wrap #bo_cate.gtt-cate--segment a:hover { background-color: transparent; }
.rb_bbs_wrap #bo_cate.gtt-cate--segment #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--segment #bo_cate_on:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--segment #bo_cate_on:focus,
.rb_bbs_wrap #bo_cate.gtt-cate--segment #bo_cate_on:active { background-color: #fff; color: #111 !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* card : 큰 카드 — 삼각형은 li 아래 여백(10px) 안에 그려 Swiper 컨테이너의 overflow:hidden 에 잘리지 않게 한다 */
.rb_bbs_wrap #bo_cate.gtt-cate--card li { box-sizing: border-box; padding-bottom: 10px; }
.rb_bbs_wrap #bo_cate.gtt-cate--card a,
.rb_bbs_wrap #bo_cate.gtt-cate--card a:first-child { height: 56px; padding: 0 24px; border-radius: 12px; background-color: #f8f9fb; font-weight: bold; }
.rb_bbs_wrap #bo_cate.gtt-cate--card a:hover { background-color: #f8f9fb; }
.rb_bbs_wrap #bo_cate.gtt-cate--card #bo_cate_on,
.rb_bbs_wrap #bo_cate.gtt-cate--card #bo_cate_on:hover,
.rb_bbs_wrap #bo_cate.gtt-cate--card #bo_cate_on:focus,
.rb_bbs_wrap #bo_cate.gtt-cate--card #bo_cate_on:active { background-color: var(--gc); color: #fff !important; }
.rb_bbs_wrap #bo_cate.gtt-cate--card #bo_cate_on::after { content: ""; position: absolute; top: auto; right: auto; left: 50%; bottom: -9px; width: 0; height: 0; margin: 0 0 0 -8px; background: none; border-style: solid !important; border-width: 8px 8px 0 !important; border-color: var(--gc) transparent transparent !important; }

/* bar · pill : 마우스를 따라다니는 표시 요소 (JS 가 ul 안에 .gtt-cate-ind 를 넣고 html 에 gtt-cate-js 를 붙인다. JS 가 없으면 위의 정적 스타일 그대로) */
.gtt-cate-ind { display: none; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_ul { position: relative; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate .gtt-cate-ind { display: block; position: absolute; left: 0; z-index: 0; pointer-events: none; background: var(--gc); transition: transform .25s cubic-bezier(.4, 0, .2, 1), width .25s cubic-bezier(.4, 0, .2, 1), height .25s, top .25s; will-change: transform; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--bar .gtt-cate-ind { bottom: -1px; height: 3px; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill .gtt-cate-ind { border-radius: 19px; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--bar #bo_cate_on::after { content: none !important; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:hover,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:focus,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on:active { background-color: transparent; color: #4b5563 !important; }
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill a.is-ind,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill a.is-ind:hover,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on.is-ind,
html.gtt-cate-js .rb_bbs_wrap #bo_cate.gtt-cate--pill #bo_cate_on.is-ind:hover { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { html.gtt-cate-js .rb_bbs_wrap #bo_cate .gtt-cate-ind { transition: none; } }

@media (max-width: 500px) {
    .rb_bbs_wrap #bo_cate.gtt-cate { margin-bottom: 18px !important; }
    .rb_bbs_wrap #bo_cate.gtt-cate-x a,
    .rb_bbs_wrap #bo_cate.gtt-cate-x a:first-child { font-size: 14px; }
    .rb_bbs_wrap #bo_cate.gtt-cate--card a,
    .rb_bbs_wrap #bo_cate.gtt-cate--card a:first-child { height: 48px; padding: 0 18px; }
}

/* ===== 목록설정 모달 : 분류 탭 디자인 선택 (모양을 그린 미리보기 버튼) ===== */
.gtc_cs_list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gtc_cs { position: relative; margin: 0; display: block; cursor: pointer; }
.gtc_cs input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.gtc_cs_box { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; overflow: hidden; }
.gtc_cs b { display: block; margin-top: 4px; font-size: 11px; font-weight: normal; color: #6b7280; text-align: center; }
.gtc_cs input:checked ~ .gtc_cs_box { border-color: var(--gtt-accent); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.gtc_cs input:checked ~ b { color: var(--gtt-accent); font-weight: bold; }
.gtc_cs input:focus-visible ~ .gtc_cs_box { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }
.gtc_cs i { position: relative; flex: 0 0 auto; font-style: normal; font-size: 9px; line-height: 1; color: #6b7280; white-space: nowrap; }
.gtc_cs--line i.is-on { color: var(--gtt-accent); font-weight: bold; border-bottom: 2px solid var(--gtt-accent); padding-bottom: 3px; }
.gtc_cs--bar .gtc_cs_box { align-items: flex-end; gap: 8px; border-bottom: 1px solid #e5e7eb; }
.gtc_cs--bar i { padding: 0 1px 6px; }
.gtc_cs--bar i.is-on { color: #111; font-weight: bold; box-shadow: 0 3px 0 var(--gtt-accent); }
.gtc_cs--pill i { padding: 5px 7px; border-radius: 10px; background: #f1f3f5; }
.gtc_cs--pill i.is-on, .gtc_cs--card i.is-on { background: var(--gtt-accent); color: #fff; }
.gtc_cs--outline i, .gtc_cs--chip i { padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 10px; }
.gtc_cs--outline i.is-on, .gtc_cs--chip i.is-on { border-color: var(--gtt-accent); color: var(--gtt-accent); }
.gtc_cs--chip i::after { content: "9"; margin-left: 3px; padding: 1px 3px; border-radius: 6px; background: #f1f3f5; color: #6b7280; font-size: 7px; }
.gtc_cs--box .gtc_cs_box { gap: 0; padding: 0 4px; }
.gtc_cs--box i { flex: 1 1 0; margin-left: -1px; padding: 9px 0; text-align: center; border: 1px solid #e5e7eb; }
.gtc_cs--box i.is-on { border-color: var(--gtt-accent); color: var(--gtt-accent); box-shadow: inset 0 2px 0 var(--gtt-accent); z-index: 1; }
.gtc_cs--segment .gtc_cs_box { gap: 2px; margin: 0; padding: 3px; background: #f1f3f5; border-radius: 10px; }
.gtc_cs--segment i { padding: 6px 6px; border-radius: 7px; }
.gtc_cs--segment i.is-on { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.gtc_cs--card i { padding: 9px 7px; border-radius: 6px; background: #f8f9fb; font-weight: bold; }
@media (max-width: 500px) { .gtc_cs_list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 유튜브 쇼츠 세로(9:16) 카드 · 왼쪽 아래 빨간 번개 아이콘 ===== */
.gtt_list:not(.gtt-masonry) { align-items: start; }   /* 쇼츠 카드만 길어지고 이웃 카드는 위 정렬 */
.gtt_item.gtt-shorts .gtt_thumb { aspect-ratio: 9 / 16; }
.gtt_item.gtt-shorts .gtt_thumb .gtt_hit { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: auto; }
.gtt_item.gtt-shorts .gtt_thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center center; padding: 0; }
.gtt_yt.gtt_yt_shorts { left: 10px; right: auto; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: transparent; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
@media (max-width: 500px) { .gtt_yt.gtt_yt_shorts { left: 8px; bottom: 8px; width: 24px; height: 24px; } }

/* ===== 레이어 모달 : 쇼츠는 영상 상자를 세로로, 모두 미디어 영역 안 가로 가운데 ===== */
.gtt_m_media.is-shorts .gtt_m_video, .gtt_m_media.is-shorts .gtt_m_embed { width: min(100%, calc((var(--gtt-mh) - var(--gtt-strip)) * 9 / 16)); aspect-ratio: 9 / 16; }
.gtt_m_stage > .gtt_m_video, .gtt_m_stage > .gtt_m_embed, .gtt_m_stage > .gtt_m_img { margin-left: auto; margin-right: auto; }
