@charset "UTF-8";

/* 페이지 전환 시 블랙 플래시 방지 — 퍼블리싱 .allmenu-dim이 display:block 기본이라 JS 로딩 전 검정 마스크 노출 */
.allmenu-dim { display: none; }

/* 웹접근성: 키보드 포커스 표시 보강 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #256EF4;
  outline-offset: 2px;
}

/* 사진/필름 그리드 모바일 반응형 — photo-list-hover 4열 → 2열 */
@media (max-width: 768px) {
  .result-group .photo-list.photo-list-hover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

/* 인기검색어 태그 — PC 1줄, 모바일 2줄까지만 표시 (넘치면 숨김) */
.main-contents .section-visual .box-search .tag-list {
  max-height: 30px; /* 1줄 (태그 높이 30px) */
  overflow: hidden;
}
@media (max-width: 768px) {
  .main-contents .section-visual .box-search .tag-list {
    max-height: 68px; /* 2줄 (30px * 2 + gap 8px) */
  }
}

/* 메인 비주얼 검색바 높이 80px → 65px + 정중앙 정렬 */
.main-contents .section-visual .box-search {
  margin-top: -32px; /* 65px / 2 ≈ 32px — 배너/콘텐츠 경계 정중앙 */
}
.main-contents .section-visual .box-search .search-global .form-input {
  height: 65px;
  font-size: 22px;
  padding: 0 55px 0 24px;
  border-radius: 14px;
}
.main-contents .section-visual .box-search .search-global .btn-search {
  width: 65px;
  height: 65px;
}

.black-background{
	display: none;
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background: #666666 ;
	z-index:1001;
	-moz-opacity: 0.8;
	opacity:.80;
	filter: alpha(opacity=60);
}

.loging-content {
	display: none;
	position: absolute;
	padding: 06px;
	width:800px;
	border: 0px solid #E3F2FC;
	z-index:1002;
	overflow: auto;
}

.exhibition-container .btn-txt-fold {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  font-size: 17px;
  font-weight: 500;
  color: #666;
  letter-spacing: -0.96px;
  padding: 7px 10px;
  background-color: #F4F5F6;
  border-radius: 6px;
  transition: 0.2s;
  margin-top: 10px;
}

/* ── 검색 결과 없음 공통 박스 (archive 계열) ── */
.archive-container .no-data {
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100px;
}
.archive-container .no-data .txt {
  color: #767676;
}

/* ── 수집처 정보 하단 표시 (상세 페이지 공통) ── */
/* 목록 버튼(.btn-group-outline) 바로 위에 위치 */
/* 라인 아래, 목록 버튼 위 */
.source-info-area {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px;
  margin-top: 60px;
  padding: 14px 30px 0;
  margin-bottom: 0;
  border-top: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
}
.source-info-area + .btn-group-outline {
  border-top: none;
  margin-top: 0;
}
.source-info-area .source-label {
  flex-shrink: 0;
  color: #1a1a1a;
  font-weight: 500;
}
.source-info-area .source-value a {
  color: #333;
  text-decoration: none;
}
.source-info-area .source-value a:hover {
  text-decoration: underline;
}

/* ── 아코디언 부드러운 전환 (style.css 퍼블 원본 오버라이드) ── */
/* scrollHeight 기반 JS 제어와 연동 — ui_common.js 참고 */
.accordion .accordion-item .accordion-collapse {
  transition: max-height 0.25s ease-out, visibility 0.25s;
}
.accordion .accordion-item.active .accordion-collapse {
  max-height: none;
  /* JS에서 scrollHeight → transitionend → max-height:none 으로 제어 */
}

/* 비디오 팝업 */
#popupVideoPlayer .popup-body { overflow-x: hidden; }
@media (max-width: 768px) {
  #popupVideoPlayer .popup { max-height: none !important; }
  #popupVideoPlayer .popup-body {
    display: block !important;
    overflow-y: auto !important;
  }
}

