﻿.gb-wrap * {
  box-sizing: border-box;
}

.gb-wrap {
  --gb-bg-main: #061229;
  --gb-bg-accent: #a50045;
  --gb-bg-dark: #22262d;
  --gb-text: #ffffff;
  --gb-muted: rgba(255, 255, 255, 0.72);
  --gb-line: rgba(255, 255, 255, 0.2);
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw) 56px;
  overflow-x: hidden;
  color: var(--gb-text);
  font-family: 'Noto Sans KR', sans-serif;
}

.gb-notice.gb-wrap {
  margin-bottom: 0;
}

.gb-webzine.gb-wrap {
  margin-top: 0;
  margin-bottom: 0;
}

.gb-news.gb-wrap {
  margin-top: 0;
  margin-bottom: 0;
}


.gb-people.gb-wrap {
  margin-bottom: 0;
}

.gb-empty {
  padding: 24px;
  border-radius: 14px;
  background: #f4f5f7;
  color: #1e2a40;
}

.gb-fallback-image,
.gb-side-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #0d1c37, #152a50);
}

.gb-mini-line {
  width: 96px;
  height: 4px;
  background: #ff0037;
  margin-bottom: 22px;
  display: block;
}

.gb-tag {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gb-webzine {
  position: relative;
  background: linear-gradient(90deg, #081327 0%, #07162f 55%, #04112a 100%);
  padding: 62px 0 68px;
  overflow: hidden;
}

.gb-webzine::before {
  content: '';
  position: absolute;
  left: 24%;
  top: -80px;
  width: 180px;
  height: calc(100% + 160px);
  background: rgba(255, 255, 255, 0.03);
  transform: skewX(12deg);
  pointer-events: none;
}

.gb-webzine-slider {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.gb-webzine-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: stretch;
  min-height: 460px;
}

.gb-webzine-slide.is-active {
  display: grid;
}

.gb-webzine-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 460px;
  padding: 8px 6px 8px 0;
}

.gb-webzine-left h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 2.3vw, 44px);
  line-height: 1.24;
  font-weight: 900;
  color: #fff;
}

.gb-title-link,
.gb-summary-link {
  color: inherit;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.gb-title-link:hover,
.gb-summary-link:hover {
  opacity: 1;
  text-decoration: none !important;
}

.gb-desc {
  margin: 0;
  font-size: clamp(18px, 0.96vw, 23px);
  line-height: 1.5;
  color: var(--gb-muted);
}

.gb-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff0037;
  text-decoration: none;
  font-size: 32px;
  font-weight: 800;
}

.gb-more::after {
  content: '\2192';
  font-size: 24px;
}

.gb-webzine-right {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 460px;
  max-width: 760px;
  margin: 0 auto;
}

.gb-webzine-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.15), rgba(2, 5, 12, 0.55));
}

.gb-webzine-right img,
.gb-webzine-right .gb-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-vol {
  display: none;
}

.gb-webzine-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: -68px;
  padding-right: 36px;
  position: relative;
  z-index: 4;
}

