/* 문화소식 게시판(목록·상세). 변수는 style.css, 공통 레이아웃은 detail.css 이후 로드 */

.list-board-muted {
  margin: 0;
  color: #737373;
}

.news-board__search-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  flex: 0 1 auto;
  margin: 0;
}

.news-board__select {
  min-width: 5.75rem;
  height: 33.59px;
  padding: 0 0.55rem;
  font-size: 0.88rem;
  color: #222;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

.news-board__select--sm {
  min-width: 5.5rem;
  height: 2.1rem;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  border-color: #c8c8c8;
}

.news-board__input {
  flex: 0 1 16rem;
  width: 16rem;
  min-width: 10rem;
  height: 33.59px;
  padding: 0 0.7rem;
  font-size: 0.88rem;
  color: #222;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

.news-board__input::placeholder {
  color: #999;
}

.news-board__input:focus-visible,
.news-board__select:focus-visible {
  outline: 2px solid var(--accent, #1a1a1a);
  outline-offset: 1px;
  border-color: #000;
}

.news-board__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33.59px;
  padding: 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

.news-board__search-btn:hover {
  filter: brightness(1.12);
}

.news-board__search-btn:focus-visible {
  outline: 2px solid var(--accent, #1a1a1a);
  outline-offset: 2px;
}

.news-board__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #444;
}

.news-board__toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.news-board__write-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.42rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-sizing: border-box;
  transition: filter 0.15s ease, background 0.15s ease;
}

.news-board__write-link:hover {
  filter: brightness(1.07);
  color: #fff;
}

.news-board__write-link:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

/* 문화정보 — 외부 캘린더(본문·목록과 구분되는 outline 버튼) */
.news-board__calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.news-board__calendar-btn i {
  font-size: 0.92rem;
  color: #555;
}

.news-board__calendar-btn:hover {
  color: var(--ink, #1a1a1a);
  border-color: var(--ink, #1a1a1a);
  background: #f7f7f7;
}

.news-board__calendar-btn:hover i {
  color: var(--ink, #1a1a1a);
}

.news-board__calendar-btn:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

.news-board__rss-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink, #222);
  text-decoration: none;
  white-space: nowrap;
  background: #ffe6a6;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.news-board__rss-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink, #111);
}

.news-board__rss-link:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

/* 카카오톡 인앱 WebView: 외부 브라우저 안내(강제 전환 불가 — article-tools.js) */
.cwcf-kakao-inapp-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  background: #fff8e1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cwcf-kakao-inapp-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.cwcf-kakao-inapp-banner__text {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #333;
}

.cwcf-kakao-inapp-banner__close {
  flex: 0 0 auto;
  min-width: 2.25rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #444;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cwcf-kakao-inapp-banner__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.cwcf-kakao-inapp-banner__close:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

body.cwcf-has-kakao-inapp-banner {
  padding-top: 3.35rem;
}

@media print {
  .cwcf-kakao-inapp-banner {
    display: none !important;
  }

  body.cwcf-has-kakao-inapp-banner {
    padding-top: 0 !important;
  }
}

.news-board__per-page {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-board__per-page-label {
  font-size: 0.85rem;
  color: #555;
}

.news-board__per-page-value {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  font-size: 0.85rem;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* 목록: PC 가로(번호·제목·게시일·조회) / 태블릿·모바일 세로 */
.news-board__list-wrap {
  margin-bottom: 1.25rem;
  border-radius: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  --news-board-icon-no: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 17h2v-2H3v2zm0-5h2v-2H3v2zm0-5h2V5H3v2zm4 10h14v-2H7v2zm0-5h14v-2H7v2zm0-5h14V5H7v2z'/%3E%3C/svg%3E");
  --news-board-icon-hit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.news-board__list-head {
  display: none;
}

.news-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* 태블릿·모바일: 제목 → 게시일 → (번호·조회 한 줄) */
.news-board__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed #cfcfcf;
}

.news-board__item:last-child {
  border-bottom: none;
}

.news-board__item--notice {
  background: rgba(255, 252, 246, 0.95);
}

.news-board__item--notice a, .news-board__item--notice .news-board__item-source {
  color: var(--accent) !important;
}

.news-board__item--empty {
  justify-content: center;
  text-align: center;
  color: #737373;
  border-bottom: none;
  padding: 2rem 0.5rem;
}

.news-board__item-title {
  flex: 1 1 100%;
  font-size: clamp(0.92rem, 2.8vw, 1rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink, #151515);
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  order: 1;
}

.news-board__item-title:hover {
  text-decoration: underline;
  color: var(--ink);
}

.news-board__item-title .news-board__search-highlight {
  background: rgba(255, 250, 120, 0.92);
  color: inherit;
  font-weight: inherit;
  padding: 0 0.06em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.news-board__item-title .news-board__item-source {
  margin-right: 0.35em;
  font-weight: 500;
  color: #5c5c5c;
}

.news-board__item-attach {
  flex: 0 0 auto;
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 1.25rem;
  color: #4a4a4a;
  font-size: 0.88rem;
}

.news-board__item-attach--empty {
  visibility: hidden;
}

.news-board__item-date {
  flex:1 1 0%;
  order: 3;
  font-size: 0.82rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.02em;
}

.news-board__item-no,
.news-board__item-hit {
  flex: 0 0 auto;
  order: 4;
  font-size: 0.76rem;
  font-weight: 500;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* 모바일·태블릿: 목록 순서 아이콘 · 조회(눈) 아이콘 */
@media (max-width: 1023px) {
    .news-board__item-hit {
    display: inline-flex;
    align-items: center;
    color: #666;
  }

  .news-board__item-no {
    display: none;
  }

  .news-board__item-hit::before {
    content: "";
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
    background-color: currentColor;
    opacity: 0.88;
    -webkit-mask-image: var(--news-board-icon-no);
    mask-image: var(--news-board-icon-no);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }

  .news-board__item-hit::before {
    -webkit-mask-image: var(--news-board-icon-hit);
    mask-image: var(--news-board-icon-hit);
  }

  .news-board__item-hit {
    margin-left: auto;
  }
  
  .news-board__item-attach { display: none;}
}

@media (min-width: 1024px) {
  .news-board__list-head {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem 6.75rem 4.25rem;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.55rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  }

  .news-board__list-head-title {
    text-align: center;
  }

  .news-board__item {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem 6.75rem 4.25rem;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.65rem 0;
  }

  .news-board__item-title {
    flex: none;
    order: unset;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
  }

  .news-board__item-date {
    flex: none;
    order: unset;
    text-align: center;
    font-size: 0.86rem;
  }

  .news-board__item-attach {
    order: unset;
    justify-content: center;
    justify-self: center;
    font-size: 0.92rem;
  }

  .news-board__item-attach--empty {
    visibility: hidden;
  }

  .news-board__item-no,
  .news-board__item-hit {
    display: block;
    order: unset;
    margin-left: 0;
    text-align: center;
    justify-self: center;
    font-size: 0.86rem;
    color: #444;
  }

  .news-board__item-no::before,
  .news-board__item-hit::before {
    content: none;
  }

  .news-board__item--empty {
    grid-column: 1 / -1;
    display: block;
  } 

}

.news-board__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.news-board__pager-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-board__pager-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: inherit;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgb(103 104 105 / 35%);
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.news-board__pager-btn:hover:not(.news-board__pager-btn--disabled) {
  background: rgba(26, 77, 140, 0.06);
}

.news-board__pager-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.news-board__pager-btn--next:not(.news-board__pager-btn--disabled) {
  color: #fff;
  background: #626262;
  border-color: #626262;
}

.news-board__pager-btn--next:not(.news-board__pager-btn--disabled):hover {
  background: #000000;
  border-color: #000000;
  filter: none;
}

.news-board__pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1;
  color: #333;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.news-board__pager-num:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.news-board__pager-num.is-current {
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.news-board__pager-ellipsis {
  padding: 0 0.2rem;
  color: #888;
}

@media (max-width: 640px) {
  .news-board__search-row {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .news-board__select {
    flex: 0 0 auto;
    min-width: 5.5rem;
    width: auto;
  }

  .news-board__input {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
  }

  .news-board__search-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0 1rem;
  }

  .news-board__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
  }

  .news-board__toolbar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .news-board__write-link {
    width: 100%;
    max-width: none;
  }

  .news-board__calendar-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .news-board__rss-link {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .news-board__per-page {
    width: 100%;
    justify-content: space-between;
  }

  .news-board__per-page .news-board__select--sm {
    flex: 1;
    max-width: 12rem;
  }

  .news-board__item {
    padding: 0.5rem 0;
    gap: 0.1rem;
    align-items: center;
  }


  .news-board__pager {
    flex-direction: column;
    align-items: stretch;
  }

  .news-board__pager-list {
    order: 0;
    width: 100%;
    justify-content: center;
  }

  .news-board__pager-btn {
    text-align: center;
    justify-content: center;
  }
}

.news-view__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-view__head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}

.news-view__head-top .news-view__title {
  flex: 1;
  min-width: 0;
  margin: 0.35rem 0 0;
}

.news-view__toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.25rem;
}

.news-view__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: var(--ink-soft, #4a4a4a);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.news-view__icon-btn:hover {
  color: var(--ink, #151515);
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.18);
}

.news-view__icon-btn:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

.news-view__icon-btn--kakao {
  color: #3c1e1e;
  background: #fee500;
  border: none;
}

.news-view__icon-btn--kakao:hover {
  color: #ffffff;
  background: #fee500;
}

.news-view__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink, #111);
}

.news-view__head .news-view__meta {
  margin-top: 1.75rem;
}

.news-view__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0;
  font-size: 0.88rem;
}

.news-view__meta > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

/* .news-view__meta > div 의 display:grid 가 [hidden] 기본 스타일보다 나중에 적용되어 출처·원문 행이 남아 보이는 경우 방지 */
.news-view__meta > div[hidden] {
  display: none !important;
}

.news-view__meta dt {
  margin: 0;
  font-weight: 600;
  color: #444;
}

.news-view__meta dd {
  margin: 0;
  color: #222;
}

.news-view__original-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--ink, #2a2a2a);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.25;
  border: 1px solid transparent;
  transition: background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.news-view__original-btn:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

.news-view__original-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.news-view__files {
  margin-bottom: 1.15rem;
}

.news-view__files-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0px;
  background: linear-gradient(165deg, #fafafa 0%, #fff 48%);
}

.news-view__files-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.news-view__files-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #151515);
}

.news-view__files-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink, #222);
}

.news-view__files-heading-icon svg {
  display: block;
}

.news-view__attach-all-wrap {
  flex-shrink: 0;
}

.news-view__btn-attach-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink, #111);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.news-view__btn-attach-all:hover {
  background: #f4f4f4;
  border-color: rgba(0, 0, 0, 0.22);
}

.news-view__btn-attach-all svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.news-view__file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.news-view__file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-view__file-row:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.news-view__file-row[data-ext="pdf"] .news-view__file-icon-wrap {
  color: #c02626;
}

.news-view__file-row[data-ext="hwp"] .news-view__file-icon-wrap,
.news-view__file-row[data-ext="hwpx"] .news-view__file-icon-wrap {
  color: #2563eb;
}

.news-view__file-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.news-view__file-icon-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: 0.05rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  color: #555;
}

.news-view__file-name {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #222;
  word-break: break-all;
}

.news-view__file-size {
  color: #666;
  font-weight: 400;
}

.news-view__file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.news-view__file-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f8f8f8;
  color: var(--ink, #222);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.news-view__file-action i {
  font-size: 0.82em;
  opacity: 0.9;
}

.news-view__file-action:hover {
  background: #efefef;
  border-color: rgba(0, 0, 0, 0.2);
}

.news-view__file-action--preview {
  border-color: rgba(244, 66, 101, 0.38);
  background: rgba(244, 66, 101, 0.09);
  color: #c91f4a;
}

.news-view__file-action--preview:hover {
  background: rgba(244, 66, 101, 0.14);
  border-color: rgba(244, 66, 101, 0.5);
}

.news-view__file-action--danger {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.07);
  color: #b91c1c;
  cursor: pointer;
  font-family: inherit;
}

