/* ==========================================================================
   WZ-MUSEUM-001 그누보드 보정 — 원본 museon-kr.css 뒤에 붙습니다. 원본 규칙은 고치지 않고, 원본에 없는 것만 더합니다.
   1) 글 본문(.mus-post): 그누보드 HTML 필터가 지우는 figure는 mus_post_html()이 되살림 — 에디터로 새로 쓴 글의 표시 없는 사진만 둥글게
   2) 그누보드가 더하는 것(쪽 번호·캡차·개인정보 동의·관리자 버튼·고객센터 화면 틀)을 원본 모양으로
   ========================================================================== */

/* 1) 글 본문 */
.mus-post img:not([class]) { border-radius: 20px; height: auto; }
.mus-post-img { margin: 30px 0 0; }
.mus-post-img img { width: 100%; border-radius: 20px; }

/* 2-0) 키트 공통 기본값(wz-base.css의 폼 요소 font: inherit — 그누보드 화면용)이 원본 화면(머리·바닥·원본 본문)의 폼 요소
   (접이식 질문 단추·입력칸)를 바꾸지 않게: 원본이 정하지 않은 글꼴·크기·줄 높이는 원본처럼 브라우저 기본값(우선순위 0 — 원본 CSS가 정한 값은 그대로) */
:where(.wz-original) :where(.main-header, .main-footer, main > :not(.mus-g5)) :where(button, input, select, textarea) { font: revert; }

/* 2-1) 원본에 없는 그누보드 화면(고객센터 게시판·회원·1:1 문의·글쓰기)이 들어가는 원본 기본 구역(원본 목록 화면과 같은 위아래 여백) */
.mus-g5 { padding: 120px 0; min-height: 420px; }
.mus-g5 .container > :first-child { margin-top: 0; }
@media (max-width: 991px) { .mus-g5 { padding: 80px 0; } }
@media (max-width: 767px) { .mus-g5 { padding: 60px 0; } }
/* 원본 .form-control은 여백 없이 .contact-form 안에서만 칸 모양(17px 20px) — 키트 스킨 칸(고객센터·회원)도 같은 값 */
:is(.mus-g5, .wz-fit) .form-control { padding: 15px 20px; line-height: 1.5em; }
:is(.mus-g5, .wz-fit) textarea.form-control { min-height: 160px; }
.mus-select { appearance: auto; }

/* 2-2) 보조 단추(키트 'btn'): 원본 알약 단추(btn-default)를 검정 바탕으로 — 화살표 없는 btn-no-icon 모양 */
.btn-default.mus-btn-dark { background: var(--primary-color); padding: 17px 26px; }
.btn-default.mus-btn-dark::before { content: none; }
.btn-default.mus-btn-dark:hover { color: var(--white-color); }
/* 작은 표시(키트 'tag' — 분류·답변 상태·공지): 원본 태그 알약(.post-tags .tag-links a)의 작은 판 */
.mus-tag { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--accent-color); color: var(--white-color); font-size: 13px; font-weight: 600; line-height: 1.2; }

/* 2-3) 관리자에게만 보이는 단추·빈 목록 안내·쪽 번호 위치 */
.mus-admin { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; }
.mus-empty { padding: 40px 0; margin: 0; text-align: center; color: var(--text-color); }
.page-events .page-pagination { margin-top: 30px; }

/* 2-4) 문의 폼(오시는 길·문의, 큐레이터 상세 학술 자문 문의): 그누보드 캡차·개인정보 동의를 원본 입력칸 모양으로.
   자동등록방지는 숫자 그림·듣기·새로고침 한 줄, 입력칸은 다음 줄 전체 폭 */
.mus-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.mus-captcha #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mus-captcha #captcha #captcha_img { order: 1; display: inline-block; height: 50px; width: auto; border-radius: 10px; border: 1px solid var(--divider-color); }
.mus-captcha #captcha #captcha_mp3,
.mus-captcha #captcha #captcha_reload { width: 44px; height: 44px; border-radius: 50%; }
.mus-captcha #captcha #captcha_mp3 { order: 2; }
.mus-captcha #captcha #captcha_reload { order: 3; }
.mus-captcha #captcha #captcha_key { order: 4; flex: 1 1 100%; width: auto; height: auto; padding: 17px 20px; border-radius: 10px; border: 1px solid var(--divider-color); background: var(--bg-color); font-family: var(--default-font); font-size: 16px; color: var(--primary-color); }
.mus-captcha #captcha #captcha_key:focus { outline: none; border-color: var(--accent-color); }
.mus-captcha #captcha #captcha_info { order: 5; flex-basis: 100%; font-size: 13px; color: var(--text-color); letter-spacing: 0; }
/* 원본 img { height: auto }가 그누보드 캡차 그림(1×1 크기 속성)을 지우지 않게(키트 wz-fit 글쓰기·회원가입 캡차까지 — ORIGINAL.md 18절) */
#captcha #captcha_img { width: auto; height: 50px; }
.mus-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.6; }
.mus-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-color); }
.mus-consent a { color: var(--accent-color); text-decoration: underline; }
.mus-inquiry-info { padding: 22px 26px; margin-bottom: 28px; }
.mus-inquiry-info p { margin: 0; }
/* 둘째 연락처(단체 전화·학예실 이메일 — 대표 연락처와 달라 링크 없는 글자): 원본 링크와 같은 색 */
.contact-item-content p .mus-plain { color: inherit; }