.gb-arrow {
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: color 0.25s, background 0.25s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gb-arrow:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

.gb-arrow:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.gb-arrow::before {
  content: '' !important;
  position: absolute !important;
  width: 12px !important;
  height: 12px !important;
  border-top: 2.5px solid #fff !important;
  border-left: 2.5px solid #fff !important;
  border-right: none !important;
  border-bottom: none !important;
  background: transparent !important;
  top: 50% !important;
}

.gb-arrow::after {
  display: none !important;
}

.gb-prev::before {
  left: 14px !important;
  transform: translateY(-50%) rotate(-45deg) !important;
}

.gb-next::before {
  right: 14px !important;
  left: auto !important;
  border-left: none !important;
  border-right: 2.5px solid #fff !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.gb-dots {
  display: none;
}

.gb-dot {
  display: none;
}

.gb-notice,
.gb-news {
  background: var(--gb-bg-accent);
  padding: 50px 0 56px;
}

.gb-news {
  padding-top: 28px;
  padding-bottom: 18px;
}

.gb-news > .gb-head,
.gb-news > .gb-news-grid {
  width: min(1440px, 100%);
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.gb-news > .gb-head {
  margin-bottom: 12px;
}

.gb-notice > .gb-head,
.gb-notice > .gb-notice-list {
  width: min(1440px, 100%);
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.gb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gb-notice .gb-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gb-plus {
  color: #fff;
  text-decoration: none;
  font-size: clamp(32px, 1.8vw, 52px);
  line-height: 1;
}

.gb-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.gb-notice-list li {
  display: grid;
  grid-template-columns: 360px 1fr 220px;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gb-category {
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 800;
}

.gb-category::before {
  content: '\2022';
  margin-right: 6px;
}

.gb-category.is-empty {
  visibility: hidden;
}

.gb-notice-list a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.gb-notice-list time {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  white-space: nowrap;
  text-align: right;
}

.gb-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gb-news-card {
  color: #fff;
}

.gb-news-card .gb-image {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2f3644;
  margin-bottom: 10px;
}

.gb-news-card img,
.gb-news-card .gb-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-news-body .gb-chip {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.gb-news-body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.gb-news-body h4 a {
  color: #fff;
  text-decoration: none;
}

.gb-news-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.45;
}

.gb-people {
  display: grid;
  grid-template-columns: 1fr 340px;
  background: #2b2d32;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.gb-people-main {
  position: relative;
}

.gb-people-slide {
  display: none;
  grid-template-columns: minmax(320px, 36%) 1fr;
}

.gb-people-slide.is-active {
  display: grid;
}

.gb-people-left {
  padding: 58px 48px 102px;
  background: rgba(33, 34, 38, 0.95);
}


.gb-people-left .gb-tag {
  font-size: clamp(11px, 0.72vw, 18px);
  letter-spacing: 0.06em;
}

.gb-people-left h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 1.65vw, 42px);
  line-height: 1.22;
}

.gb-people-left p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.88vw, 20px);
  line-height: 1.5;
}

.gb-people-image {
  min-height: 620px;
}

.gb-people-image img,
.gb-people-image .gb-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gb-people-side {
  background: #1f2125;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.gb-side-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffffff;
  padding: 24px 18px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  text-align: left;
  cursor: pointer;
}

.gb-side-item.is-active {
  background: var(--gb-bg-accent);
  color: #fff;
}

.gb-side-item img,
.gb-side-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 70px;
}

.gb-side-item span {
  font-size: clamp(15px, 1.0vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
}

.gb-side-item.is-active span {
  font-weight: 800;
}

.gb-people-controls {
  position: absolute;
  left: 48px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1600px) {
  .gb-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .gb-tag {
    font-size: 16px;
  }

  .gb-webzine-left h2 {
    font-size: clamp(28px, 2.2vw, 44px);
  }

  .gb-desc,
  .gb-more,
  .gb-category,
  .gb-notice-list a,
  .gb-news-body h4,
  .gb-people-left p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.88vw, 20px);
  line-height: 1.5;
}

  .gb-news-body p,
  .gb-news-body .gb-chip,
  .gb-side-item span,
  .gb-notice-list time {
    font-size: clamp(13px, 1vw, 22px);
  }

  .gb-news .gb-head h3 {
    font-size: clamp(30px, 2vw, 52px);
  }

  .gb-notice .gb-head h3 {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .gb-people-left .gb-tag {
  font-size: clamp(11px, 0.72vw, 18px);
  letter-spacing: 0.06em;
}

  .gb-people-left h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 1.65vw, 42px);
  line-height: 1.22;
}

  .gb-people-left p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.88vw, 20px);
  line-height: 1.5;
}

  .gb-side-item span {
  font-size: clamp(15px, 1.0vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
}

  .gb-vol {
    font-size: clamp(18px, 1.3vw, 34px);
    padding: 20px;
  }
}