.news-view__file-action--danger:hover {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.45);
}

.news-view__files-card--edit {
  margin-top: 0;
}

.news-edit-attach__upload-row {
  margin-bottom: 1rem;
}

.news-edit-attach__file-input {
  position: relative;
  display: inline-block;
}

.news-edit-attach__native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.news-edit-attach__file-input:focus-within .news-edit-attach__choose-btn {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 2px;
}

.news-edit-attach__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #666;
}

.news-view__file-list--edit:not(:has(> li)) {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.news-view__file-row--edit .news-view__file-actions {
  flex-shrink: 0;
}

.news-edit__fieldset--attach {
  margin: 0 0 1.35rem;
  padding: 0;
  border: none;
  min-width: 0;
}

.news-edit__fieldset--attach .news-view__files-card {
  margin-bottom: 0;
}

.news-view__file-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.news-view__file-link:hover {
  text-decoration: underline;
}

.news-view__file-sep {
  color: #ccc;
}

.news-view__content-block {
  margin: 1.35rem 0;
  background: #fff;
}

.news-view__content-heading {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-view__content-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
}

.news-view__content-body p {
  margin: 0 0 0.75rem;
}

.news-view__content-body img {max-width: 100%;}

.news-view__content-body p:last-child {
  margin-bottom: 0;
}

/* CKEditor 본문(인용·제목·목록) — 문화정보·보고서(report) 등 news-view 본문 */
.news-view__content-body blockquote {
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 0.95rem;
  border-left: 4px solid rgba(0, 0, 0, 0.15);
  color: #444;
}
.news-view__content-body blockquote h1,
.news-view__content-body blockquote h2,
.news-view__content-body blockquote h3,
.news-view__content-body blockquote h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05em;
  font-weight: 600;
  font-style: italic;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  line-height: 1.45;
}
.news-view__content-body blockquote h1:last-child,
.news-view__content-body blockquote h2:last-child,
.news-view__content-body blockquote h3:last-child,
.news-view__content-body blockquote h4:last-child {
  margin-bottom: 0;
}
.news-view__content-body h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111;
}
.news-view__content-body h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
}
.news-view__content-body ul,
.news-view__content-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
}
.news-view__content-body blockquote p {
  margin: 0 0 0.5rem;
}

