/**
 * 올타임아트 — 에디토리얼 / 프리미엄 아카이브 (라인·여백·차콜 톤)
 * 홈: 기본 #home 제외 · `body#home.home-archive-hub` 는 아래 홈 허브 블록 참고
 */

/* -------------------------------------------------------------------------
   디자인 토큰 — 블루 제거, 먹색·스톤·아이보리 베이스
   ------------------------------------------------------------------------- */
body:not(#home) {
  /* 흰 배경 · 차콜 타이포 */
  --archive-ink: #1a1a1a;
  --archive-accent: #1a1a1a;
  --archive-accent-mid: #4a4a4a;
  --archive-accent-soft: rgba(0, 0, 0, 0.06);
  --archive-accent-line: rgba(0, 0, 0, 0.12);
  --archive-focus-ring: rgba(0, 0, 0, 0.08);
  --archive-surface: #ffffff;
  --archive-bg-page: #ffffff;
  --archive-border: rgba(0, 0, 0, 0.1);
  --archive-line: rgba(0, 0, 0, 0.08);
  --archive-line-fine: rgba(0, 0, 0, 0.05);
  --archive-line-strong: rgba(0, 0, 0, 0.14);
  --archive-text: #1a1a1a;
  --archive-text-secondary: #555555;
  --archive-text-muted: #888888;
  --archive-count: #888888;
  /* 썸네일 텍스트 박스: 어두운 반투명 + 흰 글자 */
  --archive-card-text-bg: rgba(20, 20, 24, 0.78);
  --archive-card-text-fg: #ffffff;
  --archive-card-text-dim: rgba(255, 255, 255, 0.72);

  --archive-space-xs: 6px;
  --archive-space-sm: 12px;
  --archive-space-md: 20px;
  --archive-space-lg: 32px;
  --archive-space-xl: 48px;
  --archive-space-2xl: 64px;
  --archive-space-3xl: 80px;

  --archive-radius-sm: 6px;
  --archive-radius: 10px;
  --archive-radius-lg: 12px;
  --archive-card-frame-radius: 10px;
  --archive-card-inner-radius: 0;
  --archive-card-pad: 14px;
  --archive-card-footer-pad-top: 16px;

  --archive-font-filter-title: clamp(1.125rem, 1.35vw, 1.25rem);
  --archive-font-filter-item: 0.9375rem;
  --archive-font-body: 0.9375rem;
  --archive-font-card-title: clamp(1rem, 1.08vw, 1.0625rem);
  --archive-font-meta: 0.75rem;
  --archive-font-small: 0.8125rem;
  --archive-font-count: 0.6875rem;
  --archive-leading: 1.65;
  --archive-leading-tight: 1.45;
}