@media (max-width: 1200px) {
  .gb-webzine-slide,
  .gb-people-slide {
    grid-template-columns: 1fr;
  }

  .gb-webzine::before {
    display: none;
  }

  .gb-webzine-left,
  .gb-webzine-right,
  .gb-people-image {
    min-height: auto;
  }

  .gb-webzine-right {
    height: 380px;
  }

  .gb-webzine-left {
    height: auto;
  }

  .gb-webzine-controls {
    justify-content: center;
    margin-top: 20px;
    padding-right: 0;
  }

  .gb-people {
    grid-template-columns: 1fr;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .gb-people-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gb-notice-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 14px 0;
  }

  .gb-category.is-empty {
    display: none;
  }

  .gb-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* wrap 기본 — 100vw 방식 완전 해제 */
  .gb-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 12px;
    left: auto !important;
    position: static !important;
    overflow: hidden !important;
  }

  .gb-news.gb-wrap {
    margin-bottom: 0;
  }

  .gb-people.gb-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 웹진/공지/뉴스/피플 공통 패딩 */
  .gb-webzine,
  .gb-notice,
  .gb-news,
  .gb-people-left {
    padding: 8px 16px 8px;
  }

  .gb-notice > .gb-head,
  .gb-notice > .gb-notice-list {
    width: 100%;
  }

  /* 웹진 슬라이더 */
  .gb-webzine-slider {
    padding: 0 8px;
  }

  .gb-webzine-slide {
    gap: 0;
    min-height: 0;
  }

  /* 좌측 텍스트 — 폰트만 축소 */
  .gb-webzine-left {
    height: auto;
    padding: 0;
  }

  .gb-wrap .gb-webzine-left h2 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    word-break: keep-all;
  }

  .gb-wrap .gb-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255,255,255,0.55) !important;
  }

  .gb-wrap .gb-tag {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .gb-wrap .gb-mini-line {
    margin-bottom: 2px !important;
    margin-top: 0 !important;
    width: 28px !important;
  }

  .gb-wrap .gb-more {
    font-size: 16px !important;
    margin-top: 4px !important;
  }

  .gb-wrap .gb-more::after {
    font-size: 14px !important;
  }

  /* 우측 이미지 영역 */
  .gb-webzine-right {
    height: 180px;
  }

  /* 컨트롤 */
  .gb-webzine-controls {
    justify-content: center;
    margin-top: 0;
    padding-right: 0;
  }

  .gb-news > .gb-head,
  .gb-news > .gb-news-grid {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .gb-news-grid,
  .gb-people-side {
    grid-template-columns: 1fr;
  }

  .gb-arrow {
    width: 36px;
    height: 36px;
  }

  .gb-arrow::before {
    width: 11px;
    height: 11px;
  }
}

/* ================================================================
   디자인 프리셋별 스타일 (data-design 속성으로 적용)
   ================================================================ */

/* ── 라이트 프리셋 ── */
.gb-wrap[data-design="light"] {
  color: #1e293b;
}
.gb-wrap[data-design="light"] .gb-mini-line {
  background: #2563eb;
}
.gb-wrap[data-design="light"] .gb-tag {
  color: #1e293b !important;
}
.gb-wrap[data-design="light"] .gb-title-link,
.gb-wrap[data-design="light"] h2 a,
.gb-wrap[data-design="light"] h4 a {
  color: #0f172a !important;
}
.gb-wrap[data-design="light"] .gb-desc,
.gb-wrap[data-design="light"] .gb-summary-link {
  color: #475569 !important;
}
.gb-wrap[data-design="light"] .gb-arrow {
  color: #374151;
}
.gb-wrap[data-design="light"] .gb-arrow:hover {
  color: #111827;
}
.gb-wrap[data-design="light"] .gb-dot {
  background: rgba(0,0,0,0.12);
}
.gb-wrap[data-design="light"] .gb-dot.is-active {
  background: #2563eb;
}
.gb-wrap[data-design="light"] .gb-vol {
  color: #94a3b8;
}
.gb-wrap[data-design="light"] .gb-chip {
  background: #e2e8f0;
  color: #475569;
}
.gb-wrap[data-design="light"] .gb-plus {
  color: #2563eb;
  border-color: #2563eb;
}

/* ── 그라데이션 프리셋 ── */
.gb-wrap[data-design="gradient"] .gb-mini-line {
  background: linear-gradient(90deg, #a78bfa, #f472b6);
}
.gb-wrap[data-design="gradient"] .gb-dot.is-active {
  background: #a78bfa;
}
.gb-wrap[data-design="gradient"] .gb-plus {
  color: #a78bfa;
  border-color: #a78bfa;
}

/* ── 웜톤 프리셋 ── */
.gb-wrap[data-design="warm"] {
  color: #44210a;
}
.gb-wrap[data-design="warm"] .gb-mini-line {
  background: #d97706;
}
.gb-wrap[data-design="warm"] .gb-tag {
  color: #78350f !important;
}
.gb-wrap[data-design="warm"] .gb-title-link,
.gb-wrap[data-design="warm"] h2 a,
.gb-wrap[data-design="warm"] h4 a {
  color: #44210a !important;
}
.gb-wrap[data-design="warm"] .gb-desc,
.gb-wrap[data-design="warm"] .gb-summary-link {
  color: #92400e !important;
}
.gb-wrap[data-design="warm"] .gb-arrow {
  color: #78350f;
}
.gb-wrap[data-design="warm"] .gb-arrow:hover {
  color: #451a03;
}
.gb-wrap[data-design="warm"] .gb-dot {
  background: rgba(120,53,15,0.15);
}
.gb-wrap[data-design="warm"] .gb-dot.is-active {
  background: #d97706;
}
.gb-wrap[data-design="warm"] .gb-chip {
  background: #fde68a;
  color: #78350f;
}
.gb-wrap[data-design="warm"] .gb-plus {
  color: #d97706;
  border-color: #d97706;
}

/* ── 오션 프리셋 ── */
.gb-wrap[data-design="ocean"] .gb-mini-line {
  background: linear-gradient(90deg, #38bdf8, #06b6d4);
}
.gb-wrap[data-design="ocean"] .gb-dot.is-active {
  background: #38bdf8;
}
.gb-wrap[data-design="ocean"] .gb-plus {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ── 미니멀 프리셋 ── */
.gb-wrap[data-design="minimal"] {
  color: #111827;
}
.gb-wrap[data-design="minimal"] .gb-mini-line {
  background: #111827;
  height: 2px;
}
.gb-wrap[data-design="minimal"] .gb-tag {
  color: #374151 !important;
  letter-spacing: 0.12em;
}
.gb-wrap[data-design="minimal"] .gb-title-link,
.gb-wrap[data-design="minimal"] h2 a,
.gb-wrap[data-design="minimal"] h4 a {
  color: #111827 !important;
}
.gb-wrap[data-design="minimal"] .gb-desc,
.gb-wrap[data-design="minimal"] .gb-summary-link {
  color: #6b7280 !important;
}
.gb-wrap[data-design="minimal"] .gb-arrow {
  color: #374151;
}
.gb-wrap[data-design="minimal"] .gb-arrow:hover {
  color: #111827;
}
.gb-wrap[data-design="minimal"] .gb-dot {
  background: #d1d5db;
}
.gb-wrap[data-design="minimal"] .gb-dot.is-active {
  background: #111827;
}
.gb-wrap[data-design="minimal"] .gb-chip {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.gb-wrap[data-design="minimal"] .gb-plus {
  color: #111827;
  border-color: #111827;
}
.gb-wrap[data-design="minimal"] .gb-fallback-image,
.gb-wrap[data-design="minimal"] .gb-side-fallback {
  background: linear-gradient(120deg, #f3f4f6, #e5e7eb);
}

.gbf-wrap,
.gbf-wrap * {
  box-sizing: border-box;
}

/* 테마 버튼 스타일 초기화 */
.gbf-wrap button,
.gbf-wrap .gbf-search-v2__btn,
.gbf-wrap .gbf-cat-tab,
.gbf-wrap .gbf-pg-btn,
.gbf-wrap .gbf-pg-num {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.gbf-wrap a {
  text-decoration: none;
}

.gbf-wrap {
  width: min(1680px, calc(100% - 72px));
  margin: 0 auto 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* (검색바 v2 → 아래 프리미엄 섹션으로 통합) */

/* ── 툴바 (카테고리 탭 + 정렬) ─────────────────────────── */
.gbf-toolbar-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px 0;
  flex-wrap: wrap;
}
.gbf-sort-form { display: flex; align-items: center; }
.gbf-sort-select {
  padding: 8px 32px 8px 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center !important;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px !important;
  font-weight: 500;
  color: #374151 !important;
  cursor: pointer;
  transition: border-color 0.15s;
  box-shadow: none !important;
  height: auto !important;
}
.gbf-sort-select:hover { border-color: #94a3b8 !important; }

/* ── 테이블 ─────────────────────────────────────────────── */
.gbf-table-wrap {
  margin: 16px 28px 0;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.gbf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: none !important;
}
.gbf-table thead tr {
  background: transparent;
  border-top: none;
  border-bottom: 1px solid #e5e7eb;
}
.gbf-table thead th {
  padding: 12px 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  border: none !important;
  background: transparent !important;
}
.gbf-table thead th.gbf-col-subject { text-align: left; }
.gbf-col-no    { width: 50px;  text-align: center; }
.gbf-col-author{ width: 120px; text-align: center; }
.gbf-col-date  { width: 110px; text-align: center; white-space: nowrap; }
.gbf-col-views { width: 60px;  text-align: center; }
.gbf-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}
.gbf-table tbody tr:last-child { border-bottom: none; }
.gbf-table tbody tr:hover { background: #fafbff; }
.gbf-table td {
  padding: 18px 16px;
  color: #374151;
  vertical-align: middle;
  text-align: center;
  border: none !important;
}
.gbf-table td.gbf-col-subject { text-align: left; }
.gbf-table td.gbf-col-no { color: #94a3b8; font-size: 14px; font-weight: 500; }
.gbf-table td.gbf-col-date { color: #94a3b8; font-size: 13px; letter-spacing: 0.02em; }
.gbf-table td.gbf-col-views { color: #1e293b; font-size: 14px; font-weight: 700; }
.gbf-table-empty {
  padding: 70px 20px !important;
  text-align: center !important;
  color: #94a3b8;
  font-size: 15px;
}

/* 제목 셀 내부 */
.gbf-title-link {
  display: inline;
  color: #1e293b !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.5;
  word-break: break-all;
}
.gbf-title-link:hover { color: #2563eb !important; }

/* 수정/삭제 버튼 */
.gbf-row-actions-v2 {
  display: none;
  gap: 8px;
  margin-top: 6px;
}
.gbf-table tbody tr:hover .gbf-row-actions-v2 { display: flex; }
.gbf-row-actions-v2 button,
.gbf-row-actions-v2 a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.12s;
  box-shadow: none !important;
  line-height: 1.4 !important;
}
.gbf-row-actions-v2 .gbf-edit {
  border: 1px solid #d1d5db !important;
  background: #f9fafb !important;
  color: #374151 !important;
}
.gbf-row-actions-v2 .gbf-edit:hover { background: #e5e7eb !important; }
.gbf-row-actions-v2 .gbf-delete {
  border: 1px solid #fecaca !important;
  background: #fff5f5 !important;
  color: #dc2626 !important;
}
.gbf-row-actions-v2 .gbf-delete:hover { background: #fee2e2 !important; }

/* 저자 셀 */
.gbf-col-author { line-height: 1.5; font-size: 14px; color: #374151; }
.gbf-staff-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b9bef !important;
  margin-bottom: 1px;
}

/* ── 글쓰기 버튼 (프리미엄) ──────────────────────────── */
.gbf-wrap .gbf-write-btn--float {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 24px 28px 28px auto !important;
  padding: 13px 28px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35) !important;
  transition: all 0.2s;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
.gbf-wrap .gbf-write-btn--float:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,0.45) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.gbf-wrap .gbf-write-btn--float svg { stroke: #fff !important; }

/* ── 페이지네이션 ───────────────────────────────────────── */
.gbf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px 28px;
}
.gbf-pg-btn,
.gbf-pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.gbf-pg-btn {
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  color: #374151 !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none !important;
}
.gbf-pg-btn:hover:not(.gbf-pg-btn--disabled) {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #374151 !important;
}
.gbf-pg-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}
.gbf-pg-num {
  border: 1.5px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: none !important;
}
.gbf-pg-num:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}
.gbf-pg-num--active,
.gbf-pg-num--active:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25) !important;
}

/* 구버전 호환 숨김 */
.gbf-head       { display: none !important; }
.gbf-list       { display: none !important; }
.gbf-write-btn:not(.gbf-write-btn--float) { display: none !important; }

/* ============================================================
   GAMSUNGBOARD PREMIUM MODAL + BANNER + THUMBNAIL
   ============================================================ */

/* ── Title Banner (전 게시판 공통) ──────────────────────── */
.gbf-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #0a1a3a 0%, #081327 100%);
  color: #ffffff;
  overflow: hidden;
}
.gbf-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(120, 150, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 90, 170, 0.06), transparent 60%);
  pointer-events: none;
}
.gbf-banner-inner {
  position: relative;
  z-index: 1;
}
.gbf-banner-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9fb3d9;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.gbf-banner-title {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #ffffff;
}

/* ── Page Header (프리미엄) ──────────────────────────── */
.gbf-page-header {
  width: min(1680px, calc(100% - 72px));
  margin: 0 auto 24px;
  font-family: 'Noto Sans KR', sans-serif;
}
.gbf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.gbf-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}
.gbf-breadcrumb a:hover { color: #2563eb; }
.gbf-breadcrumb-sep { color: #cbd5e1; }
.gbf-page-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.gbf-page-title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.gbf-page-desc {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.gbf-total-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #a7f3d0;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 6px;
}

/* ── Category Tabs ───────────────────────────────────── */
.gbf-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.gbf-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 22px;
  border: 1.5px solid #e2e8f0;
  background: #fff !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s;
  white-space: nowrap;
  box-shadow: none !important;
}
.gbf-cat-tab:hover {
  border-color: #2563eb;
  color: #2563eb !important;
  background: #fff !important;
  text-decoration: none !important;
}
.gbf-cat-tab--active,
.gbf-cat-tab--active:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  font-weight: 700;
}

/* ── Search Bar v2 (프리미엄) ────────────────────────── */
.gbf-search-v2 {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin: 24px 28px 0;
  background: linear-gradient(135deg, #eef2ff 0%, #f3f0ff 40%, #fdf2f8 100%);
  border-radius: 14px;
  padding: 18px 22px;
}
.gbf-search-v2__inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gbf-search-v2__inner:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.gbf-search-v2__icon {
  color: #94a3b8;
  flex-shrink: 0;
}
.gbf-search-v2__input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 14px 4px !important;
  font-size: 15px !important;
  color: #1e293b !important;
  background: transparent !important;
  min-width: 0;
  margin: 0 !important;
  height: auto !important;
}
.gbf-search-v2__input::placeholder { color: #94a3b8; }
.gbf-search-v2__btn {
  flex-shrink: 0;
  padding: 0 32px !important;
  height: 50px !important;
  background: #1e293b !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.gbf-search-v2__btn:hover {
  background: #0f172a !important;
  color: #fff !important;
}

/* ── Premium Write Modal ──────────────────────────────── */
.gbf-modal {
  position: fixed;
  inset: 0;
  /* display:none 대신 visibility/opacity 로 숨김:
     - 타 플러그인의 '.is-open' 일괄제거 로직과의 충돌 방지
     - TinyMCE 에디터가 페이지 로드 시점에 레이아웃·초기화를 마쳐
       "글쓰기 버튼 눌러도 한참 뒤에 열린다"는 체감 지연 제거 */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  z-index: 9999;
  background: rgba(10, 15, 30, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}
.gbf-modal.gbf-is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
@keyframes gbf-modal-slide {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Dialog shell (header + scrollable body + sticky footer) ── */
.gbf-modal-dialog {
  width: min(1160px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 24px 64px rgba(0,0,0,0.28),
    0 8px 24px rgba(0,0,0,0.14);
  animation: gbf-modal-slide 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Header (fixed) ── */
.gbf-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(135deg, #0d1b3e 0%, #091226 100%);
  color: #fff;
  position: relative;
}
.gbf-modal-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6 50%, #ec4899);
}
.gbf-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gbf-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
}
.gbf-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}
.gbf-close {
  width: 34px;
  height: 34px;
  border: 0 !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 9px !important;
  color: #cbd5e1 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.2s;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.gbf-close:hover {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  transform: rotate(90deg);
  border: 0 !important;
  box-shadow: none !important;
}

/* ── Form (flex column fills remaining dialog space) ── */
.gbf-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Scrollable body ── */
.gbf-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.gbf-modal-body::-webkit-scrollbar { width: 8px; }
.gbf-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

/* ── Field label ── */
.gbf-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
}

/* ── Fields ── */
.gbf-field { margin-bottom: 18px; }
.gbf-field:last-child { margin-bottom: 0; }

/* Title */
.gbf-title-field input[type='text'] {
  width: 100%;
  height: 50px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.gbf-title-field input[type='text']:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
.gbf-title-field input[type='text']::placeholder { color: #94a3b8; }

/* Thumbnail */
.gbf-thumb-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s;
}
.gbf-thumb-area.has-image {
  border-style: solid;
  border-color: #3b82f6;
}
.gbf-thumb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  pointer-events: none;
}
.gbf-thumb-empty p { margin: 0; font-size: 12px; }
.gbf-thumb-preview {
  width: 100%; height: 100%; object-fit: cover;
  display: none;
}
.gbf-thumb-area.has-image .gbf-thumb-empty { display: none; }
.gbf-thumb-area.has-image .gbf-thumb-preview { display: block; }
.gbf-thumb-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Editor */
.gbf-editor-field .wp-editor-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.gbf-editor-field .wp-editor-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}
.gbf-editor-field .mce-container,
.gbf-editor-field .mce-panel,
.gbf-editor-field .wp-editor-container,
.gbf-editor-field textarea.wp-editor-area {
  border-color: #e2e8f0 !important;
}
.gbf-editor-field textarea.wp-editor-area {
  min-height: 320px !important;
}

/* 미디어 라이브러리 본문 삽입 버튼 */
.gbf-media-insert-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.gbf-media-insert-btn:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #eff6ff;
}

/* HTML source */
.gbf-html-source { margin-top: 14px; }
.gbf-html-source textarea {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.18s;
}
.gbf-html-source textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

/* ── Sidebar (right col) ── */
.gbf-body-side {
  position: sticky;
  top: 0;
}
.gbf-file-panel {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gbf-file-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #64748b;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.18s, background 0.18s;
}
.gbf-file-drop:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.gbf-file-drop input { display: none; }
.gbf-file-drop svg   { color: #94a3b8; }
.gbf-file-drop strong {
  font-size: 13px; font-weight: 700; color: #334155;
}
.gbf-file-drop em {
  font-style: normal; font-size: 11px; color: #94a3b8; text-align: center;
}

/* File list */
.gbf-file-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gbf-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.gbf-file-icon {
  flex-shrink: 0;
  color: #64748b;
  display: flex;
}
.gbf-file-name {
  flex: 1;
  font-size: 12px;
  color: #334155;
  word-break: break-all;
  line-height: 1.4;
}
.gbf-file-insert-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}
.gbf-file-insert-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.gbf-file-insert-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 기존 첨부파일 섹션 (글수정 모달) */
.gbf-existing-files {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px dashed #e2e8f0;
}
.gbf-existing-files .gbf-field-label {
  margin-bottom: 10px;
}
.gbf-existing-files .gbf-file-item {
  flex-wrap: wrap;
  gap: 6px;
}
.gbf-existing-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
  margin-bottom: 4px;
}
.gbf-existing-files .gbf-file-item {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  background: #f8fafc;
}
.gbf-existing-files .gbf-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.gbf-existing-files .gbf-file-insert-btn {
  width: 100%;
  padding: 7px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.3s, opacity 0.15s;
}

/* Shared secondary / ghost buttons */
.gbf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.gbf-btn-secondary:hover { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.gbf-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.gbf-btn-ghost:hover { background: #fef2f2; border-color: #dc2626; }

/* ── Sticky footer ── */
.gbf-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px;
  background: #fff;
  border-top: 1.5px solid #e2e8f0;
}
.gbf-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 100px;
  height: 44px;
  padding: 0 20px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.gbf-cancel:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  box-shadow: none !important;
}
.gbf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  height: 44px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59,130,246,0.38) !important;
  transition: all 0.18s;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.gbf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(59,130,246,0.48) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  border: 0 !important;
}
.gbf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