/* 문화정보 상세: news.html 과 동일 article-share (detail.css 패턴) */
.news-view-page .article-share.news-view__article-tools {
  margin-top: 0;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 1.1rem;
  padding: 0px;
  border-bottom: 0px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.news-view-page .article-share__btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-view-page .article-share__btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.news-view-page .article-share__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.news-view-page .article-share__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.7;
}

.news-view-page .article-share__icon.article-share__icon--svg {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.15rem;
  line-height: 1;
  overflow: visible;
  opacity: 0.75;
}

.news-view-page .article-share__btn[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.08);
}

.news-view-page .article-share__btn[aria-pressed="true"] .article-share__icon {
  opacity: 1;
}

@media (max-width: 760px) {
  .news-view-page .article-share.news-view__article-tools {
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    gap: clamp(0.15rem, 2.2vw, 1.1rem);
    box-sizing: border-box;
  }

  .news-view-page .article-share__btn {
    width: clamp(1.55rem, 6.5vw, 2.35rem);
    height: clamp(1.55rem, 6.5vw, 2.35rem);
    flex: 0 1 auto;
    min-width: 0;
  }

  .news-view-page .article-share__icon {
    width: clamp(0.85rem, 3.6vw, 1.2rem);
    height: clamp(0.85rem, 3.6vw, 1.2rem);
  }

  .news-view-page .article-share__icon.article-share__icon--svg {
    width: clamp(0.85rem, 3.6vw, 1.15rem);
    height: clamp(0.85rem, 3.6vw, 1.15rem);
    font-size: clamp(0.85rem, 3.6vw, 1.15rem);
  }
}