/* 2-5) 슬라이더 시안(메인 6)의 둘째 슬라이드 제목: 원본은 h1 두 개 → 첫 장만 h1, 둘째는 같은 모양 h2(원본 .hero-content .section-title h1 값) */
.hero-content .section-title h2.mus-h1 { font-size: 48px; }
@media only screen and (max-width: 991px) { .hero-content .section-title h2.mus-h1 { font-size: 34px; } }
@media only screen and (max-width: 767px) { .hero-content .section-title h2.mus-h1 { font-size: 28px; } }

/* 2-6) 데스크톱 메뉴: 고정 메뉴 "고객센터"가 하나 늘어 좁은 데스크톱 폭에서 한 줄에 안 들어가면 그 폭에서만 메뉴 여백·글자를 조금 줄임(ORIGINAL.md 2-6) */
@media (min-width: 992px) and (max-width: 1299px) {
  .main-menu ul li a { padding-left: 8px !important; padding-right: 8px !important; font-size: 14px; }
  .header-btn .btn-default { padding: 15px 40px 15px 20px; font-size: 15px; }
}
/* 휴대폰 메뉴: 메뉴가 원본보다 많아(고객센터·회원) 화면보다 길어질 수 있으므로 메뉴 안에서 스크롤 */
@media (max-width: 991px) {
  .responsive-menu.is-open { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
}

/* 2-7) 고객센터 사진 카드(키트 wz-fit 갤러리·웹진 = 원본 미술관 소식 카드 post-item): 사진 위 분류 표시 자리, 카드 글 크기 */
.wz-fit .post-featured-image { position: relative; }
.wz-fit .post-item-content h2 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.wz-fit .post-item-content .wz-fit-post__meta { font-size: 14px; }
.wz-fit-subnav { margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }

/* 2-8) 사진 없는 글 썸네일(wz_noimg)·약관 예시 문안 안내: 원본 크림슨에 맞춤 */
.wz-noimg, .wz-policy-note { --wz-noimg-accent: var(--accent-color); --wz-policy-accent: var(--accent-color); }

/* 2-9) 디자인 데모 상단 바가 있을 때 원본 머리(화면 위에 겹치는 absolute)를 그 아래로 */
body:has(> .wz-demo-bar) header.main-header { top: var(--wz-demo-offset, 0px); }

/* 2-10) 고객센터 갤러리 카드: 원본 미술관 소식·소장품 목록처럼 3열(991px 이하 2열, 767px 이하 1열). 웹진은 키트 그대로 */
.mus-g5 .wz-fit-cards--gallery.wz-fit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 991px) { .mus-g5 .wz-fit-cards--gallery.wz-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mus-g5 .wz-fit-cards--gallery.wz-fit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   3) 반응형 보정(2026-10-28 반응형 검수 — handoff/reports/WZ-MUSEUM-001/responsive/review.md·fixes.md)
   원본 템플릿 자체 결함(원본 HTML도 같음)만 고칩니다. 원본 museon-kr.css는 그대로, 1440·1024 화면은 바뀌지 않게 좁은 폭 구간 안에서만.
   ========================================================================== */
/* 3-1) 태블릿 세로(768~991px): 3장짜리 줄(메인 특별 기획전 캡슐·미술관 저널 카드)이 2칸이 되어 한 장이 홀로 남음 → 이 구간은 3칸 그대로 */
@media (min-width: 768px) and (max-width: 991px) {
  :is(.our-exhibitions, .our-blog) .row > .col-lg-4.col-md-6 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .our-blog .row > .col-lg-4.col-md-6 .post-item-content h2 { font-size: 17px; }
}
/* 3-2) 소장품·프로그램 상세(991px 이하): 한 칸이 되면 옆 안내(분야별 안내·상세 정보·문의 상자)가 본문 앞에 와서 본문 사진·글이 약 900px 밀림 → 본문 먼저, 옆 안내는 뒤로 */
@media (max-width: 991px) {
  :is(.page-collection-single, .page-event-single) > .container > .row > .col-lg-4 { order: 2; margin-top: 50px; }
  :is(.page-collection-single, .page-event-single) > .container > .row > .col-lg-8 { order: 1; }
}
/* 3-3) 문화 프로그램 가로 카드(992~1199px — 1024 태블릿 가로): 오른쪽 장소 칸(25%)에서 장소 글자와 "상세 보기" 단추가 한 줄로 나란해 장소 글자 칸이 38px로 눌려 한 글자씩 줄바꿈
   → 이 구간만 장소 위·단추 아래로 쌓음(1440·991 이하는 원본 그대로) */