/* ========== 추천 영상 (비디오 팝업 하단 독립 섹션) ========== */
.related-videos-wrap {
  padding: 24px 0 28px;
  border-top: 1px solid #e5e7eb;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.related-videos-slider {
  padding: 0 8px;
}
.related-videos-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.related-videos-title {
  font-size: 19px; font-weight: 700; color: #222;
}
.related-videos-nav {
  display: flex; gap: 6px;
}
.related-videos-nav button {
  width: 32px; height: 32px; border: 1px solid #d1d5db;
  border-radius: 50%; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.related-videos-nav button:hover { background: #f3f4f6; }
.related-videos-slider .swiper {
  overflow: hidden;
}
.related-video-card {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.15s;
}
.related-video-card:hover { transform: translateY(-2px); }
.related-video-thumb {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden; background: #e5e7eb;
}
.related-video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.related-video-info { padding: 8px 2px 0; }
.related-video-title {
  font-size: 13px; font-weight: 600; color: #222; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.related-video-meta {
  font-size: 11px; color: #9ca3af; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ========== 쿠키 수집 동의 배너 ========== */
.cookie-consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9500;
  background: #2c2c2c; color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-consent-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 30px;
}
.cookie-consent-text { flex: 1; }
.cookie-consent-text strong { font-size: 16px; display: block; margin-bottom: 6px; }
.cookie-consent-text p { font-size: 13px; color: #ccc; margin: 0 0 4px; line-height: 1.5; }
.cookie-consent-link { font-size: 12px; color: #8ab4f8; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-consent-accept {
  padding: 10px 28px; border: none; border-radius: 6px;
  background: #256EF4; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-consent-accept:hover { background: #1a5ad4; }
.btn-consent-reject {
  padding: 10px 28px; border: 1px solid #888; border-radius: 6px;
  background: transparent; color: #ccc; font-size: 15px; cursor: pointer;
}
.btn-consent-reject:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 768px) {
  .cookie-consent-inner { flex-direction: column; padding: 16px 20px; gap: 16px; }
  .cookie-consent-actions { width: 100%; }
  .btn-consent-accept, .btn-consent-reject { flex: 1; }
}

/* ========== 이달의 영웅 상세 보정 ========== */
/* 좌(이미지) + 우(본문) flex */
.exhibition-container .exhibition-detail .detail-body {
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 50px !important;
  padding: 30px 20px 0;
  align-items: flex-start;
}
/* 포스터 이미지 영역 */
.hero-poster {
  width: 55%;
  flex-shrink: 0;
  margin-left: -20px;
}
.hero-poster img {
  display: block;
  width: 100%;
  height: auto;
}
/* hero-swiper-main — 높이 문제 근본 해결 */
.hero-swiper-main.swiper {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
}
.hero-swiper-main .swiper-wrapper {
  display: flex;
  align-items: flex-start;
}
.hero-swiper-main .swiper-slide {
  width: 100% !important;
  height: auto !important;
  flex-shrink: 0;
}
.hero-swiper-main .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}
/* 비활성 슬라이드 높이 제거 — autoHeight가 활성 슬라이드만 계산 */
.hero-swiper-main .swiper-slide:not(.swiper-slide-active) {
  height: 0 !important;
  overflow: hidden;
}
/* 모바일 — 세로 배치 (이미지 먼저) */
@media (max-width: 768px) {
  .exhibition-container .exhibition-detail .detail-body {
    flex-direction: column-reverse !important;
  }
  .hero-poster {
    width: 100%;
    margin-left: 0;
  }
  .exhibition-container .exhibition-detail .detail-body .detail-description {
    width: 100% !important;
  }
}
/* 본문 영역 — 이미지 제외 나머지 */
.exhibition-container .exhibition-detail .detail-body .detail-description {
  flex: 1 !important;
  min-width: 0;
  width: auto !important;
}
/* 인물명 */
.hero-name-area .name {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: -1px;
  color: #222;
  margin-bottom: 16px;
}
/* 본문 → 버튼 간격 */
.exhibition-container .exhibition-detail .detail-description .content .actions {
  margin-top: 20px;
}
.exhibition-container .exhibition-detail .detail-description .content .actions + .actions {
  margin-top: 10px;
}
/* AJAX 로딩 오버레이 — detail-body 전체 중앙 */
.exhibition-detail .detail-body.is-loading {
  position: relative;
}
.exhibition-detail .detail-body.is-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #ddd;
  border-top-color: #256ef4;
  border-radius: 50%;
  animation: heroSpin 0.6s linear infinite;
  z-index: 10;
}
.exhibition-detail .detail-body.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9;
  border-radius: 10px;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }

/* 동영상 목록 하단 여백 — photo-list(40px)과 동일 */
.archive-container .result-group-wrapper .result-group .video-list {
  padding-bottom: 40px;
}

/* 바로가기 드롭다운 — 버튼 우측 정렬 기준으로 열림 + 깔끔한 스타일 */
.title-area-horizontal .actions .drop-wrap .drop-menu {
  left: auto;
  right: 0;
  transform: none;
  min-width: 200px;
  padding: 6px;
  margin-top: 8px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.title-area-horizontal .actions .drop-wrap .drop-menu::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
.title-area-horizontal .actions .drop-wrap .drop-menu .item-link {
  font-size: 14px;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: #333;
  transition: background-color 0.15s;
}
.title-area-horizontal .actions .drop-wrap .drop-menu .item-link:hover {
  background-color: #f0f4fa;
  color: #1a56a8;
}