/* 본문 직후 — PDF 첨부 시 “PDF 바로보기” (문화 정보 상세 등) */
.news-view__pdf-bar {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 40, 40, 0.22);
  background: rgba(180, 40, 40, 0.05);
}

.news-view__pdf-bar-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b42828;
}

.news-view__pdf-bar-title .fa-file-pdf {
  font-size: 1.05rem;
  opacity: 0.9;
}

.news-view__pdf-bar-desc {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #555;
}

.news-view__pdf-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.news-view__pdf-bar-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  max-width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #222;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.news-view__pdf-bar-btn:hover {
  background: #fff8f8;
  border-color: rgba(180, 40, 40, 0.35);
}

.news-view__pdf-bar-btn .fa-file-pdf {
  color: #c62828;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.news-view__pdf-bar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b42828;
}

.news-view__pdf-bar-filename {
  font-size: 0.78rem;
  font-weight: 400;
  color: #555;
  word-break: break-all;
}

.news-view__body {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
}

.news-view__body p {
  margin: 0 0 0.75rem;
}

/* 뉴스/문화정보 상세 — 프로토타입 news-view__pdf 블록 */
section.news-view__pdf {
  margin: 1.25rem 0 1.5rem;
}

/* 상세 본문열·PDF: 그리드/플렉스에서 min-width 0 + 100% — 태블릿·모바일 가로 스크롤 완화 */
body.communication-page .rightArea,
body.communication-page .detail-inner.webzine-cms-body {
  min-width: 0;
  box-sizing: border-box;
}

