body header {
  --default_color: #222222;
  --on_color: #fff;
  background-color: var(--on_color);
}
body header.hover {
  --default_color: #222;
  --on_color: #fff;
}
body header .on {
  opacity: 0;
}
body header.hover .on {
  opacity: 1;
}
body header .basic {
  opacity: 1;
}
body header .lang_btn {
  color: #222;
  background-color: var(--default_color);
}
body header.hover .lang_btn,
body header.m_menu .lang_btn {
  color: #fff;
  background-color: var(--point_color01);
}
body header .srh_btn {
  display: none;
}

.main_section {
  position: relative;
  /* min-height: 200px; */
  padding-top: 70px;
  color: #ffffff;
  letter-spacing: -0.04em;
}
.main_section .slide_box {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.main_section .slide_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky_tab_wrapper {
  position: sticky;
  background-color: #ffffff;
  z-index: 90;
  border-bottom: 1px solid #e0e0e0;
}

/* --- 타이틀 --- */
.main_section .title-container {
  text-align: center;
  text-shadow: 5px 5px 0px rgba(0, 0, 0, 0.15);
  word-wrap: break-word;
}
.main_section .main-title {
  color: #561ba2;
  font-size: 76px;
  font-weight: 800;
  line-height: 80px;
  letter-spacing: -5px;
  margin: 0;
}
.main_section .subtitle {
  color: #222;
  font-size: 50px;
  font-weight: 500;
  line-height: 80px;
  margin: 0;
}
.main_section .subtitle .highlight {
  color: #9b1ba2;
}

/* --- 애니메이션 정의 --- */
@keyframes up_text01 {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}
@keyframes fade_up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

/* --- 애니메이션 적용 --- */
.anim-parent {
  overflow: hidden;
}
.anim-text {
  display: inline-block;
  animation: up_text01 0.4s backwards;
}

/* 타이틀 텍스트 순차 애니메이션 */
.main-title .anim-text:nth-child(1) {
  animation-delay: 0.1s;
}
.main-title .anim-text:nth-child(2) {
  animation-delay: 0.15s;
}
.main-title .anim-text:nth-child(3) {
  animation-delay: 0.2s;
}
.main-title .anim-text:nth-child(4) {
  animation-delay: 0.25s;
}
.subtitle .anim-text:nth-child(1) {
  animation-delay: 0.3s;
}
.subtitle .anim-text:nth-child(2) {
  animation-delay: 0.35s;
}
.subtitle .anim-text:nth-child(3) {
  animation-delay: 0.4s;
}
.subtitle .anim-text:nth-child(4) {
  animation-delay: 0.45s;
}
.subtitle .anim-text:nth-child(5) {
  animation-delay: 0.5s;
}
.subtitle .anim-text:nth-child(6) {
  animation-delay: 0.55s;
}
.subtitle .anim-text:nth-child(7) {
  animation-delay: 0.6s;
}
.subtitle .anim-text:nth-child(8) {
  animation-delay: 0.65s;
}
.subtitle .anim-text:nth-child(9) {
  animation-delay: 0.7s;
}
.subtitle .anim-text:nth-child(10) {
  animation-delay: 0.75s;
}
.subtitle .anim-text:nth-child(11) {
  animation-delay: 0.8s;
}
.subtitle .anim-text:nth-child(12) {
  animation-delay: 0.85s;
}
.subtitle .anim-text:nth-child(13) {
  animation-delay: 0.9s;
}
.subtitle .anim-text:nth-child(14) {
  animation-delay: 0.95s;
}
.subtitle .anim-text:nth-child(15) {
  animation-delay: 1s;
}
.subtitle .anim-text:nth-child(16) {
  animation-delay: 1.05s;
}

.main_section .text_box {
  padding-top: 20px;
  margin: 0 auto;
}

.sc_inner {
  width: 100%;
  max-width: 1560px;
  padding: 0 20px;
  margin: 0 auto;
}

/* --- 탭 버튼 --- */
.tab_box {
  margin: 20px 0px;
}
.tab_box .tab_wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.tab_box .tab_item {
  background-color: #ffffff;
  color: #222;
  border: 1px solid #383838;
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-weight: 500;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 5px auto;
  padding: 10px 0;
  align-items: center;
  text-align: center;
  transition: 0.3s;
  animation-name: fade_up;
  animation-duration: 0.3s;
  animation-fill-mode: backwards;
}
.tab_box li:nth-of-type(1) .tab_item {
  animation-delay: 1.4s;
}
.tab_box li:nth-of-type(2) .tab_item {
  animation-delay: 1.43s;
}
.tab_box li:nth-of-type(3) .tab_item {
  animation-delay: 1.46s;
}
.tab_box li:nth-of-type(4) .tab_item {
  animation-delay: 1.49s;
}
.tab_box li:nth-of-type(5) .tab_item {
  animation-delay: 1.52s;
}
.tab_box li:nth-of-type(6) .tab_item {
  animation-delay: 1.55s;
}
.tab_box .tab_item:hover,
.tab_box .tab_item.on {
  background-color: #561ba2;
  border: 1px solid transparent;
  color: #fff;
}

/* --- 메인 섹션 반응형 --- */
@media screen and (max-width: 1300px) {
  .main_section {
    padding-top: 40px;
  }
  .tab_box .tab_wrap {
    gap: 10px;
  }
}
@media screen and (max-width: 1024px) {
  .main_section .main-title span {
    font-size: 58px;
    line-height: 55px;
  }
  .main_section .subtitle span {
    font-size: 45px;
    line-height: 50px;
  }
  .tab_box .tab_wrap {
    gap: 10px;
    grid-template-columns: repeat(6, 1fr);
  }

  .main_section {
    min-height: auto;
    padding-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  .main_section .main-title span {
    font-size: 48px;
    line-height: 1.2;
  }
  .main_section .subtitle span {
    font-size: 36px;
    line-height: 1.3;
  }
  .main_section .text_box {
    padding-top: 10px;
    margin: 0 auto;
  }
  .tab_box .tab_wrap {
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }
  .tab_box .tab_item {
    max-width: 250px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 550px) {

 .main_section .subtitle {
  color: #222;
  font-size: 30px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}
  .main_section {
    padding-bottom: 0px;
    padding-top: 20px;
  }
  .main_section .main-title span {
    font-size: 40px;
    line-height: 40px;
  }

  .main_section .subtitle span {
    font-size: 23px;
    line-height: 23px;
  }
  .main_section .text_box {
      padding-top: 20px;
      margin: 0 auto;
    }
   .tab_box {
    margin-top: 30px;
  }
  .tab_box .tab_item {
    font-size: 12px;
    font-weight: 300;
    height: 50px;
  }
  .tab_box .tab_wrap {
   /* padding-top: 15px;   */
    gap: 5px;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 하단 슬라이드 섹션 --- */
.title_box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.title_box .sc_title {
  display: inline-block;
  color: var(--main_color01);
  font-size: 40px;
  font-weight: 700;
  position: relative;
}
.title_box .sc_title::before {
  content: "";
  display: block;
  position: absolute;
  background-color: var(--main_color02);
  opacity: 0.5;
  height: 16px;
  border-radius: 10px;
  bottom: 0px;
  z-index: -1;
  left: 0;
  transition: 0.3s;
  width: 0%;
}
.section.on .title_box .sc_title::before {
  width: 100%;
}
.title_box .util_box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.title_box .util_box > li {
  border: 1px solid #c8c8c8;
  border-radius: 50%;
  width: 40px;
  aspect-ratio: 1 / 1;
  transition: 0.3s;
  background-color: #fff;
  overflow: hidden;
}
.title_box .util_box > li:hover {
  border: 1px solid var(--main_color01);
}
.title_box .util_box :is(a, button) {
  display: flex;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.3s;
}
.title_box .util_box .prev {
  background-image: url(../img/main/ico_prev01.png);
}
.title_box .util_box .pause {
  background-image: url(../img/main/ico_pause01.png);
}
.title_box .util_box .play {
  background-image: url(../img/main/ico_play01.png);
  display: none;
}
.title_box .util_box > li.stop .play {
  display: flex;
}
.title_box .util_box .next {
  background-image: url(../img/main/ico_next01.png);
}
.title_box .util_box .more {
  background-image: url(../img/main/ico_more01.png);
}
.title_box .util_box .more:hover {
  background-image: url(../img/main/ico_more01_on.png);
}
.title_box .left {
  display: flex;
  align-items: flex-end;
}
.tab_btn_list {
  display: flex;
  gap: 44px;
  margin-left: 120px;
}
.tab_cont {
  display: none;
}
.tab_cont.on {
  display: block;
}
section .util_box:not(:first-of-type) {
  display: none;
}
.selection {
  padding: 20px 0px;
  overflow: hidden;
}
.selection::before {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -400px;
  aspect-ratio: 1881 / 1010;
  max-height: 1010px;
  max-width: 1880px;
  opacity: 0.1;
  background: url(../img/main/img_back01.png) no-repeat center bottom;
  z-index: -1;
  background-size: 100% auto;
}

/* 화면을 꽉채우기*/
.sc_inner.right {
  margin-right: 0;
  max-width: calc(1560px + (100% - 1560px) / 2);
  overflow: hidden;
}

/* 화면 가운데정렬 _포스터 5개 이후 가림
.sc_inner.right {
  margin-right: auto;
  max-width: 1560px;
  overflow: visible;
}
 */

.selection .slick-list {
  overflow: visible;
  max-width: 1560px;
}
.selection .slide_item {
  padding: 0px 17px;
}
.selection .slide_item .inner {
  transition: 0.3s;
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px rgb(215 216 216 / 50%);
  overflow: hidden;
}
.selection .slide_item:hover .inner {
  transform: translateY(-10px);
  box-shadow: 0px 4px 4px 4px rgb(215 216 216 / 50%);
}
.selection .slide_box {
  margin: 0 -17px;
}
.selection .slide_item .img_box {
  aspect-ratio: 1 / 1.1;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}
.selection .slide_item .img_box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.selection .slide_item .text_box {
  padding: 15px 15px 20px;
  background-color: #ffffff;
  transition: 0.3s;
}

.selection .slide_item .title {
  font-size: 19px;
  line-height: 24px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  margin-bottom: 20px;
  transition: 0.3s;
  font-weight: 300;
}
.selection .slide_item:hover .title {
  color: var(--main_color01);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.selection .slide_item .date {
  font-family: "NanumGothic";
  font-size: 14px;
  color: #767676;
}
.selection .slide_item .type {
  font-family: "NanumGothic";
  font-size: 14px;
  color: #767676;
  margin-top: 5px;
}

/* --- 하단 슬라이드 반응형 --- */
@media screen and (max-width: 1200px) {
  .tab_btn_list {
    margin-left: 0;
    margin-top: 10px;
    gap: 20px;
  }
}
@media screen and (max-width: 1024px) {
  .title_box .left {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .title_box .sc_title {
    font-size: 22px;
  }
  .title_box .util_box > li {
    width: 30px;
  }
  .title_box .util_box button {
    background-size: auto 13px;
  }
 /* .tab_box {
    padding-top: 30px;
 }  */
  .selection {
    padding: 15px 0px;
    overflow: hidden;
  }
  .selection .slide_item .type {
    font-size: 12px;
    margin-bottom: 5px;
  }
  .selection .slide_item .title {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 10px;
    height: 32px;
  }
  .selection .slide_item .date {
    font-size: 12px;
  }
  .selection .slide_item {
    padding: 0px 9px;
  }
  .selection .slide_box {
    margin: 0 -9px;
  }
  .selection .slide_item .text_box {
    padding: 15px 10px;
  }
}

/* =============================================
  전시 설명 팝업
============================================= */

.exhibit-section {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
  box-sizing: border-box;
}
.exhibit-title {
  color: #111111;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 20px;
  word-break: keep-all;
}
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 60px;
  border-radius: 8px;
  color: white;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.btn-web {
  background: #0c00ac;
}
.btn-hmd {
  background: #1991a7;
}
.divider {
  border: 0;
  height: 1px;
  background: #000;
  margin-bottom: 40px;
}
.exhibit-description {
  color: #000000;
  font-size: 17px;
  font-family: "NanumGothic";
  font-weight: 300;
  padding-right: 15px;
}
.exhibit-description p + p {
  margin-top: 1.5em;
}

/* --- 팝업 반응형 (768px 이하) --- */
@media screen and (max-width: 768px) {
  .exhibit-section {
    margin: 20px auto;
    padding: 20px 20px;
  }
}

.search_area { position: absolute; top: -40%; left: 0; display: flex; justify-content: center; align-items: center; width: calc(100%); height: calc(100vh / 3); background: #000; transition: top .5s ease-in-out; z-index: 1; }


.search_area.on { top: 0; z-index: 999; }

.search_title{
   color: #FFF;
   text-align: center;
   font-family: "ansim_B";
   font-size: 45px;
   font-style: normal;
   font-weight: 700;
   line-height: normal;
   letter-spacing: -0.9px;
   margin-bottom: 50px;
}

.condition_box{
   position: relative;
 }

 .search_area select,
 .search_area input { background: none; outline: none; color: #333;
   font-family: Pretendard;
   font-size: 18px;
   font-style: normal;
   font-weight: 400;
   line-height: normal;
   letter-spacing: -0.36px; border-bottom: 1px solid #555; border-top: none; border-right: none; border-left: none; }

 .search_area select { width: 100px; height: 45px; margin-right: 20px; }

 .search_area input { width: 600px; height: 45px; }

 .search_area input:focus { color: #fff; }

 .search_area input::placeholder { color: #444; }

 .search_img{
   width: 24px;
   height: 24px;
   position: absolute;
   top: 10px;
   right: 1px;
 }

 .search_result { position: absolute; top: 33%; left: 0; display: none; width: calc(100% - 5px); height: 67%; font-family: 'Pretendard', sans-serif; background: #000; overflow-y: scroll; z-index: 999; }
 .search_result.show { display: block; }

 .search_info, .result_cont{
   width: 85%;
   margin: 0 auto;

 }

 .search_info{
   color: #8E8E8E;
   font-family: Pretendard;
   font-size: 15px;
   font-style: normal;
   font-weight: 300;
   line-height: normal;
   letter-spacing: -0.3px;
   padding-bottom: 20px;
   border-bottom: 1px solid #FFF;
 }

 .search_result .search_info b,
 .search_result .search_info strong { color: #FFF; }

 .closeBtn { position: absolute; top: 54px; right: 55px; width: 40px; height: 40px; background: url(../img/icon_close.png) 0 0 / cover no-repeat; cursor: pointer; }

 .result_list { display: flex; align-items: center; width: 100%; height: 100%; padding-bottom: 40px; margin-top: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
   ; }

 /* .result_list > a { width: 200px; }

 .result_list > a > img { width: 100%; }  */

 .result_list > img {
    width: 200px;
 }

  .exhibit_name{
   color: #FFF;
   font-family: Pretendard;
   font-size: 20px;
   font-style: normal;
   font-weight: 800;
   line-height: normal;
   letter-spacing: -0.4px;
 }

 .museum{
   color: #FFF;
   font-family: Pretendard;
   font-size: 16px;
   font-style: normal;
   font-weight: 500;
   line-height: 22px; /* 137.5% */
   letter-spacing: -0.32px;
 }

 .exhibit_info { width: 80%; padding: 0 30px; }

 .exhibit_description { margin: 10px 0; color: #8E8E8E;
   font-family: Pretendard;
   font-size: 16px;
   font-style: normal;
   font-weight: 500;
   line-height: 22px; /* 137.5% */
   letter-spacing: -0.32px;}

   @media screen and (max-width: 1024px){
    .search img{
   width: 24px;
   height: 24px;
   cursor: pointer;
 }

 .search_area { width: 100%; height: 35%; z-index: 999; }

 .search_title {
   font-size: 35px;
   margin-top: 60px;
}

 .search_area select,
 .search_area input { font-size: 16px; }

 .search_area select { width: 100px; height: 25px; margin-right: 10px;}

 .search_area input { width: 64%; height: 25px; }

 .search_info { font-size: 13px; padding-bottom: 15px;}

 .search_info, .result_cont {
   width: 95%;
   margin: 0 auto;
}

 .search_result { top: 35%; width: 100%; height: 65%; padding: 15px; }

 .search_img{
   width: 20px;
   height: 20px;
   position: absolute;
   top: 0px;
   right: 0px;
 }

 .result_list { flex-direction: column; align-items: baseline; margin-top: 25px; padding-bottom: 15px;}

 .result_list > img {
   margin-bottom: 20px;
}

 .exhibit_info { width: 100%; padding: 10px; }

 .exhibit_description {
   margin-top: 15px;
   margin-bottom: 20px;
}

 .closeBtn { top: 12px; right: 20px; width: 40px; height: 40px; }

}
.popup-wrap { display: none; position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 999; }
.popup-wrap .bg { width: 100%; height: 150%; background: rgba(0, 0, 0, 0.75); }
.popup-wrap .contents { position: absolute; left: 50%; top: 50%; text-align: center; z-index: 2; }
.popup-wrap .contents .popup-footer {max-width: 50%;}
.popup-wrap .popup-slide { display: flex; max-width: 50%;}
.popup-wrap .popup-slide li { flex: 1; -webkit-box-flex: 1; }
.popup-wrap .popup-slide li a { display: block; }
.popup-wrap .popup-slide li a img { width: 100%; }
.popup-footer { height: 44px; padding: 0 4px; background: #fff; }
.popup-footer button { padding: 3px 0px 0px 0px; height: 100%; float: right; background: transparent; font-size: 12px;}
.popup-footer .input-wrap { float: left; height: 100%; line-height: 44px; }
.popup-footer .input-wrap label { font-size: 12px; }
#today-close { vertical-align: -1px; }
.popup-wrap .slick-dots { position: absolute; text-align: center; z-index: 2; left: 0; bottom: 0; width: 100%; }
.popup-wrap .slick-dots li { display: inline-block; }
.popup-wrap .slick-dots li + li { margin-left: 8px; }
.popup-wrap .slick-dots li button { text-indent: -99999px; width: 6px; height: 6px; background: #000; opacity:0.5; border-radius: 50%; }
.popup-wrap .slick-dots .slick-active button { background: #fff; opacity: 1; }



@media (orientation: landscape) {
    .popup-wrap .contents { max-width: 50%; font-size: 0;}
    .popup-footer { height: 44px; padding: 0 24px; background: #fff; }
    .popup-footer button { padding: 0 20px; height: 100%; float: right; background: transparent; }

}

.title_box .right {
    /* Flexbox 활성화 */
    display: flex; 
    
    /* 내부 요소들을 세로 중앙에 정렬 */
    align-items: center;
    
    /* 요소들 사이에 약간의 간격 추가 (선택 사항) */
    gap: 10px; 
}