.is-filter-hidden {
  display: none !important;
}
.dummy-note {
  padding: 1rem 0;
}
.ss-cat-debug {
  margin: 12px;
  padding: 12px;
  background: #1a1a1a;
  color: #eee;
  font: 12px/1.4 monospace;
  border: 1px solid #444;
}
.ss-cat-debug pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.sungsan-sp-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--sungsan-sp-z, 99990);
  background: rgba(15, 18, 25, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
  overflow-y: auto;
}
.sungsan-sp-box {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: var(--sungsan-sp-box-w, 600px);
  max-height: var(--sungsan-sp-box-h, 700px);
  height: auto;
  background: rgba(255, 255, 255, .94);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sungsan-sp-box.is-shrink {
  width: auto;
  min-width: var(--sungsan-sp-box-min-w, 200px);
}
.sungsan-sp-main {
  padding: 1.05rem 1rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sungsan-sp-main.is-file-image-only {
  overflow: hidden;
  justify-content: center;
}
.sungsan-sp-main.is-shrink {
  align-items: center;
}
.sungsan-sp-img-wrap {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-height: var(--sungsan-sp-img-slot, 320px);
  height: var(--sungsan-sp-img-slot, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sungsan-sp-img-wrap.is-shrink {
  width: max-content;
  max-width: var(--sungsan-sp-img-max-w, 568px);
  margin: 0 auto;
}
.sungsan-sp-img-wrap.is-text-mode {
  flex: 0 1 auto;
  margin-top: 0.65rem;
  height: auto;
}
.sungsan-sp-img {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
}
.sungsan-sp-headline {
  font-weight: 700;
  font-size: var(--sungsan-sp-font-size, 16px);
  color: var(--sungsan-sp-color, #1a1d24);
  line-height: 1.35;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
  word-break: break-word;
}
.sungsan-sp-headline.is-file {
  margin: 0.65rem 0 0.35rem;
  text-align: center;
}
.sungsan-sp-body {
  font-size: 0.95rem;
  color: #3d4149;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 0 0 auto;
}
.sungsan-sp-body.is-file {
  text-align: center;
  overflow-y: auto;
  max-height: 32vh;
}
.sungsan-sp-foot {
  border-top: 1px solid #e8eaef;
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  flex-shrink: 0;
}
.sungsan-sp-foot-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #5c6068;
}
.sungsan-sp-foot-left label {
  cursor: pointer;
}
.sungsan-sp-close {
  border: 0;
  background: #111827;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.storage-diagnostic-pre {
  max-height: 420px;
  overflow: auto;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.archive-message-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.collection-third-tabs-inline {
  display: flex;
}

.storage-grid-pdf-poster-js.is-initially-hidden,
.storage-grid-pdf-poster-js[hidden],
.archive-hidden-block {
  display: none;
}

.doc-plugin-error {
  padding: 1em;
  background: #fee;
}

.content-thumb-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-page-hub__lead {
  margin: 0 0 1.5rem;
  color: var(--archive-text-secondary, #555);
  line-height: 1.7;
}
.site-page-hub__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.site-page-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px solid var(--archive-border, rgba(0, 0, 0, 0.1));
  border-radius: 10px;
  background: #fff;
  color: var(--archive-text, #1a1a1a);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.site-page-hub__card:hover {
  border-color: var(--archive-line-strong, rgba(0, 0, 0, 0.14));
  transform: translateY(-1px);
}
.site-page-hub__card strong {
  font-size: 1.05rem;
}
.site-page-hub__card span {
  color: var(--archive-text-secondary, #555);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .site-page-hub__cards {
    grid-template-columns: 1fr;
  }
}

body.collections.browse.custom #site-header #header-search {
  display: none;
}

/* -------------------------------------------------------------------------
   기록 아카이브 페이지: 헤더 · 본문 사이 “숨 쉴” 공간 + 탑 라인
   ------------------------------------------------------------------------- */
body.folder-hub-browse:not(#home) #site-header {
  border-bottom: 1px solid var(--archive-line-fine);
  padding-bottom: 0;
}

body.folder-hub-browse:not(#home) #content {
  background: var(--archive-bg-page);
  color: var(--archive-text);
  font-size: var(--archive-font-body);
  line-height: var(--archive-leading);
}

body.folder-hub-browse:not(#home) .record-browse-shell.archive-browse-shell.archive-exhibit {
  max-width: min(1480px, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(28px, 5vw, 56px);
  padding-right: clamp(28px, 5vw, 56px);
  padding-bottom: var(--archive-space-3xl);
  padding-top: calc(7rem + var(--archive-space-3xl));
}

/* -------------------------------------------------------------------------
   헤더 검색 (비홈 확장)
   ------------------------------------------------------------------------- */
body:not(#home) #site-header.site-header--archive-search {
  margin-bottom: 0;
}

body:not(#home) #header-search.header-search--expanded {
  position: relative;
  width: min(420px, 34vw);
  min-width: 300px;
  height: 46px;
  flex-shrink: 1;
}

body:not(#home) #header-search.header-search--expanded .search-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 300px;
  height: 46px;
  padding: 0 14px 0 16px;
  border-radius: var(--archive-radius-sm);
  background: var(--archive-surface);
  border: 1px solid var(--archive-border);
  overflow: visible;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(#home) #header-search.header-search--expanded .search-inner:focus-within {
  border-color: var(--archive-accent-line);
  box-shadow: 0 0 0 1px var(--archive-focus-ring);
}

body:not(#home) #header-search.header-search--expanded .search-icon {
  position: static;
  transform: none;
  flex-shrink: 0;
  color: var(--archive-text-muted);
}

body:not(#home) #header-search.header-search--expanded .search-form-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

body:not(#home) #header-search.header-search--expanded .header-archive-search {
  display: block;
  width: 100%;
  margin: 0;
}

body:not(#home) #header-search.header-search--expanded .header-archive-search input[type="search"],
body:not(#home) #header-search.header-search--expanded .header-archive-search input[type="text"] {
  position: static;
  width: 100%;
  height: 42px;
  opacity: 1;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-size: var(--archive-font-body);
  color: var(--archive-text);
}

body:not(#home) #header-search.header-search--expanded input::placeholder {
  color: var(--archive-text-muted);
}

body:not(#home) #header-search.header-search--expanded #search-form input[type="text"],
body:not(#home) #header-search.header-search--expanded #search-form input[type="search"] {
  position: static;
  width: 100%;
  height: 42px;
  opacity: 1;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-size: var(--archive-font-body);
}

/* -------------------------------------------------------------------------
   메인 네비 — active / hover 구분
   ------------------------------------------------------------------------- */
body:not(#home) #site-header .header-nav ul {
  gap: 45px;
}

body:not(#home) #site-header .header-nav a {
  font-size: 19px;
  font-weight: 500;
}

body:not(#home) .header-nav li.active > a {
  color: var(--site-point);
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

body:not(#home) #site-header .header-nav li:not(.active) > a {
  color: #333;
  font-weight: 500;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.22s ease, font-weight 0.15s ease, text-shadow 0.22s ease;
}

body:not(#home) #site-header .header-nav li:not(.active) > a:hover {
  color: var(--site-point);
  font-weight: 700;
}

body.items.browse:not(#home) #site-header .header-nav a[href*="items/browse"] {
  color: var(--site-point);
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

/* -------------------------------------------------------------------------
   전시 레이아웃: 좌 탐색 · 우 스테이지
   ------------------------------------------------------------------------- */
body:not(#home) .folder-hub {
  margin-top: var(--archive-space-md);
  margin-bottom: var(--archive-space-3xl);
}

body.folder-hub-browse:not(#home) .folder-hub {
  max-width: min(1480px, 96vw);
}

body:not(#home) .folder-hub__layout--exhibit {
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 6.5vw, 96px);
}

/* 기록 허브: 좌측 필터 없음 — 본문만 전폭 */
body:not(#home) .folder-hub__layout--exhibit.folder-hub__layout--no-aside {
  gap: 0;
}

body:not(#home) .folder-hub__layout--exhibit.folder-hub__layout--no-aside .folder-hub__stage {
  flex: 1 1 100%;
  max-width: 100%;
}

/* 좌측: 보조 패널 — 시각적 무게 낮춤 */
body:not(#home) .folder-hub__aside-stack {
  flex: 0 0 min(260px, 26vw);
  max-width: 300px;
  gap: 0;
}

/*
 * 우측 툴바 하단 구분선(표시 16·24·32 아래 라인)과 같은 높이에 맞추기:
 * 툴바 padding-top + 컨트롤 한 줄 + padding-bottom + 1px 보더 까지 (툴바 아래 margin·그리드 패딩은 제외)
 */
body:not(#home) .folder-hub__layout--exhibit .folder-hub__aside-stack {
  padding-top: calc(var(--archive-space-md) + 2.75rem + var(--archive-space-xl) + 1px);
}

body:not(#home) .folder-hub__stage {
  flex: 1 1 auto;
  min-width: 0;
}

/* -------------------------------------------------------------------------
   필터 패널: 플랫 · 좌측 액센트 라인 (체크박스 제거)
   ------------------------------------------------------------------------- */
body:not(#home) .folder-hub__filter-block.filter-group,
body:not(#home) .folder-hub__aside-inner.folder-hub__filter-block {
  margin: 0 0 var(--archive-space-2xl);
  padding: 0 0 var(--archive-space-xl);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--archive-line);
}

body:not(#home) .folder-hub__aside-stack .folder-hub__aside:last-child .folder-hub__filter-block {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 섹션 제목: 배경 없음 · 타이포만으로 구획 */
body:not(#home) .folder-hub__filter-heading,
body:not(#home) .folder-hub__aside-title.folder-hub__filter-heading {
  margin: 0 0 var(--archive-space-lg);
  padding: 0;
  font-size: var(--archive-font-filter-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--archive-ink);
}

/* 기록 허브: style.css 패널 배경 제거 + 생산연대·기록유형·기록형태 제목 강조 */
body.folder-hub-browse:not(#home) .folder-hub__aside-inner.folder-hub__filter-block {
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--archive-line);
}

body.folder-hub-browse:not(#home) .folder-hub__aside-title.folder-hub__filter-heading {
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 !important;
  text-transform: none;
  color: var(--archive-ink);
}

body:not(#home) .filter-group__list,
body:not(#home) .folder-hub__filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 항목이 많을 때 좌측 패널 높이 안에서만 스크롤 */
  max-height: min(420px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--archive-border) transparent;
}

body:not(#home) .filter-group__list::-webkit-scrollbar,
body:not(#home) .folder-hub__filter-list::-webkit-scrollbar {
  width: 5px;
}

body:not(#home) .filter-group__list::-webkit-scrollbar-thumb,
body:not(#home) .folder-hub__filter-list::-webkit-scrollbar-thumb {
  background: var(--archive-border);
  border-radius: 10px;
}

body:not(#home) .filter-group__list li {
  margin: 0;
  padding: 0;
}

body:not(#home) .folder-hub__filter-item.folder-hub__cat,
body:not(#home) .folder-hub__cat.folder-hub__filter-item {
  display: flex;
  align-items: center;
  gap: var(--archive-space-sm);
  margin: 0;
  padding: 13px 8px 13px 6px;
  font-size: var(--archive-font-filter-item);
  font-weight: 400;
  line-height: 1.5;
  color: var(--archive-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--archive-line-fine);
  border-left: 2px solid transparent;
  box-shadow: none;
  transition: color 0.18s ease, border-left-color 0.18s ease, font-weight 0.18s ease;
}

body:not(#home) .folder-hub__filter-item::before {
  display: none;
  content: none;
}

body:not(#home) .filter-group__list li:last-child .folder-hub__filter-item {
  border-bottom: none;
}

body:not(#home) .folder-hub__filter-item:hover {
  color: var(--archive-text);
  background: transparent;
}

body:not(#home) .folder-hub__filter-item.is-active {
  color: var(--archive-ink);
  font-weight: 600;
  border-left-color: var(--archive-accent);
  background: transparent;
}

body:not(#home) .folder-hub__filter-label {
  flex: 1 1 auto;
  min-width: 0;
}

body:not(#home) .folder-hub__count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: var(--archive-font-count);
  font-weight: 400;
  color: var(--archive-count);
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

body:not(#home) .folder-hub__aside-nav,
body:not(#home) .folder-hub__scroll-btn {
  display: none !important;
}

/* -------------------------------------------------------------------------
   상단 제어줄: 갤러리보다 조용한 톤
   ------------------------------------------------------------------------- */
body:not(#home) .folder-hub__toolbar--exhibit {
  margin-bottom: var(--archive-space-2xl);
  padding: var(--archive-space-md) 0 var(--archive-space-xl);
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--archive-line);
  gap: var(--archive-space-md);
}

body:not(#home) .folder-hub__toolbar--grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: var(--archive-space-md);
}

body:not(#home) .folder-hub__toolbar--grid .folder-hub__grid-per {
  flex: 1 1 auto;
  min-width: min(100%, 260px);
}

body:not(#home) .folder-hub__toolbar--grid .folder-hub__grid-nav {
  flex: 0 0 auto;
  opacity: 0.92;
}

body:not(#home) .folder-hub__toolbar--grid .folder-hub__view-toggle {
  flex: 0 0 auto;
  margin-left: auto;
}

body:not(#home) .folder-hub__grid-per {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--archive-space-xs);
}

body:not(#home) .folder-hub__per-label {
  font-size: var(--archive-font-small);
  font-weight: 600;
  color: var(--archive-text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-right: 6px;
}

body:not(#home) .folder-hub__per-btn,
body:not(#home) .folder-hub__grid-limit-btn {
  min-width: 2.5rem;
  padding: 7px 11px;
  font-size: var(--archive-font-small);
  font-weight: 600;
  color: var(--archive-text-secondary);
  border: 1px solid var(--archive-border);
  border-radius: var(--archive-radius-sm);
  background: var(--archive-surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

body:not(#home) .folder-hub__per-btn:hover,
body:not(#home) .folder-hub__grid-limit-btn:hover {
  border-color: var(--archive-border);
  color: var(--archive-text);
  background: var(--archive-surface);
}

body:not(#home) .folder-hub__per-btn.is-active,
body:not(#home) .folder-hub__grid-limit-btn.is-active {
  background: var(--archive-text);
  color: #fff;
  border-color: var(--archive-text);
}

body:not(#home) .folder-hub__view-toggle {
  border: 1px solid var(--archive-border);
  border-radius: var(--archive-radius-sm);
  overflow: hidden;
  background: var(--archive-surface);
}

body:not(#home) .folder-hub__view-btn {
  padding: 7px 13px;
  font-size: var(--archive-font-small);
  font-weight: 600;
  color: var(--archive-text-secondary);
  background: transparent;
}

body:not(#home) .folder-hub__view-btn:hover {
  background: rgba(17, 24, 39, 0.05);
  color: var(--archive-text);
}

body:not(#home) .folder-hub__view-btn.is-active {
  background: var(--archive-text);
  color: #fff;
}

body:not(#home) .folder-hub__grid-page-btn {
  padding: 6px 12px;
  font-size: var(--archive-font-small);
  font-weight: 500;
  color: var(--archive-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--archive-radius-sm);
}

body:not(#home) a.folder-hub__grid-page-btn:hover {
  background: rgba(17, 24, 39, 0.05);
  color: var(--archive-text);
}

body:not(#home) .folder-hub__grid-page-num {
  font-size: var(--archive-font-small);
  font-weight: 500;
  color: var(--archive-text-muted);
  padding: 0 8px;
}

body:not(#home) .folder-hub__grid-page-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   갤러리: 전시 카드 오브젝트 — 흰 프레임 · 내부 여백 · 볼륨 그림자
   ------------------------------------------------------------------------- */
body:not(#home) .folder-hub--view-grid .folder-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
  gap: clamp(40px, 4.5vw, 56px);
  padding-top: var(--archive-space-sm);
}

/* -------------------------------------------------------------------------
   기록 갤러리 — 블로그형 카드 (상단 이미지 · 카테고리 pill · 제목 · 요약)
   ------------------------------------------------------------------------- */
body:not(#home) .folder-hub--view-grid .folder-hub__grid--editorial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

@media screen and (max-width: 1024px) {
  body:not(#home) .folder-hub--view-grid .folder-hub__grid--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 560px) {
  body:not(#home) .folder-hub--view-grid .folder-hub__grid--editorial {
    grid-template-columns: minmax(0, 1fr);
  }
}

body:not(#home) .folder-hub__cell {
  min-width: 0;
}

/* 링크: 카드 오브젝트만 클릭 영역으로 시각적 무게 */
body:not(#home) .folder-hub__exhibit-card.folder-hub__cell-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: var(--archive-card-frame-radius);
  outline: none;
}

body:not(#home) .folder-hub__exhibit-card.folder-hub__cell-link:hover {
  box-shadow: none;
}

body:not(#home) .folder-hub__exhibit-card.folder-hub__cell-link:focus-visible .folder-hub__card-object {
  box-shadow: 0 0 0 2px var(--archive-focus-ring);
}

/* 카드 기본 (그리드 공통) — 심플 */
body:not(#home) .folder-hub__card-object {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--archive-card-pad);
  background: var(--archive-surface);
  border: 1px solid var(--archive-line-fine);
  border-radius: var(--archive-card-frame-radius);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(#home) .folder-hub__exhibit-card:hover .folder-hub__card-object {
  transform: none;
  border-color: var(--archive-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 에디토리얼 그리드: 흰 카드 · 하단만 어두운 반투명 + 흰 글자 */
body:not(#home) .folder-hub__grid--editorial .folder-hub__card-object {
  padding: 0;
  overflow: hidden;
  border-radius: var(--archive-card-frame-radius);
  border: 1px solid var(--archive-line-fine);
  box-shadow: none;
  background: #fff;
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__exhibit-card:hover .folder-hub__card-object {
  transform: none;
  border-color: var(--archive-line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 이미지: 매트 + 선명한 테두리로 외곽 카드와 대비 */
body:not(#home) .folder-hub__card-media {
  flex-shrink: 0;
  width: 100%;
  border-radius: var(--archive-card-inner-radius);
  overflow: hidden;
  background: #f0f0ee;
  border: 1px solid var(--archive-accent-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(28, 25, 23, 0.05);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__card-media {
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #eee;
}

body:not(#home) .folder-hub__card-media .folder-hub__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__card-media .folder-hub__thumb {
  aspect-ratio: 4 / 3;
}

body:not(#home) .folder-hub__card-media .folder-hub__thumb img,
body:not(#home) .folder-hub__card-media .folder-hub__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(#home) .folder-hub__exhibit-card:hover .folder-hub__card-media .folder-hub__thumb img {
  transform: scale(1.045);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__exhibit-card:hover .folder-hub__card-media .folder-hub__thumb img {
  transform: none;
}

body:not(#home) .folder-hub__card-tags--overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

body:not(#home) .folder-hub__card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(#home) .folder-hub__card-tags--overlay .folder-hub__card-tag {
  position: static;
  top: auto;
  right: auto;
  flex: 0 1 auto;
  max-width: min(100%, 11rem);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__card-tag {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

body:not(#home) .folder-hub__card-tag--inline {
  position: static;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  vertical-align: middle;
}

body:not(#home) .folder-hub__card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

body:not(#home) .folder-hub__col--title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body:not(#home) .folder-hub__board-row .folder-hub__col--title {
  white-space: normal;
  overflow: visible;
  min-width: 0;
}

body:not(#home) .folder-hub__board-title-text {
  display: block;
  font-weight: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
}

body:not(#home) .folder-hub__board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

body:not(#home) .folder-hub__board-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--archive-text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--archive-line);
}

/* 카드 하단 정보 영역 (프레임의 일부) */
body:not(#home) .folder-hub__card-footer.folder-hub__cell-caption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: var(--archive-card-footer-pad-top) 2px 2px;
  min-height: 0;
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__card-footer.folder-hub__cell-caption {
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  padding: 14px 16px 16px;
  background: var(--archive-card-text-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(#home) .folder-hub__cell-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: var(--archive-font-card-title);
  font-weight: 700;
  line-height: var(--archive-leading-tight);
  letter-spacing: -0.03em;
  color: var(--archive-text);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__cell-title {
  -webkit-line-clamp: 3;
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  font-weight: 600;
  color: var(--archive-card-text-fg);
  letter-spacing: -0.02em;
}

body:not(#home) .folder-hub__cell-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--archive-text-secondary);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__cell-excerpt {
  color: var(--archive-card-text-dim);
}

body:not(#home) .folder-hub__cell-meta {
  display: block;
  margin: 0;
  font-size: var(--archive-font-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--archive-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__cell-meta {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--archive-card-text-dim);
}

body:not(#home) .folder-hub__exhibit-card:hover .folder-hub__cell-title {
  color: var(--archive-accent-mid);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__exhibit-card:hover .folder-hub__cell-title {
  color: #fff;
}

body:not(#home) .folder-hub--view-grid .folder-hub__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  font-size: var(--archive-font-small);
  color: var(--archive-text-muted);
}

body:not(#home) .folder-hub__grid--editorial .folder-hub__noimg {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

/* 웹진 */
body:not(#home) .folder-hub__cards {
  gap: var(--archive-space-xl);
}

body:not(#home) .folder-hub__card-link {
  gap: var(--archive-space-lg);
  padding: var(--archive-space-lg);
  border: 1px solid var(--archive-line);
  border-radius: var(--archive-radius-lg);
  background: var(--archive-surface);
}

body:not(#home) .folder-hub__card-link:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body:not(#home) .folder-hub__card-title {
  font-size: var(--archive-font-body);
  font-weight: 600;
}

/* 목록 */
body:not(#home) .folder-hub__board {
  border: 1px solid var(--archive-line);
  border-radius: var(--archive-radius);
  background: var(--archive-surface);
}

body:not(#home) .folder-hub__board-head {
  background: var(--archive-bg-page);
  border-bottom: 1px solid var(--archive-line);
}

body:not(#home) .folder-hub__board-row:hover {
  background: var(--archive-accent-soft);
}

body:not(#home) .folder-hub__empty {
  padding: var(--archive-space-2xl);
  color: var(--archive-text-muted);
  font-size: var(--archive-font-body);
}

/* Solr 페이지네이션 */
body:not(#home) .collection-solr-pager {
  margin-top: var(--archive-space-2xl);
  padding: var(--archive-space-lg) 0;
  border: none;
  border-top: 1px solid var(--archive-line);
  background: transparent;
}

body:not(#home) .collection-solr-pager__edge,
body:not(#home) .collection-solr-pager__step,
body:not(#home) .collection-solr-pager__num {
  border-radius: var(--archive-radius-sm);
  border: 1px solid var(--archive-border);
  background: var(--archive-surface);
  color: var(--archive-text-secondary);
  font-weight: 500;
}

body:not(#home) .collection-solr-pager__num.is-current {
  background: var(--archive-text);
  color: #fff;
  border-color: var(--archive-text);
}

body:not(#home) .collection-hub-wrap,
body:not(#home) .exhibit-tab-content .folder-hub {
  border-color: var(--archive-line);
}

/* 컬렉션 browse 카드 */
body.collections.browse:not(#home) .collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--archive-space-xl);
}

body.collections.browse:not(#home) .collection-card {
  border: 1px solid var(--archive-line);
  border-radius: var(--archive-radius-lg);
  background: var(--archive-surface);
}

body.collections.browse:not(#home) .collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.1);
}

body.collections.browse:not(#home) .card-thumb {
  aspect-ratio: 3 / 2;
  border-radius: var(--archive-radius);
  overflow: hidden;
}

body.collections.browse:not(#home) .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.collections.browse:not(#home) .card-title {
  font-size: var(--archive-font-card-title);
  font-weight: 600;
  line-height: var(--archive-leading-tight);
  margin-top: var(--archive-space-md);
}

/* 반응형 */
@media screen and (max-width: 767px) {
  body.folder-hub-browse:not(#home) #header-search.header-search--expanded {
    display: flex !important;
    width: min(100%, 420px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  body.folder-hub-browse:not(#home) #site-header .inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  body.folder-hub-browse:not(#home) {
    --archive-card-frame-radius: 18px;
    --archive-card-inner-radius: 12px;
    --archive-card-pad: 12px;
    --archive-card-footer-pad-top: 12px;
  }

  /* 모바일: 썸/카드 2열(크게 보이도록), 4~3열 auto-fill 대신 고정 2열 */
  body:not(#home) .folder-hub--view-grid .folder-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 3.5vw, 18px) clamp(12px, 3vw, 16px);
  }

  body:not(#home) .folder-hub--view-grid .folder-hub__grid--editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--archive-space-lg);
  }

  body.folder-hub-browse:not(#home) .record-browse-shell.archive-browse-shell.archive-exhibit {
    padding-top: calc(7rem + var(--archive-space-xl));
  }
}

@media screen and (max-width: 900px) {
  body:not(#home) .folder-hub__layout--exhibit {
    flex-direction: column;
    gap: var(--archive-space-xl);
  }

  body:not(#home) .folder-hub__aside-stack {
    flex: none;
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  body:not(#home) .folder-hub__toolbar--grid .folder-hub__view-toggle {
    width: 100%;
    justify-content: stretch;
  }

  body:not(#home) .folder-hub__toolbar--grid .folder-hub__view-toggle .folder-hub__view-btn {
    flex: 1;
    text-align: center;
  }
}

@media screen and (min-width: 1600px) {
  body:not(#home) .folder-hub--view-grid .folder-hub__grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(40px, 4vw, 56px);
  }

  body:not(#home) .folder-hub--view-grid .folder-hub__grid--editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.5vw, 36px);
  }
}

/* -------------------------------------------------------------------------
   기록 게시판형 (FoMo 스타일 — 전체 건수·검색·탭·썸네일 목록)
   참고: 국립일제강제동원역사관 온라인 역사관 게시판 레이아웃
   ------------------------------------------------------------------------- */
body.record-board-browse:not(#home) #content {
  background: var(--archive-bg-page);
  color: var(--archive-text);
}

body.record-board-browse:not(#home) .fomo-board {
  max-width: min(960px, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
  padding-bottom: var(--archive-space-3xl);
  padding-top: calc(6.5rem + var(--archive-space-xl));
}

.fomo-board__head {
  margin-bottom: var(--archive-space-lg);
  padding-bottom: var(--archive-space-md);
  border-bottom: 2px solid var(--archive-ink);
}

.fomo-board__title {
  margin: 0 0 var(--archive-space-xs);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--archive-ink);
}

.fomo-board__tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--archive-text-secondary);
  line-height: 1.6;
}

.fomo-board__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--archive-space-md);
  margin-bottom: var(--archive-space-lg);
  padding: var(--archive-space-md);
  background: var(--archive-surface);
  border: 1px solid var(--archive-line);
  border-radius: var(--archive-radius);
}

.fomo-board__count {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--archive-text-secondary);
}

.fomo-board__count strong {
  color: var(--archive-ink);
}

.fomo-board__search {
  display: flex;
  flex: 1;
  min-width: min(100%, 280px);
  gap: 0.5rem;
  align-items: stretch;
}

.fomo-board__search-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--archive-line-strong);
  border-radius: var(--archive-radius-sm);
  font-size: 0.9375rem;
}

.fomo-board__search-btn {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--archive-ink);
  background: var(--archive-ink);
  color: #fff;
  border-radius: var(--archive-radius-sm);
  font-size: 0.9375rem;
  cursor: pointer;
}

.fomo-board__search-btn:hover {
  opacity: 0.92;
}

.fomo-board__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fomo-board__tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--archive-line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--archive-text);
  background: #fafafa;
  transition: background 0.15s, border-color 0.15s;
}

.fomo-board__tab:hover {
  background: var(--archive-accent-soft);
}

.fomo-board__tab.is-active {
  border-color: var(--archive-ink);
  background: var(--archive-ink);
  color: #fff;
  font-weight: 600;
}

.fomo-board__empty {
  padding: var(--archive-space-xl);
  text-align: center;
  color: var(--archive-text-muted);
  border: 1px dashed var(--archive-line);
  border-radius: var(--archive-radius);
}

.fomo-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--archive-line-strong);
}

.fomo-board__item {
  border-bottom: 1px solid var(--archive-line);
}

.fomo-board__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--archive-space-md);
  padding: var(--archive-space-md) 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.fomo-board__row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.fomo-board__thumb-wrap {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: var(--archive-radius-sm);
  background: #f0f0f0;
  border: 1px solid var(--archive-line-fine);
}

.fomo-board__thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fomo-board__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.fomo-board__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.fomo-board__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--archive-text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--archive-line);
}

.fomo-board__item-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--archive-ink);
}

.fomo-board__row:hover .fomo-board__item-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fomo-board__excerpt {
  display: block;
  font-size: 0.875rem;
  color: var(--archive-text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fomo-board__pager {
  margin-top: var(--archive-space-xl);
  padding-top: var(--archive-space-md);
}

.fomo-board__pager .pagination-nav {
  display: flex;
  justify-content: center;
}

.fomo-board__pager .pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 640px) {
  .fomo-board__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fomo-board__tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .fomo-board__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .fomo-board__thumb-wrap {
    width: 100%;
    max-width: 200px;
    height: 120px;
  }
}

/* -------------------------------------------------------------------------
   모바일: 기록 게시판(아카이브 그리드) — 열·간격(겹침·초밀착 방지)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  body.record-board-browse:not(#home) .fomo-board {
    padding-left: clamp(12px, 4vw, 20px);
    padding-right: clamp(12px, 4vw, 20px);
    padding-top: calc(4.5rem + var(--archive-space-lg, 1.25rem));
  }

  body.items.browse.record-board-browse .fomo-board__head {
    margin-bottom: var(--archive-space-md, 1rem);
  }

  body.items.browse.record-board-browse .fomo-board__tags,
  body.items.browse.record-board-browse .fomo-board__tabs {
    row-gap: 0.4rem;
  }

  body.items.browse.record-board-browse .fomo-board__tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* 기록/수집·전시 등이 공용하는 4열 그리드: 좁은 화면 2열, 썸 셀 정사각+작게 */
  body.items.browse.record-board-browse .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    min-width: 0;
  }

  /* 기록: 서브비주얼 카테고리(.main-tab-group) — 2열 그리드, 외곽 박스 톤 유지 */
  body.items.browse.record-board-browse .sub-visual {
    min-height: 0;
    height: auto;
    max-width: 100%;
    width: 100%;
    padding: 1.4rem 12px 1.1rem;
    box-sizing: border-box;
  }
  body.items.browse.record-board-browse .sub-visual h2 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.45rem;
  }
  body.items.browse.record-board-browse .sub-visual .en-title {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }
  body.items.browse.record-board-browse .main-tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 6px 8px;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    margin-top: 0.55rem;
    padding: 4px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }
  body.items.browse.record-board-browse .main-tab {
    min-width: 0;
    width: 100%;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    white-space: normal;
    line-height: 1.3;
    padding: 0.5rem 0.35rem;
    font-size: 0.88rem;
  }
  body.items.browse.record-board-browse .main-tab:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  body.items.browse.record-board-browse .main-tab.active {
    background: #fff;
    color: #000;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.5);
  }
  /* 항목 수가 홀수일 때 마지막 칸만 가로로 채움 */
  body.items.browse.record-board-browse .main-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  /* 포모(목록) 탭도 세로(전체·통합검색 등) */
  body.items.browse.record-board-browse .fomo-board__tabs {
    flex-direction: column;
    align-items: stretch;
  }
  body.items.browse.record-board-browse .fomo-board__tab {
    text-align: center;
    display: block;
  }

  body.items.browse.record-board-browse .content-container {
    max-width: 100%;
    padding: 1.1rem 12px 2.2rem;
    box-sizing: border-box;
  }
  body.items.browse.record-board-browse .search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    order: 1;
  }
  body.items.browse.record-board-browse .board-top-util {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  body.items.browse.record-board-browse .board-top-util .board-info {
    order: 2;
  }

  /* 참여/소개: sub-visual 1차 탭 세로(기록과 동일) — 메인(#home)은 제외 */
  body.simple-page-tabbed .sub-visual {
    height: auto;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    padding: 1.2rem 12px 1.1rem;
    box-sizing: border-box;
  }
  body.simple-page-tabbed .sub-visual h2,
  body.simple-page-tabbed .sub-visual .en-title {
    margin-top: 0;
  }
  body.simple-page-tabbed .sub-visual .main-tab-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    max-width: 100%;
    width: 100%;
  }
  body.simple-page-tabbed .sub-visual .main-tab {
    width: 100%;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }
  body.simple-page-tabbed .sub-visual .main-tab:last-child {
    border-bottom: 0;
  }
}

  /* -------------------------------------------------------------------------
    기록 페이지 레이아웃
    ------------------------------------------------------------------------- */
  :root {
    --point-color: #00afec;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
  }

  body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
  }

  ul {
    list-style: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  /* --- 헤더 영역 --- */
  header {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
  }

  .header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
  }

  .logo span {
    color: var(--point-color);
  }

  .gnb {
    display: flex;
    gap: 45px;
  }

  .gnb li a {
    font-size: 19px;
    font-weight: 500;
    color: #333;
  }

  .gnb li.active a {
    color: var(--point-color);
    font-weight: 700;
  }

  .header-util {
    display: flex;
    align-items: center;
    height: 100px;
  }

  .lang-select {
    background: var(--point-color);
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }

  /* --- 서브 비주얼 --- */
  .sub-visual {
    width: 100%;
    height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&q=80&w=1600') no-repeat center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
  }

  .sub-visual h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: -24px;
  }

  .sub-visual .en-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 42px;
    opacity: 0.9;
  }

  .main-tab-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
    margin-top: 10px;
  }

  .main-tab {
    padding: 12px 25px;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    font-size: 14px;
    white-space: nowrap;
  }

  .main-tab.active {
    background: #fff;
    color: #000;
    font-weight: 700;
  }

  /* --- 콘텐츠 영역 --- */
  .content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .content-container {
    padding: 0 20px;
  }

  .page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #222;
  }

  .page-title-line {
    width: 30px;
    height: 1.5px;
    background: #999;
    margin: 0 auto 45px auto;
  }

  /* Simple Pages(참여/소개) 탭 본문 타이포 */
  body.simple-page-tabbed .simple-page-tabs .simple-tab-body,
  body.simple-page-tabbed .simple-page-tabs .simple-tab-empty {
    max-width: 70rem;
    margin: 0 auto;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
    color: #2c2c2c;
    font-size: 1.22rem;
    line-height: 1.95;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
  }

  body.simple-page-tabbed .simple-page-tabs .simple-tab-empty {
    color: #777;
    text-align: center;
  }

  /* 2차 서브 탭: 구분 라인 강화 유지 */
  .sub-tab-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
  }

  .sub-tab {
    padding: 0 20px;
    font-size: 17px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
  }

  .sub-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ddd;
  }

  .sub-tab.active {
    color: var(--point-color);
    font-weight: 700;
  }

  .sub-tab.active::before {
    content: '●';
    font-size: 8px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--point-color);
  }

  /* 3차 상세 탭 (주보 전용) */
  #thirdDetailTab {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 50px;
  }

  #thirdDetailTab .round-tab {
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    transition: 0.3s;
  }

  #thirdDetailTab .round-tab.active {
    background: var(--point-color);
    color: #fff;
    border-color: var(--point-color);
  }

  /* 보드 정보 및 검색창 영역 (메인 포인트 컬러 하단선) */
  .board-top-util {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--point-color);
  }

  .board-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: #666;
    line-height: 1.35;
  }

  .board-info--split {
    max-width: 100%;
  }

  .board-info .board-info-sep {
    margin: 0 0.2em 0 0.35em;
    color: #b0b0b0;
    user-select: none;
  }

  .board-info .board-grand {
    color: #4a6fa5;
    font-weight: 700;
  }

  .board-info .icon {
    margin-right: 4px;
    color: #8a8a8a;
    display: flex;
    align-items: center;
  }

  .board-info .total-num {
    color: #e95e5e;
    font-weight: 700;
  }

  .board-info .page-num {
    color: var(--point-color);
    font-weight: 700;
  }

  .board-empty-hint {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #f6f7f9;
    border: 1px solid #e2e3e5;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.55;
  }

  .board-empty-hint__title {
    margin: 0 0 8px;
  }

  .board-empty-hint__line {
    margin: 0 0 10px;
  }

  .board-empty-hint__num {
    color: #4a6fa5;
    font-weight: 700;
  }

  .board-empty-hint__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em 0.35em;
    margin: 0;
  }

  .board-empty-hint__actions a {
    color: var(--point-color);
    text-decoration: underline;
  }

  .board-empty-hint__sep,
  .board-empty-hint__dot {
    color: #aaa;
    user-select: none;
  }

  .board-empty-hint__label {
    color: #666;
  }

  /* 검색창 스타일 수정: 5px 라운드 적용 */
  .search-wrap {
    width: 320px;
    border: 1px solid #e3e3e3;
    background: #fff;
    height: 40px;
    border-radius: 3px;
    overflow: hidden;
  }

  .search-wrap form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .search-wrap input {
    border: none;
    outline: none;
    padding: 0 12px;
    flex: 1;
    font-size: 12px;
    color: #666;
  }

  .search-btn {
    width: 38px;
    height: 100%;
    background: #f6f6f6;
    border: 0;
    border-left: 1px solid #e3e3e3;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
  }

  .search-btn:hover {
    background: #efefef;
  }

  /* --- 콘텐츠 그리드 --- */
  .archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  /* 기록: 위치(브레드크럼), 서브비주얼 탭 위계, 그리드 호버 */
  .record-browse-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.5em;
    margin: 0 0 14px;
    font-size: 13px;
    color: #6a6a6a;
  }

  .record-browse-crumb__root {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 600;
  }

  .record-browse-crumb__root:hover {
    text-decoration: underline;
  }

  .record-browse-crumb__sep {
    color: #b8b8b8;
    user-select: none;
  }

  .record-browse-crumb__here {
    color: #2c2c2c;
    font-weight: 700;
  }

  body.items.browse.record-board-browse .sub-visual .main-tab:not(.active) {
    opacity: 0.78;
    font-weight: 500;
  }

  body.items.browse.record-board-browse .sub-visual .main-tab.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  body.items.browse.record-board-browse .archive-grid .item > a {
    display: block;
    border-radius: 4px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  body.items.browse.record-board-browse .archive-grid .item > a:hover {
    box-shadow: 0 6px 20px rgba(44, 46, 53, 0.12);
    transform: translateY(-2px);
  }

  /* 기록 페이지 페이지네이션: test3.html 톤 — 컬렉션/스토리지 browse에도 동일 적용 */
  body.items.browse.record-board-browse .record-pagination,
  body.collections.browse .record-pagination,
  body.items.browse.collection-storage-browse .record-pagination {
    margin-top: 60px;
  }

  body.items.browse.record-board-browse .record-pagination .pagination-nav,
  body.collections.browse .record-pagination .pagination-nav,
  body.items.browse.collection-storage-browse .record-pagination .pagination-nav {
    display: flex;
    justify-content: center;
  }

  body.items.browse.record-board-browse .record-pagination .pagination,
  body.collections.browse .record-pagination .pagination,
  body.items.browse.collection-storage-browse .record-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.items.browse.record-board-browse .record-pagination .pagination li,
  body.collections.browse .record-pagination .pagination li,
  body.items.browse.collection-storage-browse .record-pagination .pagination li {
    margin: 0;
    padding: 0;
  }

  body.items.browse.record-board-browse .record-pagination .pagination a,
  body.collections.browse .record-pagination .pagination a,
  body.items.browse.collection-storage-browse .record-pagination .pagination a,
  body.items.browse.record-board-browse .record-pagination .pagination span,
  body.collections.browse .record-pagination .pagination span,
  body.items.browse.collection-storage-browse .record-pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
  }

  /* Omeka 기본 page input 숨김 (test3.html에는 없음) */
  body.items.browse.record-board-browse .record-pagination .pagination li.page-input,
  body.collections.browse .record-pagination .pagination li.page-input,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.page-input {
    display: none !important;
  }

  /* 기본(숫자): 박스 없이 텍스트만 */
  body.items.browse.record-board-browse .record-pagination .pagination li a,
  body.collections.browse .record-pagination .pagination li a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li a,
  body.items.browse.record-board-browse .record-pagination .pagination li span,
  body.collections.browse .record-pagination .pagination li span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li span {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 10px !important;
  }

  /* 양끝/이전/다음: 박스 버튼 (구조 기반 + 클래스 기반 모두 대응) */
  body.items.browse.record-board-browse .record-pagination .pagination li:first-child a,
  body.collections.browse .record-pagination .pagination li:first-child a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:first-child a,
  body.items.browse.record-board-browse .record-pagination .pagination li:nth-child(2) a,
  body.collections.browse .record-pagination .pagination li:nth-child(2) a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:nth-child(2) a,
  body.items.browse.record-board-browse .record-pagination .pagination li:nth-last-child(2) a,
  body.collections.browse .record-pagination .pagination li:nth-last-child(2) a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:nth-last-child(2) a,
  body.items.browse.record-board-browse .record-pagination .pagination li:last-child a,
  body.collections.browse .record-pagination .pagination li:last-child a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:last-child a,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_first a,
  body.collections.browse .record-pagination .pagination li.pagination_first a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_first a,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_previous a,
  body.collections.browse .record-pagination .pagination li.pagination_previous a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_previous a,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_next a,
  body.collections.browse .record-pagination .pagination li.pagination_next a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_next a,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_last a,
  body.collections.browse .record-pagination .pagination li.pagination_last a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_last a,
  body.items.browse.record-board-browse .record-pagination .pagination li:first-child span,
  body.collections.browse .record-pagination .pagination li:first-child span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:first-child span,
  body.items.browse.record-board-browse .record-pagination .pagination li:nth-child(2) span,
  body.collections.browse .record-pagination .pagination li:nth-child(2) span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:nth-child(2) span,
  body.items.browse.record-board-browse .record-pagination .pagination li:nth-last-child(2) span,
  body.collections.browse .record-pagination .pagination li:nth-last-child(2) span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:nth-last-child(2) span,
  body.items.browse.record-board-browse .record-pagination .pagination li:last-child span,
  body.collections.browse .record-pagination .pagination li:last-child span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li:last-child span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_first span,
  body.collections.browse .record-pagination .pagination li.pagination_first span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_first span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_previous span,
  body.collections.browse .record-pagination .pagination li.pagination_previous span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_previous span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_next span,
  body.collections.browse .record-pagination .pagination li.pagination_next span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_next span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_last span,
  body.collections.browse .record-pagination .pagination li.pagination_last span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_last span {
    width: 35px !important;
    height: 35px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    padding: 0 !important;
  }

  body.items.browse.record-board-browse .record-pagination .pagination li.active > a,
  body.collections.browse .record-pagination .pagination li.active > a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.active > a,
  body.items.browse.record-board-browse .record-pagination .pagination li.active > span,
  body.collections.browse .record-pagination .pagination li.active > span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.active > span,
  body.items.browse.record-board-browse .record-pagination .pagination span.current,
  body.collections.browse .record-pagination .pagination span.current,
  body.items.browse.collection-storage-browse .record-pagination .pagination span.current {
    border: none;
    color: var(--point-color);
    font-weight: 700;
    text-decoration: underline;
    background: transparent;
  }

  /* 비활성(예: 첫페이지의 «, <): 흐리게 */
  body.items.browse.record-board-browse .record-pagination .pagination li.disabled a,
  body.collections.browse .record-pagination .pagination li.disabled a,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.disabled a,
  body.items.browse.record-board-browse .record-pagination .pagination li.disabled span,
  body.collections.browse .record-pagination .pagination li.disabled span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.disabled span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_first span,
  body.collections.browse .record-pagination .pagination li.pagination_first span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_first span,
  body.items.browse.record-board-browse .record-pagination .pagination li.pagination_previous span,
  body.collections.browse .record-pagination .pagination li.pagination_previous span,
  body.items.browse.collection-storage-browse .record-pagination .pagination li.pagination_previous span {
    opacity: 0.35;
    cursor: default;
  }

  body.items.browse.record-board-browse .record-pagination .pagination a:hover,
  body.collections.browse .record-pagination .pagination a:hover,
  body.items.browse.collection-storage-browse .record-pagination .pagination a:hover {
    background: #f4f4f4 !important;
  }

  /*
   * 컬렉션 browse(비스토리지): collection-solr-pager 마크업 — 기록 신문 .record-pagination과 동일 톤
   * (style.css 전역 .collection-solr-pager 박스/숫자 강조를 덮어씀)
   */
  body.collections.browse .collection-solr-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.collections.browse .collection-solr-pager__nums {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  body.collections.browse .collection-solr-pager__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0 10px !important;
    font-size: 14px;
    font-weight: 400;
    color: #666 !important;
    text-decoration: none;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
  }

  body.collections.browse .collection-solr-pager__num:hover {
    color: #666 !important;
    background: transparent !important;
  }

  body.collections.browse .collection-solr-pager__num.is-current {
    border: none !important;
    background: transparent !important;
    color: var(--point-color) !important;
    font-weight: 700;
    text-decoration: underline;
  }

  body.collections.browse .collection-solr-pager__edge,
  body.collections.browse .collection-solr-pager__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    margin: 0;
    padding: 0 10px !important;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    color: #666 !important;
    text-decoration: none;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  body.collections.browse .collection-solr-pager__edge:hover,
  body.collections.browse .collection-solr-pager__step:hover {
    background: #f4f4f4 !important;
    color: #666 !important;
  }

  body.collections.browse .collection-solr-pager__ellipsis {
    padding: 0 4px;
    font-size: 14px;
    color: #666;
    user-select: none;
    border: 0;
    background: transparent;
  }

  /* 전시(콘텐츠) 페이지네이션: 기록 페이지와 동일 톤 */
  body.exhibits.browse.content-tabs .pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 60px;
  }

  body.exhibits.browse.content-tabs .pagination-nav .pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.exhibits.browse.content-tabs .pagination-nav .pagination li {
    margin: 0;
    padding: 0;
  }

  body.exhibits.browse.content-tabs .pagination-nav .pagination a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
    border: 0 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    padding: 0 10px !important;
  }

  /* 숫자: 박스 없이 텍스트 */
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.active > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.active > span,
  body.exhibits.browse.content-tabs .pagination-nav .pagination span.current {
    border: none !important;
    color: var(--point-color) !important;
    font-weight: 700 !important;
    text-decoration: underline;
    background: transparent !important;
  }

  /* 양끝/이전/다음: 박스 버튼 */
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_first > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_previous > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_next > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_last > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_first > span,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_previous > span,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_next > span,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.pagination_last > span {
    width: 35px !important;
    height: 35px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    padding: 0 !important;
  }

  /* disabled는 흐리게 */
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.disabled > a,
  body.exhibits.browse.content-tabs .pagination-nav .pagination li.disabled > span {
    opacity: 0.35 !important;
    cursor: default !important;
  }

  body.exhibits.browse.content-tabs .pagination-nav .pagination a:hover {
    background: #f4f4f4 !important;
  }

  /* 기존 아이콘(:before) 겹침 방지 */
  body.exhibits.browse.content-tabs .pagination-nav .pagination a::before,
  body.exhibits.browse.content-tabs .pagination-nav .pagination span::before {
    content: none !important;
    display: none !important;
  }

  /* 10년 단위 연혁: 좌측 세로 구간 + 우측 라인 구분 목록(세로축·점 없음) */
  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 36px 44px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 72px;
    box-sizing: border-box;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side {
    flex: 0 0 auto;
    min-width: 132px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.15s ease, color 0.15s ease;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link:last-child {
    border-bottom: none;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #333;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link.active {
    color: var(--point-color);
    font-weight: 700;
    background: rgba(0, 175, 236, 0.08);
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-main {
    flex: 1;
    min-width: 0;
    max-width: 780px;
  }

  /* 10년 단위 연혁: test2.html의 history-list / history-row 스타일 */
  body.exhibits.browse.content-tabs .history-list-view {
    width: 100%;
    padding: 60px 0 80px;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view {
    background-color: transparent;
    border-top: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-list {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-list {
    gap: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(36px);
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-row {
    border-bottom: 1px solid #e5e5e5;
    padding-top: 26px;
    padding-bottom: 26px;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-row:first-child {
    border-top: 1px solid #e5e5e5;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-row.is-revealed {
    opacity: 1;
    transform: translateX(0);
  }

  @media (prefers-reduced-motion: reduce) {
    body.exhibits.browse.content-tabs .history-list-view .history-row {
      transition: none;
      opacity: 1;
      transform: none;
    }
  }

  @media (max-width: 767px) {
    body.exhibits.browse.content-tabs.content-tab-decade .history-decade-layout {
      flex-direction: column;
      align-items: stretch;
      padding-top: 18px;
      gap: 16px;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      min-width: 0;
      padding-top: 0;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link {
      border-bottom: none;
      border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-decade-side-link:last-child {
      border-right: none;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-decade-main {
      max-width: none;
    }

    /* 10년 단위 본문: 모바일에서 연도 옆 열이 너무 좁아 글자가 세로로 깨져 보이는 현상 방지(가로 읽기) */
    body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-row {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label-wrap {
      max-width: none;
      min-width: 0;
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label {
      min-width: 0;
      max-width: none;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-content {
      width: 100%;
      min-width: 0;
      flex: 1 1 auto;
    }

    body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-decade-thumb {
      width: 100%;
      max-width: 100%;
    }
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-timeline-empty {
    max-width: 52rem;
    margin: 2.5rem auto 3rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    word-break: keep-all;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-empty {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 2.5rem;
    box-sizing: border-box;
    padding: 1.25rem 20px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #666;
    word-break: keep-all;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-decade-main .history-decade-empty {
    max-width: none;
    margin: 0;
    padding: 1rem 0 1.5rem;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* 콘텐츠 > 연대표(test2.html 스타일) */
  body.exhibits.browse.content-tabs.content-tab-history .content-history-top {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  body.exhibits.browse.content-tabs.content-tab-history .content-history-top .sub-tit {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .content-history-top .main-tit {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: #000;
  }

  body.exhibits.browse.content-tabs.content-tab-history .content-history-top .desc {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
    word-break: keep-all;
    max-width: 760px;
    margin: 0 auto;
  }

  /* 10년 단위: 상단은 연대표 톤(큰 page-title 제거), 소제목·안내만 */
  body.exhibits.browse.content-tabs.content-tab-decade .content-decade-top {
    text-align: center;
    padding: 36px 20px 28px;
    background: #f9f9f9;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  body.exhibits.browse.content-tabs.content-tab-decade .content-decade-top .sub-tit {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .content-decade-top .desc {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
    word-break: keep-all;
    max-width: 760px;
    margin: 0 auto;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .content-container {
    padding: 0 20px 60px;
  }

  /* 연대표: 세로 타임라인(중앙 축 + 좌·우 카드 + 가로 연결선), 슬라이드 없음 */
  body.exhibits.browse.content-tabs.content-tab-history .history-vt {
    scroll-margin-top: 6.5rem;
    position: relative;
    margin: 28px auto 48px;
    padding: 12px 12px 8px;
    max-width: 1040px;
    overflow: visible;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__line {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(0, 175, 236, 0.22) 0%,
      rgba(0, 0, 0, 0.1) 12%,
      rgba(0, 0, 0, 0.12) 50%,
      rgba(0, 0, 0, 0.1) 88%,
      rgba(0, 175, 236, 0.22) 100%
    );
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    position: relative;
    z-index: 1;
    margin-bottom: 1.35rem;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__slot--content {
    min-width: 0;
    position: relative;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__slot--content {
    grid-column: 1;
    justify-self: end;
    width: 100%;
    max-width: 440px;
    padding-right: 6px;
    text-align: right;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__axis {
    grid-column: 2;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__slot--empty {
    grid-column: 3;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__slot--empty {
    grid-column: 1;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__axis {
    grid-column: 2;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__slot--content {
    grid-column: 3;
    justify-self: start;
    width: 100%;
    max-width: 440px;
    padding-left: 6px;
    text-align: left;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__axis {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 26px;
    min-height: 40px;
    overflow: visible;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--point-color);
    box-shadow: 0 0 0 5px rgba(0, 175, 236, 0.16);
    z-index: 2;
    flex-shrink: 0;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    text-align: inherit;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    overflow: hidden;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__body {
    padding: 16px 16px 18px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__card--no-thumb .history-vt__body {
    padding-top: 18px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__title {
    font-size: 1.38rem;
    font-weight: 700;
    color: #00afec;
    line-height: 1.38;
    margin: 0 0 6px;
    word-break: keep-all;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__when {
    font-size: 1.16rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1.55;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__meta {
    font-size: 1.16rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 6px;
    word-break: keep-all;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__body .church-history-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0a6f92;
    background: rgba(0, 175, 236, 0.12);
    border-radius: 999px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__desc {
    font-size: 1.16rem;
    color: #777;
    line-height: 1.55;
    word-break: keep-all;
    margin-bottom: 0;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt__desc + .church-history-tag {
    margin-top: 8px;
  }

  @media (max-width: 767px) {
    body.exhibits.browse.content-tabs.content-tab-history .history-vt {
      padding-left: 8px;
      padding-right: 8px;
    }

    body.exhibits.browse.content-tabs.content-tab-history .history-vt__line {
      left: 18px;
      transform: none;
    }

    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row {
      grid-template-columns: 36px minmax(0, 1fr);
      margin-bottom: 1.1rem;
    }

    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__slot--content,
    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__slot--content {
      grid-column: 2;
      grid-row: 1;
      justify-self: stretch;
      max-width: none;
      padding-right: 0;
      padding-left: 0;
      text-align: left;
    }

    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__axis,
    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__axis {
      grid-column: 1;
      grid-row: 1;
      padding-top: 22px;
    }

    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--left .history-vt__slot--empty,
    body.exhibits.browse.content-tabs.content-tab-history .history-vt__row--right .history-vt__slot--empty {
      display: none;
    }
  }

  body.exhibits.browse.content-tabs.content-tab-history .content-history-top .history-vt-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    margin: 22px auto 0;
    padding: 0 8px 6px;
    max-width: 900px;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt-filter:hover {
    border-color: rgba(0, 175, 236, 0.45);
    color: #0a6f92;
  }

  body.exhibits.browse.content-tabs.content-tab-history .history-vt-filter.is-active {
    color: #fff;
    background: var(--point-color);
    border-color: rgba(0, 175, 236, 0.35);
    box-shadow: 0 4px 12px rgba(0, 175, 236, 0.22);
  }

  body.exhibits.browse.content-tabs .history-list-view .year-label {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--point-color);
    min-width: 7.5em;
    max-width: 11em;
    line-height: 1.35;
    padding-top: 4px;
    margin: 0;
    word-break: break-all;
  }

  /* 연대표 카드의 시점(.history-vt__when) · 제목(.history-vt__title)과 동일 톤 */
  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 6.5em;
    max-width: 11em;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label-wrap .year-label {
    padding-top: 0;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label-wrap .church-history-tag--list {
    margin-top: 0;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label {
    font-size: 1.16rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.02em;
    line-height: 1.55;
    word-break: break-word;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .year-label-wrap .church-history-tag--list {
    font-size: 1.02rem;
    padding: 2px 8px;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-title {
    font-size: 1.38rem;
    font-weight: 700;
    color: #00afec;
    line-height: 1.38;
    margin: 0 0 6px;
    word-break: keep-all;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-content p {
    font-size: 1.16rem;
    line-height: 1.55;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-content p.history-meta-desc {
    color: #777;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content {
    flex: 1;
    border-left: 2px solid #eee;
    padding-left: 30px;
    position: relative;
    padding-bottom: 10px;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 12px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--point-color);
    border-radius: 50%;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-content {
    border-left: none;
    padding-left: 0;
    padding-bottom: 0;
  }

  body.exhibits.browse.content-tabs.content-tab-decade .history-list-view .history-content::before {
    content: none !important;
    display: none !important;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content p.history-meta {
    margin-top: 0.4em;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content p.history-meta-sub {
    color: #555;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content p.history-meta-persons {
    color: #666;
  }

  body.exhibits.browse.content-tabs .history-list-view .history-content p.history-meta-desc {
    color: #777;
  }

  body.exhibits.browse.content-tabs .history-list-view .church-history-tag.church-history-tag--list {
    display: inline-block;
    padding: 2px 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a6f92;
    background: rgba(0, 175, 236, 0.12);
    border-radius: 999px;
  }

  /* 10년 단위 연혁: DB에 이미지가 있을 때만(연대표 썸네일과 톤 맞춤) */
  body.exhibits.browse.content-tabs .history-list-view .history-decade-thumb {
    flex: 0 0 auto;
    width: 140px;
    max-width: 30vw;
    min-height: 1px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  body.exhibits.browse.content-tabs .history-list-view .history-decade-thumb img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    display: block;
  }

  @media (max-width: 600px) {
    body.exhibits.browse.content-tabs .history-list-view .history-row--with-thumb {
      flex-wrap: wrap;
    }

    body.exhibits.browse.content-tabs .history-list-view .history-row--with-thumb .year-label-wrap,
    body.exhibits.browse.content-tabs .history-list-view .history-row--with-thumb .year-label {
      flex: 0 0 100%;
      max-width: none;
    }

    body.exhibits.browse.content-tabs .history-list-view .history-row--with-thumb .history-decade-thumb {
      max-width: 100%;
      width: 100%;
    }
  }

  /* 콘텐츠(전시) 2차 탭: 다른 페이지(공통)와 동일 정렬/간격 */
  body.exhibits.browse.content-tabs .sub-tab-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
  }

  body.exhibits.browse.content-tabs .sub-tab {
    padding: 0 20px;
    font-size: 17px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    text-decoration: none;
  }

  body.exhibits.browse.content-tabs .sub-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ddd;
  }

  body.exhibits.browse.content-tabs .sub-tab.active {
    color: var(--point-color);
    font-weight: 700;
  }

  body.exhibits.browse.content-tabs .sub-tab.active::before {
    content: '●';
    font-size: 8px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--point-color);
  }

  /* (통일) 콘텐츠 탭별 예외 active 효과 제거 */

  /* 콘텐츠(전시) browse 페이지: 상단 서브네비 제거 */
  body.exhibits.browse .subnav.exhibit-subnav {
    display: none !important;
  }

  /* 기존 테마의 페이지네이션 아이콘(:before) 비활성화 */
  body.items.browse.record-board-browse .record-pagination .pagination a::before,
  body.items.browse.record-board-browse .record-pagination .pagination span::before,
  body.collections.browse .record-pagination .pagination a::before,
  body.collections.browse .record-pagination .pagination span::before,
  body.items.browse.collection-storage-browse .record-pagination .pagination a::before,
  body.items.browse.collection-storage-browse .record-pagination .pagination span::before {
    content: none !important;
    display: none !important;
  }

  .item {
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
  }

  .item .img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .item .img-wrap.item-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .item .item-thumb-placeholder__label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
  }

  .item .img-wrap .video-thumb-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    transition: color 0.3s, background 0.3s;
  }

  .item:hover .img-wrap .video-thumb-icon {
    color: #00afec;
    background: linear-gradient(135deg, #333 0%, #222 100%);
  }

  .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
  }

  .item:hover img {
    transform: scale(1.05);
  }

  .item .txt-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* collections/show: 헤더 하단 1차 탭 — browse 는 browse.php 의 sub-visual .main-tab-group 사용 */
  body.collections.show .collection-subnav {
    position: absolute;
    top: calc(7rem + 250px - 186px);
    left: 0;
    width: 100%;
    z-index: 30;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: 0;
  }

  body.collections.show .collection-subnav .subnav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(840px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 !important;
    gap: 0;
    min-height: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body.collections.show .collection-subnav .subnav-menu li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }

  body.collections.show .collection-subnav .subnav-menu li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  body.collections.show .collection-subnav .subnav-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  body.collections.show .collection-subnav .subnav-menu li:last-child a {
    border-right: 0 !important;
  }

  body.collections.show .collection-subnav .subnav-menu li.active a {
    background: #fff;
    color: #000;
    font-weight: 700;
  }

  body.collections.show .collection-subnav .subnav-menu li a:hover {
    color: #fff;
  }

  body.collections.show .collection-subnav .subnav-menu li.active a:hover {
    color: #000;
  }

  body.collections.show .collection-subnav .subnav-indicator {
    display: none;
  }

  body.collections.show .subnav.collection-subnav {
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
  }

  body.collections.show .subnav.collection-subnav .subnav-menu li a,
  body.collections.show .subnav.collection-subnav .subnav-menu li.active a {
    color: #fff !important;
  }

  body.collections.show .subnav.collection-subnav .subnav-menu li.active a {
    color: #000 !important;
    font-weight: 700 !important;
  }

  /* Simple Pages(참여/소개) 1차 탭: page.php / page/show.php 의 .sub-visual .main-tab-group (기록과 동일) */

/* ------------------------------------------------------------------ */
/* Footer */
footer.ata-footer {
  display: block;
  margin-top: 80px;
  background: #f9f9f9;
  color: rgba(85, 85, 85, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ata-footer__inner {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 46px;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.27fr);
  gap: 44px;
}

.ata-footer__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--site-point);
}

.ata-footer__desc {
  margin: 14px 0 0;
  line-height: 1.75;
  font-size: 15px;
}

.ata-footer__contact {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.ata-footer__contact p {
  margin: 0;
}

.ata-footer__menus {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.ata-footer__menu-group h3 {
  margin: 0 0 14px;
  color: #555;
  font-size: 1.1rem;
  font-weight: 700;
}

.ata-footer__menu-group a {
  display: block;
  margin: 0 0 9px;
  color: rgba(85, 85, 85, 0.86);
  font-size: 1.1rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ata-footer__menu-group a:last-child {
  margin-bottom: 0;
}

.ata-footer__menu-group a:hover {
  color: #555;
}

.ata-footer__bottom {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(85, 85, 85, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.ata-footer__policies {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ata-footer__policies a,
.ata-footer__copy {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(85, 85, 85, 0.82);
  text-decoration: none;
}

.ata-footer__policies a:hover {
  color: var(--site-point);
}

.ata-footer__copy {
  margin: 0;
}

@media (max-width: 1024px) {
  footer.ata-footer {
    margin-top: 56px;
  }

  .ata-footer__inner {
    width: calc(100% - 32px);
    padding: 38px 0 30px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ata-footer__menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .ata-footer__bottom {
    width: calc(100% - 32px);
    padding: 14px 0 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* -------------------------------------------------------------------------
   홈 — 디지털 아카이브 허브 (배경 영상 + 스크림 + 선 프레임 + 하단 패널)
   ------------------------------------------------------------------------- */
/* FOUC: 비디오·CSS 로드 전 흰 배경이 보이는 것 방지(리프레시 시 하얀 깜빡임) */
html:has(body#home.home-archive-hub) {
  overflow: auto;
  height: auto;
  background: #0a0c10;
}

body#home.home-archive-hub {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100dvh;
  background: #0a0c10;
}

body#home.home-archive-hub #content {
  padding: 0;
  margin: 0;
  background: #0a0c10;
}

body#home.home-archive-hub #wrap {
  min-height: 100dvh;
  background: #0a0c10;
}

.home-archive-hub-page {
  position: relative;
  min-height: 100dvh;
  background: #0a0c10;
}

/* --- 히어로 스테이지(영상 전 짙은 베이스 = 흰 플래시 방지, 위에 영상이 덮음) --- */
.home-archive-hub__stage {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0c10;
}

.home-archive-hub__video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.home-archive-hub__stage > *:not(.home-archive-hub__video):not(.home-archive-hub__mo-bg):not(script) {
  position: relative;
  z-index: 2;
}

/* 모바일 전용 메인 배경(이미지 슬라이드) — PC에서는 숨김 */
.home-archive-hub__mo-bg {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* 전환 순간 투명 겹침이어도 순백·순검 플래시 완화 */
  background-color: #121418;
}

.home-archive-hub__mo-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes homeMoBgKen1 {
  /* 3번→1번 루프: 3번이 내려가는 동안 1번이 올라와 겹침 */
  0% {
    opacity: 0.45;
    transform: scale(1.02);
  }
  2.5% {
    opacity: 1;
    transform: scale(1.02);
  }
  28% {
    opacity: 1;
    transform: scale(1.28);
  }
  32% {
    opacity: 1;
    transform: scale(1.34);
  }
  /* 2번과 크로스페이드(검정 구간 없음) */
  33% {
    opacity: 0.92;
    transform: scale(1.35);
  }
  37% {
    opacity: 0;
    transform: scale(1.36);
  }
  37.01%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes homeMoBgKen2 {
  0%,
  28% {
    opacity: 0;
    transform: scale(1);
  }
  30% {
    opacity: 0.5;
    transform: scale(1.02);
  }
  33% {
    opacity: 1;
    transform: scale(1.02);
  }
  61% {
    opacity: 1;
    transform: scale(1.28);
  }
  65% {
    opacity: 1;
    transform: scale(1.34);
  }
  66% {
    opacity: 0.92;
    transform: scale(1.35);
  }
  70% {
    opacity: 0;
    transform: scale(1.36);
  }
  70.01%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes homeMoBgKen3 {
  0%,
  61% {
    opacity: 0;
    transform: scale(1);
  }
  63% {
    opacity: 0.5;
    transform: scale(1.02);
  }
  66% {
    opacity: 1;
    transform: scale(1.02);
  }
  93% {
    opacity: 1;
    transform: scale(1.28);
  }
  96.5% {
    opacity: 1;
    transform: scale(1.34);
  }
  97.5% {
    opacity: 0.55;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

.home-archive-hub__mo-bg__layer--1 {
  animation: homeMoBgKen1 24s infinite ease-in-out;
}

.home-archive-hub__mo-bg__layer--2 {
  animation: homeMoBgKen2 24s infinite ease-in-out;
}

.home-archive-hub__mo-bg__layer--3 {
  animation: homeMoBgKen3 24s infinite ease-in-out;
}

.home-archive-hub__stage--static .home-archive-hub__video {
  display: none;
}

.home-archive-hub__stage--static {
  background: linear-gradient(155deg, #0f1218 0%, #1a1f2a 42%, #0a0c10 100%);
}

.home-archive-hub__stage-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100dvh;
  min-height: 100svh;
  align-items: center;
  /* 모바일: #home #site-header = 서브와 동일 6rem — PC: 헤더 6rem·1400px란에 맞춤 */
  padding: calc(6rem + 28px) 0 40px;
  box-sizing: border-box;
}

@media screen and (min-width: 1024px) {
  .home-archive-hub__stage-inner {
    padding-top: calc(6rem + 28px);
  }
}

.home-archive-hub.home-archive-hub--on-media {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 글라스: 밝은 반사만(어두운 rgba 필 없음) — 뒤 영상 톤 유지 */
.home-archive-hub__line-frame {
  position: relative;
  width: 100%;
  padding: clamp(24px, 3.5vw, 40px) clamp(22px, 2.6vw, 34px) clamp(24px, 3.2vw, 36px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
}

.home-archive-hub--on-media .home-archive-hub__intro,
.home-archive-hub--on-media .home-archive-hub__hero,
.home-archive-hub--on-media .home-archive-hub__search-block {
  text-align: center;
}

/* 모바일 전용 검색 상단 문구 — PC에서는 숨김 */
.home-archive-hub__mo-tagline {
  display: none;
}

.home-archive-hub--on-media .home-archive-hub__intro {
  margin-left: auto;
  margin-right: auto;
}

/* 코너 장식선 */
.home-archive-hub__line-frame::before,
.home-archive-hub__line-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.5);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.home-archive-hub__line-frame::before {
  top: 12px;
  left: 12px;
  border-width: 1.5px 0 0 1.5px;
}

.home-archive-hub__line-frame::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1.5px 1.5px 0;
}

.home-archive-hub--on-media .home-archive-hub__hero {
  padding: 0 0 0;
  margin: 0 0 0;
  border: none;
}

.home-archive-hub__rule {
  height: 0;
  margin: clamp(20px, 2.2vw, 28px) 0 clamp(20px, 2.2vw, 24px);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.home-archive-hub--on-media .home-archive-hub__rule {
  max-width: min(360px, 60%);
  margin-top: clamp(20px, 2.2vw, 28px);
  margin-bottom: clamp(20px, 2.2vw, 24px);
  margin-left: auto;
  margin-right: auto;
}

.home-archive-hub--on-media .home-archive-hub__eyebrow {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.home-archive-hub--on-media .home-archive-hub__title {
  color: #faf8f2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.home-archive-hub--on-media .home-archive-hub__intro p,
.home-archive-hub--on-media .home-archive-hub__lede {
  color: rgba(250, 248, 240, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-archive-hub__intro {
  max-width: 52em;
}

.home-archive-hub__intro p,
.home-archive-hub__lede {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.home-archive-hub__intro p:last-child {
  margin-bottom: 0;
}

.home-archive-hub--on-media .home-archive-hub__h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f0ebe0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.home-archive-hub--on-media .home-archive-hub__search-block {
  margin-bottom: 0;
}

.home-archive-hub--panel .home-archive-hub__explore-lead {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5c5c5c;
}

/* --- 하단(분류 카드) — 밝은 패널 + 이중 상단 라인 --- */
.home-archive-hub__lower {
  position: relative;
  z-index: 3;
  background: #f0ebe3;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.home-archive-hub.home-archive-hub--panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 0;
  box-sizing: border-box;
}

.home-archive-hub__panel {
  padding: 40px 0 72px;
  border-top: 3px double rgba(20, 20, 20, 0.55);
  position: relative;
}

.home-archive-hub__panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 패널 타이틀 */
.home-archive-hub--panel .home-archive-hub__h2 {
  margin: 0 0 8px;
  color: #141414;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  opacity: 1;
  height: 46px;
  padding: 0 14px 0 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  text-align: left; /* 입력은 좌→우, 박스만 가운데 */
}

/* PC 메인: 검색 위 슬로건만 + 검색(모바일 max-width 블록과 분리) */
@media screen and (min-width: 1024px) {
  body#home.home-archive-hub .home-archive-hub__stage-inner {
    align-items: center;
    justify-content: center;
    padding-top: calc(6rem + 28px);
    padding-bottom: 48px;
  }

  /* PC: 검색 블록 위에는 슬로건만 — 소개·구분선은 비표시(모바일은 아래 다른 @media) */
  body#home.home-archive-hub .home-archive-hub__hero,
  body#home.home-archive-hub .home-archive-hub__rule {
    display: none !important;
  }

  body#home.home-archive-hub .home-archive-hub__mo-tagline {
    display: block;
    margin: 0 8px 1.125rem;
    padding: 0 12px 1.125rem;
    max-width: none;
    font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -0.025em;
    color: #faf8f2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* PC 메인 글라스 박스 가로(헤더 1400px보다 좁게) */
  body#home.home-archive-hub .home-archive-hub.home-archive-hub--on-media {
    width: min(840px, calc(100vw - 48px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-17vh);
  }

  body#home.home-archive-hub .home-archive-hub__line-frame {
    padding: clamp(20px, 2.6vw, 32px) clamp(18px, 2.2vw, 28px) clamp(18px, 2.4vw, 28px);
  }

  body#home.home-archive-hub .home-archive-hub__intro {
    max-width: none;
    width: 100%;
  }

  body#home.home-archive-hub .home-archive-hub--on-media .home-archive-hub__intro p,
  body#home.home-archive-hub .home-archive-hub--on-media .home-archive-hub__lede {
    font-size: 1.16rem;
    line-height: 1.78;
    letter-spacing: -0.02em;
  }

  body#home.home-archive-hub .home-archive-hub__search-block {
    margin-top: 0;
  }

  body#home.home-archive-hub .home-archive-hub--on-media .home-archive-hub__rule {
    max-width: min(520px, 85%);
    margin-top: clamp(12px, 1.6vw, 18px);
    margin-bottom: clamp(10px, 1.4vw, 16px);
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="text"],
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="search"] {
    font-size: 1.05rem;
  }

  /* Option 1: 아이보리 글라스 검색창(PC) */
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search {
    background: rgba(245, 241, 232, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
      0 10px 26px rgba(8, 10, 14, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-icon {
    color: #4b5766;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="text"],
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="search"] {
    color: #1c232d;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::placeholder,
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::-webkit-input-placeholder {
    color: #5d6672;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
      0 14px 30px rgba(8, 10, 14, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.54);
  }
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search.show {
  transform: none;
  opacity: 1;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search::before {
  display: none;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-icon {
  color: #4b5766;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-icon svg circle,
body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-icon svg line {
  stroke: currentColor !important;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form {
  flex: 1;
  min-width: 0;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="text"],
body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1c232d;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::placeholder {
  color: #5d6672;
  font-weight: 500;
  opacity: 1;
}

body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 14px 30px rgba(8, 10, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  background: rgba(245, 241, 232, 0.68);
}

.home-archive-hub__card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}

.home-archive-hub__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 20px;
  min-height: 92px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fafaf9;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-archive-hub__card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.home-archive-hub__card-label {
  font-weight: 700;
  font-size: 1.03rem;
  color: #111;
}

.home-archive-hub__card-desc {
  font-size: 0.875rem;
  color: #5c5c5c;
  line-height: 1.45;
}

.home-archive-hub__explore {
  margin-top: 4px;
}

.home-archive-hub__recent {
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, #f8f4ed 0%, #eee7dd 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.08);
}

.home-archive-hub__recent-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 34px;
  box-sizing: border-box;
}

.home-archive-hub__recent-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-archive-hub__recent-kicker {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8a6233;
  letter-spacing: 0.08em;
}

.home-archive-hub__recent-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #151515;
  letter-spacing: -0.03em;
}

.home-archive-hub__recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-archive-hub__recent-card {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-archive-hub__recent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 98, 51, 0.36);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.home-archive-hub__recent-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd4c8;
}

.home-archive-hub__recent-media img,
.home-archive-hub__recent-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-archive-hub__recent-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6b5a47;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: repeating-linear-gradient(-45deg, #efe7dc 0, #efe7dc 8px, #e3d8c9 8px, #e3d8c9 16px);
}

.home-archive-hub__recent-name {
  display: block;
  margin-top: 10px;
  min-height: 2.6em;
  color: #1d1d1d;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media screen and (min-width: 1024px) {
  body#home.home-archive-hub .home-archive-hub__recent {
    position: absolute;
    top: calc(50% + 76px);
    left: 0;
    right: 0;
    margin-top: 0;
    padding-bottom: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
  }

  body#home.home-archive-hub .home-archive-hub__recent-inner {
    width: min(660px, calc(100vw - 64px));
    padding: 0;
  }

  body#home.home-archive-hub .home-archive-hub__recent-head {
    justify-content: center;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  body#home.home-archive-hub .home-archive-hub__recent-kicker {
    margin: 0;
    color: #ffe0aa;
    font-size: 0.75rem;
  }

  body#home.home-archive-hub .home-archive-hub__recent-title {
    color: #fffdf7;
  }

  body#home.home-archive-hub .home-archive-hub__recent-grid {
    gap: 12px;
  }

  body#home.home-archive-hub .home-archive-hub__recent-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body#home.home-archive-hub .home-archive-hub__recent-media {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 5px;
  }

  body#home.home-archive-hub .home-archive-hub__recent-name {
    width: fit-content;
    max-width: 100%;
    margin: 6px auto 0;
    padding: 2px 7px 3px;
    min-height: 2.25em;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }
}

/* 메인 하단 '분류로 탐색'은 모바일 전용 (기본: 숨김) */
body#home.home-archive-hub .home-archive-hub__lower,
body#home.home-archive-hub #home-archive-lower {
  display: none !important;
}

@media (max-width: 1023.98px) {
  body#home.home-archive-hub .home-archive-hub__lower,
  body#home.home-archive-hub #home-archive-lower {
    display: block !important;
  }
}

@media (max-width: 600px) {
  .home-archive-hub.home-archive-hub--on-media {
    padding: 0 16px;
  }

  .home-archive-hub.home-archive-hub--panel {
    padding: 0 16px 0;
  }

  .home-archive-hub__line-frame {
    padding: 18px 16px 20px;
  }

  .home-archive-hub__panel {
    padding: 32px 0 56px;
  }

  .home-archive-hub__card-grid {
    grid-template-columns: 1fr;
  }

  .home-archive-hub__recent-inner {
    padding: 24px 16px 28px;
  }

  .home-archive-hub__recent-head {
    display: block;
  }

  .home-archive-hub__recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-archive-hub__recent-card {
    padding: 8px;
    border-radius: 13px;
  }

  .home-archive-hub__recent-media {
    border-radius: 10px;
  }

  .home-archive-hub__recent-name {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-archive-hub__line-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* 메인 모바일: 중앙 글라스 박스·소개·구분선 제거, 검색창만; 세로는 정중앙보다 약간 위 */
@media (max-width: 1023.98px) {
  html:has(body#home.home-archive-hub),
  body#home.home-archive-hub {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100svh;
    overscroll-behavior-y: auto;
  }

  body#home.home-archive-hub #wrap,
  body#home.home-archive-hub .home-archive-hub-page {
    min-height: 100svh;
  }

  body#home.home-archive-hub .home-archive-hub__stage {
    min-height: 100svh;
  }

  body#home.home-archive-hub .home-archive-hub__stage-inner {
    align-items: center;
    justify-content: center;
  }

  body#home.home-archive-hub .home-archive-hub.home-archive-hub--on-media {
    width: 100%;
    max-width: min(640px, 100%);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    transform: translateY(-7vh);
  }

  body#home.home-archive-hub .home-archive-hub__line-frame {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body#home.home-archive-hub .home-archive-hub__line-frame::before,
  body#home.home-archive-hub .home-archive-hub__line-frame::after {
    display: none;
  }

  body#home.home-archive-hub .home-archive-hub__hero,
  body#home.home-archive-hub .home-archive-hub__rule {
    display: none !important;
  }

  /* PC 메인 line-frame과 유사: 한 박스 안에 카피 → 라인 → 검색 */
  body#home.home-archive-hub .home-archive-hub__search-block {
    margin: 0 auto;
    padding: 22px 18px 18px;
    max-width: min(420px, calc(100vw - 32px));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-align: center;
    box-sizing: border-box;
  }

  body#home.home-archive-hub .home-archive-hub__mo-tagline {
    display: block;
    margin: 0 4px 16px;
    padding: 0 4px 16px;
    max-width: none;
    border-radius: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.03em;
    color: #faf8f2;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  /* 박스 안 검색: 얇은 글라스(가독 유지) — 포커스 시 조금 더 맑게 */
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search {
    display: flex !important;
    margin-top: 0;
    width: 100%;
    max-width: none;
    height: 52px;
    padding: 0 16px 0 18px;
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 12px;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-icon {
    color: #4b5563;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="text"],
  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input[type="search"] {
    font-weight: 500;
    color: #0f1318;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::placeholder {
    color: #3a424a;
    font-weight: 500;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::-webkit-input-placeholder {
    color: #3a424a;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search .search-form input::-moz-placeholder {
    color: #3a424a;
  }

  body#home.home-archive-hub .home-archive-hub__search-form.pc-main-search:focus-within {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.68);
  }

  /* 모바일·좁은 화면: 3장 슬라이드 준비될 때만 배경 영상 끔 */
  body#home.home-archive-hub .home-archive-hub__stage--mo-slides .home-archive-hub__video {
    display: none !important;
  }

  body#home.home-archive-hub .home-archive-hub__stage--mo-slides .home-archive-hub__mo-bg {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1023.98px) {
  body#home.home-archive-hub .home-archive-hub__stage--mo-slides .home-archive-hub__mo-bg__layer {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
  }

  body#home.home-archive-hub .home-archive-hub__stage--mo-slides .home-archive-hub__mo-bg__layer--1 {
    opacity: 1 !important;
  }
}

/* 모바일: 2~3단 탭 — ● 겹침 제거, 박스형 / 컬렉션 카드·아이템 썸 정사각(비율 유지) */
@media (max-width: 767.98px) {
  /* 상단: 검색 1행 → 그 아래 건수(전체|이화면) — 기록/컬렉션/콘텐츠 공통 */
  .board-top-util,
  .content-container .board-top-util {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
  }

  .board-top-util .search-wrap,
  .content-container .board-top-util .search-wrap {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
  }

  .board-top-util .board-info,
  .content-container .board-top-util .board-info {
    order: 2;
  }

  /* 콘텐츠: 연대표·10년 단위 — 모바일에선 세로 콘텐츠 위주, 상단 키워드 검색 UI 불필요(기념사 등은 유지) */
  body.exhibits.browse.content-tabs.content-tab-history .board-top-util .search-wrap,
  body.exhibits.browse.content-tabs.content-tab-decade .board-top-util .search-wrap {
    display: none !important;
  }

  body.exhibits.browse.content-tabs.content-tab-history .board-top-util,
  body.exhibits.browse.content-tabs.content-tab-decade .board-top-util {
    flex-direction: column;
  }

  body.exhibits.browse.content-tabs.content-tab-history .board-top-util .board-info,
  body.exhibits.browse.content-tabs.content-tab-decade .board-top-util .board-info {
    order: 1;
  }

  body:not(#home) .folder-hub--view-grid .folder-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 3.5vw, 20px) clamp(12px, 3vw, 16px);
  }

  body.collections.browse:not(#home) .collection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(14px, 3.5vw, 20px) clamp(12px, 3vw, 16px);
  }

  /* 사진/동영상/문서 스토리지 그리드: 전역 .archive-grid 가 4열 — 모바일은 2열만(2020년대 등) */
  body.collections.browse:not(#home) .archive-grid,
  body.items.browse .archive-grid,
  body.exhibits.browse.content-tabs.content-tab-memorial .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, 3.5vw, 20px) clamp(10px, 3vw, 16px) !important;
  }

  body.collections.browse:not(#home) .card-thumb,
  body.collections.browse:not(#home) .folder-hub--view-grid .card-thumb {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  body.collections.browse:not(#home) .card-thumb img {
    object-fit: contain;
  }

  body.items.browse .item .img-wrap,
  body.collections.browse .item .img-wrap,
  .archive-grid .item .img-wrap {
    height: auto;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  body.items.browse .item img,
  body.collections.browse .item .img-wrap img,
  .archive-grid .item .img-wrap img {
    object-fit: contain;
  }

  .sub-tab-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .sub-tab {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.35rem;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: #444;
    background: #fafbfc;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-weight: 500;
  }

  .sub-tab::before,
  .sub-tab::after,
  .sub-tab.active::before {
    content: none !important;
    display: none !important;
  }

  .sub-tab.active {
    color: #fff;
    font-weight: 700;
    background: var(--point-color, #00afec);
    border-color: var(--point-color, #00afec);
  }

  body.exhibits.browse.content-tabs .sub-tab {
    color: #444;
  }

  body.exhibits.browse.content-tabs .sub-tab.active {
    color: #fff;
  }

  body.exhibits.browse.content-tabs .sub-tab::before,
  body.exhibits.browse.content-tabs .sub-tab::after,
  body.exhibits.browse.content-tabs .sub-tab.active::before {
    content: none !important;
    display: none !important;
  }

  /* 서브 비주얼 1차(사진 컬렉션/역대 등): 모바일 2열, 가로 스크롤 대신 박스 그리드 */
  body.collections.browse:not(#home) .sub-visual,
  body.exhibits.browse:not(#home) .sub-visual,
  body.items.browse:not(.record-board-browse):not(#home) .sub-visual {
    min-height: 0;
    height: auto;
    padding: 1.4rem 12px 1.1rem;
    max-width: 100%;
  }

  body.collections.browse:not(#home) .sub-visual h2,
  body.exhibits.browse:not(#home) .sub-visual h2,
  body.items.browse:not(.record-board-browse):not(#home) .sub-visual h2 {
    margin-top: 0;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  body.collections.browse:not(#home) .sub-visual .en-title,
  body.exhibits.browse:not(#home) .sub-visual .en-title,
  body.items.browse:not(.record-board-browse):not(#home) .sub-visual .en-title {
    margin-bottom: 0.5rem;
  }

  /* 컬렉션 / 콘텐츠(전시): 서브비주얼 1차 탭 = 기록(record-board)과 동일 — 2열, 이중 박스 */
  body.collections.browse:not(#home) .main-tab-group,
  body.exhibits.browse:not(#home) .main-tab-group,
  body.items.browse:not(.record-board-browse):not(#home) .main-tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 6px 8px;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    margin-top: 0.55rem;
    padding: 4px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }

  body.collections.browse:not(#home) .main-tab,
  body.exhibits.browse:not(#home) .main-tab,
  body.items.browse:not(.record-board-browse):not(#home) .main-tab {
    min-width: 0;
    width: 100%;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    white-space: normal;
    line-height: 1.3;
    padding: 0.5rem 0.35rem;
    font-size: 0.88rem;
  }

  body.collections.browse:not(#home) .main-tab:hover,
  body.exhibits.browse:not(#home) .main-tab:hover,
  body.items.browse:not(.record-board-browse):not(#home) .main-tab:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  body.collections.browse:not(#home) .main-tab.active,
  body.exhibits.browse:not(#home) .main-tab.active,
  body.items.browse:not(.record-board-browse):not(#home) .main-tab.active {
    background: #fff;
    color: #000;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.5);
  }

  body.collections.browse:not(#home) .main-tab:last-child:nth-child(odd),
  body.exhibits.browse:not(#home) .main-tab:last-child:nth-child(odd),
  body.items.browse:not(.record-board-browse):not(#home) .main-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 콘텐츠 보호: 드래그·롱탭(모바일)으로 이미지 저장·공유를 어렵게 (content-protection.js 보조) */
img,
video,
canvas,
picture {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