#pdf_quick_section.news-view__pdf {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

#pdf_quick_section .news-view__pdf-frame-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#pdf_quick_section .news-view__pdf-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
}

.news-view__pdf-heading {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.news-view__pdf-note {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #666;
}

.news-view__pdf-empty {
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #555;
  background: #f5f5f5;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  text-align: center;
}

.news-view__pdf-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: min(70vh, 520px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.news-view__pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 문화정보 상세 본문 PDF — 영역 확대, 바깥은 hidden만(스크롤은 iframe·PDF 뷰어 1곳) */
.news-view__pdf-frame-wrap.news-view__pdf-frame-wrap--cultural-detail {
  display: flex;
  flex-direction: column;
  height: min(96vh, 1200px);
  min-height: 720px;
  overflow: hidden;
}

.news-view__pdf-embed-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: 0.4rem 0.55rem;
  background: #eee;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-view__pdf-embed-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.news-view__pdf-embed-print-btn:hover {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.24);
}

/* PDF.js 인페이지 뷰(모바일·태블릿) — iframe과 같은 래퍼 안 스크롤 영역 */
.news-view__pdf-inpage-panel {
  flex: 1 1 0;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.news-view__pdf-inpage-panel[hidden] {
  display: none !important;
}

.news-view__pdf-inpage-scroll {
  flex: 1 1 0;
  min-height: min(50vh, 900px);
  max-height: min(85vh, 1200px);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #e8eef5;
  border-radius: 0 0 8px 8px;
  padding: 10px 8px;
}

.news-view__pdf-inpage-canvas {
  max-width: 100%;
  height: auto !important;
  box-sizing: border-box;
}

.news-view__pdf-inpage-trunc-note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #333;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.news-view__pdf-inpage-trunc-note__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.news-view__pdf-inpage-trunc-note__body {
  margin: 0;
  color: #555;
}

/* iframe은 PDF로 고유 높이를 못 받음 → flex에서 height:auto 는 0에 가깝게 붕괴할 수 있음 */
#pdf_quick_section .news-view__pdf-frame-wrap--cultural-detail .news-view__pdf-frame {
  flex: 1 1 0;
  align-self: stretch;
  min-height: 0;
  width: 100%;
}