body.gb-modal-open {
  overflow: hidden;
}

/* ── 모달 모바일 반응형 ── */
@media (max-width: 768px) {
  .gbf-modal-dialog {
    width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .gbf-modal-header {
    padding: 12px 16px !important;
  }

  .gbf-modal-header h3 {
    font-size: 16px !important;
  }

  .gbf-modal-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .gbf-modal-body {
    padding: 12px 14px !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gbf-field {
    margin-bottom: 10px !important;
  }

  .gbf-field-label {
    margin-bottom: 4px !important;
    font-size: 10px !important;
  }

  .gbf-title-field input[type='text'] {
    height: 40px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
  }

  .gbf-thumb-area {
    aspect-ratio: 16/8 !important;
    border-radius: 8px !important;
  }

  .gbf-attach-area {
    padding: 8px !important;
    gap: 6px !important;
  }

  .gbf-modal-footer {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .gbf-cancel,
  .gbf-submit {
    height: 38px !important;
    min-width: 0 !important;
    flex: 1 !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
  }
}

/* wp.media 프레임이 글쓰기 모달 위에 표시되도록 z-index 보장 */
.media-modal-backdrop { z-index: 19900 !important; }
.media-modal          { z-index: 20000 !important; }

@media (max-width: 1024px) {
  .gbf-wrap {
    width: calc(100% - 20px);
  }

  .gbf-list li {
    grid-template-columns: 1fr;
  }

  .gbf-list time {
    grid-column: 1;
    grid-row: auto;
  }

  .gbf-row-actions {
    grid-column: 1;
    grid-row: auto;
    margin-left: 0;
    justify-content: flex-end;
  }

  .gbf-editor-row {
    grid-template-columns: 1fr;
  }
}







.gb-news.gb-wrap,
.gb-people.gb-wrap {
  margin-bottom: 0 !important;
}


/* ── gamsung_latest 숏코드 ─────────────────────────── */
.gb-latest {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  color: #333;
}
.gb-latest *,
.gb-latest *::before,
.gb-latest *::after {
  box-sizing: border-box;
}
.gb-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gb-latest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  border-bottom: 1px solid #e5e5e5;
}
.gb-latest-item:last-child {
  border-bottom: none;
}
.gb-latest-thumb {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e8e8;
}
.gb-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gb-latest-thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #d0d0d0;
}
.gb-latest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gb-latest-title {
  flex: 1;
  min-width: 0;
  display: block;
  font-size: 1em;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}
.gb-latest-title:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.gb-latest-excerpt {
  font-size: 0.86em;
  color: #888;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
}
.gb-latest-date {
  flex-shrink: 0;
  font-size: 0.92em;
  color: #888;
  font-weight: 400;
  white-space: nowrap;
}
/* excerpt 포함 시 세로 스택 모드 */
.gb-latest--stacked .gb-latest-item {
  align-items: flex-start;
}
.gb-latest--stacked .gb-latest-body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
.gb-latest--stacked .gb-latest-title {
  white-space: normal;
  text-overflow: clip;
}
.gb-latest-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86em;
  color: #666;
  text-decoration: none;
  font-weight: 500;
}
.gb-latest-more:hover {
  text-decoration: underline;
}
.gb-latest-empty {
  font-size: 0.93em;
  color: #aaa;
  padding: 10px 0;
}