@media (min-width: 992px) and (max-width: 1199px) {
  .event-footer { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .event-footer .event-location { width: 100%; }
}

/* Webfont Icons for WZ-MUSEUM-001 */
.wz-mus-asterisk {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: currentColor;
  line-height: 1;
}
.wz-mus-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 24px;
  color: #C3242D;
  line-height: 1;
}
.wz-mus-icon.wz-mus-22 {
  width: 22px;
  height: 22px;
  font-size: 18px;
}
.wz-mus-icon.wz-mus-white,
.icon-box .wz-mus-icon {
  color: currentColor;
}


/* ==========================================================================
   4) Museon 원본 Awaiken 인터랙티브 모션·폴라로이드 콜라주·라이트박스 네비게이션 복원
   ========================================================================== */

/* 4-1) .text-anime-style-3 단어 분할 및 .image-anime 글래스 쉬머 호버 */
.text-anime-style-3 {
  perspective: 400px;
}
.text-anime-style-3 .mus-word {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.image-anime {
  position: relative;
  overflow: hidden;
}
.image-anime img {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.image-anime:hover img {
  transform: scale(1.06);
}
.image-anime::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.24);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
  pointer-events: none;
  transition: height 0.6s ease, background-color 0.6s ease;
}
.image-anime:hover::after {
  height: 250%;
  background-color: transparent;
}

/* 4-2) 사유의 미술관(.who-we-are) 폴라로이드 프레임 각도 및 호버 입체감 */
@media (min-width: 992px) {
  .who-we-are-image.img-1 { transform: rotate(-6deg); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
  .who-we-are-image.img-2 { transform: rotate(5deg); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
  .who-we-are-image.img-3 { transform: rotate(4deg); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
  .who-we-are-image.img-4 { transform: rotate(-4deg); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
  .who-we-are-image.img-5 { transform: rotate(6deg); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
  .who-we-are-image:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04) !important;
    z-index: 10;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  }
}

/* 4-3) 영상 재생 버튼 리플 펄스 & 갤러리 라이트박스 이전/다음 컨트롤 */
@keyframes musPlayPulse {
  0% { transform: scale(1); opacity: 0.72; }
  100% { transform: scale(1.65); opacity: 0; }
}
.video-play-button a {
  position: relative;
}
.video-play-button a::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  animation: musPlayPulse 2.3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}
.wz-modal-content {
  position: relative;
}
.mus-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 15, 15, 0.85);
  color: #ffffff;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.wz-modal-backdrop.is-gallery-mode .mus-lb-nav {
  display: flex;
}
.mus-lb-nav:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.06);
}
.mus-lb-prev { left: -64px; }
.mus-lb-next { right: -64px; }
@media (max-width: 767px) {
  .mus-lb-prev { left: 10px; }
  .mus-lb-next { right: 10px; }
}
.mus-lb-counter {
  display: none;
  margin-top: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.wz-modal-backdrop.is-gallery-mode .mus-lb-counter {
  display: block;
}

/* ==========================================================================
   5) 아카이브 게시판(기획전·포토·비디오·후기) 및 실시간 구글지도 스타일(0 hex)
   ========================================================================== */
.mus-exhibitions-page {
  background: var(--bg-color);
  padding: 100px 0;
}
.mus-exhibitions-page .exhibition-item {
  background: var(--white-color);
  border: 1px solid var(--divider-color);
}
.mus-exhibitions-page .exhibition-header h2,
.mus-exhibitions-page .exhibition-header h2 a {
  color: var(--primary-color);
}
.mus-exhibitions-page .exhibition-header p {
  color: var(--text-color);
}
.mus-exh-title-link {
  color: inherit;
  text-decoration: none;
}
.mus-exh-title-link:hover {
  color: var(--accent-color);
}

.mus-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.mus-cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--divider-color);
  background: var(--white-color);
  color: var(--primary-color);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mus-cat-tab:hover,
.mus-cat-tab.is-on {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white-color);
}

.mus-gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4px 6px;
}
.mus-gallery-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.04em;
}
.mus-gallery-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
}
.mus-admin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.mus-video-card {
  margin-bottom: 36px;
}
.mus-video-card .video-gallery-image {
  margin-bottom: 14px;
}
.mus-video-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.mus-video-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-color);
}
.mus-video-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.mus-video-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mus-video-title a:hover {
  color: var(--accent-color);
}
.mus-video-player video,
.mus-video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 20px;
  background: rgb(0, 0, 0);
}

.mus-author-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--white-color);
  font-weight: 700;
  font-size: 20px;
}
.mus-author-link {
  color: inherit;
  text-decoration: none;
}
.mus-author-link:hover {
  color: var(--accent-color);
}
.mus-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.mus-map-wrap .wz-map-embed {
  border-radius: 24px;
  overflow: hidden;
}
.mus-map-embed .wz-map-dock {
  background: rgba(15, 15, 15, 0.9);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}
.mus-map-embed .wz-map-dock__badge {
  color: var(--accent-color);
}
.mus-map-embed .wz-map-dock__addr,
.mus-map-embed .wz-map-dock__meta {
  color: rgba(255, 255, 255, 0.84);
}