/* 문화정보 상세: 본문 아래 인라인 PDF 뷰어 (다크 스테이지) */
.news-view__pdf-embed-section {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.news-view__pdf-embed-section .news-view__pdf-heading {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.news-view__pdf-embed-section .news-view__pdf-note {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.news-view__pdf-embed-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.news-view__pdf-embed-tab {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  background: #fafafa;
  max-width: 100%;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.news-view__pdf-embed-tab:hover {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.22);
}

.news-view__pdf-embed-tab.is-active {
  background: #fff;
  border-color: #b42828;
  box-shadow: 0 0 0 1px rgba(180, 40, 40, 0.15);
  font-weight: 600;
}

.news-view__pdf-frame-wrap--embed {
  height: min(72vh, 640px);
  background: #2d2d2d;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.news-view__pdf-frame-wrap--embed .news-view__pdf-frame {
  display: block;
  min-height: 100%;
  background: #2d2d2d;
}

.news-view__files--bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 문화정보 상세: 첨부 영역 하단 — 공공누리 안내 */
.news-view__public-nuri-notice {
  margin-top: 1.25rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafa;
}

.news-view__public-nuri-notice-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-view__public-nuri-notice-img {
  flex: 0 0 auto;
  width: 88px;
  height: auto;
  max-height: 7.5rem;
  object-fit: contain;
}

.news-view__public-nuri-notice-text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #444;
}

.news-view__neighbor {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #333;
}

.news-view__neighbor-prev,
.news-view__neighbor-next {
  margin: 0.4rem 0;
}

.news-view__neighbor a {
  color: var(--ink, #111);
  font-weight: 600;
  text-decoration: underline;
}

.news-view__neighbor a:hover {
  text-decoration: none;
}

@media (max-width: 640px) {
  .news-view__head-top {
    flex-direction: column;
    align-items: stretch;
  }

  .news-view__toolbar {
    justify-content: flex-end;
  }

  .news-view__meta {
    grid-template-columns: 1fr;
  }

  .news-view__meta > div {
    grid-template-columns: 4.75rem 1fr;
  }

  .news-view__files-card {
    padding: 0.9rem 0.8rem 1rem;
  }

  .news-view__files-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-view__file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .news-view__file-actions {
    width: 100%;
    justify-content: stretch;
  }

  .news-view__file-action {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .news-view__file-main, .news-view__public-nuri-notice-text { flex: 1 1 1rem;}

  .news-view__public-nuri-notice-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-view__public-nuri-notice-img {
    width: 72px;
  }

}

/* 문화소식 수정 폼 */
.news-edit-page .news-edit__head {
  margin-bottom: 1.25rem;
}

.news-edit__head-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
}

.news-edit__title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink, #111);
}

.news-edit__lead {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #666;
}

.news-edit-form {
  margin: 0;
  padding: 0;
}

.news-edit__fieldset {
  margin: 0 0 1.35rem;
  padding: 0;
  border: none;
  min-width: 0;
}

.news-edit__legend {
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-edit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.news-edit__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.news-edit__field--full {
  grid-column: 1 / -1;
}

.news-edit__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

.news-edit__required {
  margin-left: 0.2em;
  font-weight: 700;
  color: #c62828;
}

/* 공지글 북마크: 미선택 흰색, 선택 시 검정 */
.news-edit-form .notice_box {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.news-edit-form .notice_box .fa-bookmark {
  font-size: 1.1rem;
  color: #ababab;
}

.news-edit-form .notice_box input[type="checkbox"]:checked + .fa-bookmark {
  color: #000;
}

.news-edit__input,
.news-edit__textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  box-sizing: border-box;
}

.news-edit__textarea {
  resize: vertical;
  min-height: 6rem;
}

.news-edit__textarea--sm {
  min-height: 4.5rem;
}

.news-edit__input:focus,
.news-edit__textarea:focus {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 1px;
  border-color: rgba(244, 66, 101, 0.35);
}

.news-edit__file {
  font-size: 0.85rem;
}

.news-edit__hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #666;
}

.news-edit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  padding: 1.25rem 0px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  justify-content: center;
}

.news-edit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.55rem 1.2rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.news-edit__btn--primary {
  color: #fff;
  background: #333;
  border-color: #333;
}

.news-edit__btn--primary:hover {
  filter: brightness(1.08) !important;
  color: #fff !important;
}

.news-edit__btn--ghost {
  color: #333;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
}

.news-edit__btn--ghost:hover {
  background: #f5f5f5;
}

.news-edit__btn--danger {
  color: #b42318;
  background: #fff;
  border-color: #b42318;
}

.news-edit__btn--danger:hover {
  background: #b42318;
  color: #fff;
}

.news-edit-page .cke {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .news-edit__grid {
    grid-template-columns: 1fr;
  }

  .news-edit__head-top {
    flex-direction: column;
    align-items: stretch;
  }

  .news-edit__head-top .news-view__toolbar {
    justify-content: flex-end;
  }
}

/* 문화정보 글쓰기: 출처·원문 URL / 담당부서·담당자 2열 그리드 */
.news-edit__dept-chrg-pair,
.news-edit__source-ref-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  width: 100%;
}

@media (max-width: 360px) {
  .news-edit__dept-chrg-pair,
  .news-edit__source-ref-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- 이미지 갤러리 (webzine gallery.html) ---------- */
.gallery-board-page .news-gallery {
  margin-bottom: 1.5rem;
}

.news-gallery__intro {
  margin-bottom: 1.35rem;
}

.news-gallery__intro--with-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
}

.news-gallery__intro-text {
  flex: 1 1 12rem;
  min-width: 0;
}

.news-gallery__toolbar {
  flex-shrink: 0;
}

/* 갤러리 작성 — 대표 이미지(썸네일) 패널 */
.news-gallery-write__thmb-panel {
  margin-top: 0.15rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 0px;
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.news-gallery-write__thmb-heading {
  margin: 0 0 0.95rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c5c5c;
  font-weight: 500;
}

.news-gallery-write__thmb-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.05rem 1.15rem;
  min-height: 5.5rem;
  border-radius: 12px;
  border: 2px dashed rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.news-gallery-write__thmb-drop:focus-within {
  border-color: rgba(21, 96, 160, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(21, 96, 160, 0.12);
}

.gallery-write-page .news-gallery-write__thmb-drop:hover {
  border-color: rgba(21, 21, 21, 0.22);
}

.news-gallery-write__thmb-drop-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 12px;
  background: rgba(21, 96, 160, 0.08);
  color: rgba(21, 96, 160, 0.85);
}

.news-gallery-write__thmb-drop-body {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-gallery-write__thmb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.news-gallery-write__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-gallery-write__thmb-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #151515);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.news-gallery-write__thmb-pick:hover {
  background: #f8f9fb;
  border-color: rgba(0, 0, 0, 0.2);
}

.news-gallery-write__thmb-pick:active {
  transform: translateY(1px);
}

.news-gallery-write__thmb-pick:focus {
  outline: none;
}

.news-gallery-write__thmb-drop:focus-within .news-gallery-write__thmb-pick {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(21, 96, 160, 0.35);
}

.news-gallery-write__thmb-status {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6a6a6a;
  word-break: break-all;
}

.news-gallery-write__hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #777;
  height: 40px;
}

.news-gallery-write__preview {
  margin-top: 1rem;
  max-width: 22rem;
}

.news-gallery-write__preview[hidden] {
  display: none !important;
}

.news-gallery-write__preview-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: repeating-conic-gradient(#f0f0f0 0% 25%, #fafafa 0% 50%) 50% / 12px 12px;
  box-shadow: 0 10px 28px rgba(21, 21, 21, 0.08);
  aspect-ratio: 4 / 3;
}

.news-gallery-write__preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
  background: #fff;
}

.news-gallery-write__preview-caption {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #888;
}

.news-gallery__lead {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #111);
}

.news-gallery__sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #666;
}

.news-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-gallery__item {
  margin: 0;
  min-width: 0;
}

.news-gallery__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.news-gallery__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.14);
}

.news-gallery__card:focus-visible {
  outline: 2px solid var(--accent, #f44265);
  outline-offset: 3px;
}

.news-gallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #eee 0%, #f7f7f7 100%);
}

.news-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-gallery__card:hover .news-gallery__media img {
  transform: scale(1.06);
}

.news-gallery__card:hover .news-gallery__media:has(.news-gallery__img--placeholder) img {
  transform: none;
}

/* 썸네일 없음: no_data 대신 이미지·사진 플레이스홀더(액자+해+산) 아이콘 */
.news-gallery__media:has(.news-gallery__img--placeholder) {
  background: linear-gradient(160deg, #e8e8e8 0%, #f2f2f2 100%);
}

.news-gallery__media:has(.news-gallery__img--placeholder)::after {
  content: "";
  position: absolute;
  inset: 0;
  width: clamp(2.35rem, 20%, 3.15rem);
  height: clamp(2.35rem, 20%, 3.15rem);
  margin: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.25' y='5.25' width='17.5' height='13.5' rx='2'/%3E%3Ccircle cx='8.75' cy='10.25' r='1.35'/%3E%3Cpath d='M3 18.25h18l-5.2-5.2-2.9 2.9L9 11.15 3 18.25z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
}

.news-gallery__img--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.news-gallery__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1 1 auto;
}

.news-gallery__title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #151515);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.news-gallery__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;  
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #666;
}

.news-gallery__meta time {
  font-variant-numeric: tabular-nums;
}

.news-gallery__meta-sep {
  color: #bbb;
  font-weight: 300;
}

.news-gallery__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-gallery__desc :where(p) {
  margin: 0;
  display: inline;
}

.news-gallery__empty {
  margin: 0;
  padding: 3rem 1.25rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

/* ---------- 갤러리 상세 (webzine gallery-detail.html) ---------- */
.gallery-view-page .news-gallery-detail__figure {
  margin: 0 0 1.5rem;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-view-page .news-gallery-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 56rem);
  object-fit: contain;
  margin: 0 auto;
  vertical-align: middle;
}

.news-gallery-detail__desc.news-view__content-block {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .news-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.85rem;
  }

  .news-gallery__body {
    padding: 0.85rem 0.9rem 1rem;
  }
}

/* 문화정보 상세 등: 본문 인쇄 (detail.css의 is-print-article-only와 함께 사용) */
@media print {
  body.news-view-page.is-print-article-only .article-channel-bar,
  body.news-view-page.is-print-article-only .news-view__pdf,
  body.news-view-page.is-print-article-only .news-view__files,
  body.news-view-page.is-print-article-only .news-view__neighbor,
  body.news-view-page.is-print-article-only #detail_admin_actions {
    display: none !important;
  }

  body.news-view-page.is-print-article-only .news-view__head {
    border: none !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  body.news-view-page.is-print-article-only .news-view__title {
    font-size: 1.35rem !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  body.news-view-page.is-print-article-only .news-view__content-block {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.news-view-page.is-print-article-only .news-view__content-body {
    font-size: 11pt !important;
    line-height: 1.55 !important;
    color: #000 !important;
  }

  body.news-view-page.is-print-article-only .news-view__content-body img {
    max-width: 100% !important;
    height: auto !important;
  }
}
