@charset "utf-8";
/* 서브 페이지 CSS - sub.css */

/* 공통 외부 CSS 불러오기 */
/* @import url(경로/파일명); */

/* 상단 하단 공통모듈 */
@import url(./common.css);

@import url(./core.css);
/* 초기화CSS */
@import url(./reset.css);

/* 공사중 표시 */
body * {
  outline: 2px dashed #ccc;
}

.paging-list ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 30px;
  padding: 5vh 0;
}

/***************** 메인 CSS ********************/

/* spart-menu 공통 fixed 설정 */
#spart-menu {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 1360px;
  height: 94px;
  z-index: 999;
  background: url(../images/background.gif) no-repeat center top / cover;
}

/* header.top: fixed spart-menu(94px) 아래에 배치 */
header.top {
  margin-top: 94px;
}

/* 제목파트 */
.tit2 .inbox {
  max-width: 1360px;
}
/* 하위메뉴 호버시 */
.line1 > a:hover {
  color: #c52531;
  font-weight: bold;
}

.line1 a.active {
    color: #c52531;
    font-weight: bold;
    background-color: transparent;
}

/* sub2.html(Paintings 페이지): line1 첫번째 링크 항상 active 색상 */
.line1 > a:first-child {
  color: #c52531;
  font-weight: bold;
}

.line1 {
  display: flex;
  height: 30px;
  border-bottom: 2px solid #b3b3b5;
  align-items: center;
  gap: 18px;
  font-size: 1.6rem;
  /* ?? */
  padding-left: calc(100% / 12);
}

.line2 {
  font-size: 3.6rem;
  text-align: center;
  align-content: center;
  height: 85px;
  border-bottom: 2px solid #b3b3b5;
}

.line3 {
  height: 30px;
  border-bottom: 2px solid #b3b3b5;
  align-content: center;
  margin-bottom: 45px;

  padding-left: calc(100% / 12);
}

/*이동버튼*/
.abtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /*Y축 중앙이동*/
}

/*왼쪽버튼*/
.ab1 {
  left: 50px;
}

/*오른쪽버튼*/
.ab2 {
  right: 50px;
}

/* painting-part: 화살표 기준 위치 */
.painting-part {
  position: relative;
}

/* ////////////////////////////////////////// */

/* for문 전에 */
/*.painting-part ul.cont-box {
    gap: 21.4vh 4.5vh;
}
.cont-box{
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    
}
.painting-part li {
  컨텐츠 세로 배치 
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
    width: calc((100% - 4.5vh * 2) / 3); */

/* 전체 화면구성 
    aspect-ratio: 340 / 455;
    box-shadow: 0 0 10px #ccc;
    box-sizing: border-box;
    padding: 24px 20px;
    cursor: pointer;}

    .cont-box img{
      max-width: 340px;
    }
    .cont-box h3{
     text-align: center;
     font-size: 1.8rem;
     } */

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  /* 좌우 화살표(~100px) 만큼 패딩 확보 */
  padding: 0 100px;
  box-sizing: border-box;
}

/* 내부 플렉스박스 */
.wrap ul {
  display: flex;
  /* 랩핑박스 - 줄바꿈됨 */
  flex-wrap: wrap;
  /* 가운데 정렬 */
  justify-content: center;
  /* 사이간격: gap */
  gap: 21.4vh 4.5vh;
}

.wrap li {
  position: relative;
  /* 한줄에 3개 오는 설정값을 찾음 */
  width: calc((100% - 4.5vh * 2) / 3);
  aspect-ratio: 340 / 455;
  cursor: pointer;
  text-align: center;

  /* 이미지,글자 셋팅 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  /* 패딩, 보더를 크기에 포함하기 : bxb */
  box-sizing: border-box;
  gap: 32px;
}

/* 이미지태그를 배경처럼 넣기 */
.wrap img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}
.wrap h3 {
  font-size: 1.8rem;
}

.dots {
  position: relative;
  text-align: center;
  margin: 107px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: #bdbdbd;
  border-radius: 50%;
  display: inline-block;
  margin: 0 19px;
}

.dot.active,
.dot:hover {
  background-color: #666666;
}

/* 4. 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 10% auto;

  /* border-radius: 10px; */
  border: #000000 solid 1px;
  width: 90%;
  max-width: 1114px;
  height: 560px;
  position: relative;
  animation: slideIn 0.3s ease;
  /* overflow: auto; */
}
.modal-content::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 50%;
  top: 0;
  background-color: #000000;
  z-index: 999;
}

.flex {
  display: flex;
}

.modal-content > .flex {
  position: relative;
  height: 560px;
  display: flex;
  flex-direction: row;
  z-index: 1;
}

section.modal-img {
  width: 50%;
  text-align: center;
  align-content: center;
}
section.modal-img>img {
    width: 400px;}

/* .modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 30px solid #ffffff;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
} */

.modal-tit {
  /* position: absolute; */
  /* left: 50%; */
  width: 50%;
  height: 100%;

  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  /* margin: 35px 0 25px 30px; */
}

.modal-tit > h3 {
  font-size: 3.2rem;
  height: 245px;
  /* padding: 30px 0 75px; */
  border-bottom: 1px solid;
  box-sizing: border-box;
  margin: 0;
  align-content: center;
}

.txtbox {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 60px;
  border-bottom: #000 solid 1px;
  padding: 75px 125px;
}
.box {
  display: flex;
}

strong {
  font-size: 1.8rem;
  min-width: 150px;
  text-align: left;
  /* margin-right: 90px; */
  align-content: center;
}
.copyright {
  font-size: 1.4rem;
  text-align: right;
  margin: 23px;
  color: #808080;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
 right: 5px;
  top: 0;
  z-index: 3;
}

.close:hover {
  color: #000;
}

.modal-btn{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  width: 100%;
  /* li의 h3 높이(gap 32px + h3 약 2.2rem)를 제외한 이미지 영역만 커버 */
  height: calc(100% - 32px - 2.2rem);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}

.search-form>button {
  display: none;
}

.disabled {
  /* 투명도를 50%로 설정합니다. */
  opacity: 0.5;

  /* 마우스 이벤트도 무시하게 하려면 (필요한 경우) */
  /* pointer-events: none; */
}
.search-form {
    /* 폼의 너비나 위치를 .line3 스타일에 맞춰 조정하세요. */
    width: 100%;
 
    margin: 0 auto; /* 중앙 정렬 */
    text-align: center;
}

/* 검색 입력 칸 스타일 */
#search-input {
    /* **핵심: 테두리와 배경 제거** */
    border: none;             /* 테두리 제거 */
    /* 얇은 밑줄만 남기기 (깔끔함) */
    background: transparent;  /* 배경 투명하게 */
    outline: none;            /* 포커스 시 생기는 파란색 테두리 제거 */
    
    /* 너비 및 텍스트 스타일 */
    width: 100%;
    padding: 10px 0;         /* 상하 패딩만 남기고 좌우는 0 */
    font-size: 1.2em;
    color: #333;             /* 글자색 */
}

/* 포커스 시 밑줄 색상 변경 (선택 사항: 사용자 피드백) */
#search-input:focus {
    border-bottom-color: #c52531; /* 포커스 시 강조 색상 적용 */
}

/* Placeholder 스타일링 (브라우저별 접두사 필요) */
#search-input::placeholder {
    color: #000000;
    font-size: 1.6rem;
    opacity: 1; /* 파이어폭스에서 투명도 문제 해결 */
}

/* ====================================================
   미디어쿼리
   ==================================================== */

/* 1200px 이하 */
@media screen and (max-width: 1200px) {
  .wrap {
    padding: 0 80px;
  }
  .wrap li {
    width: calc((100% - 4.5vh * 2) / 3);
  }
  .wrap img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
  }
}

/* 1024px 이하 */
@media screen and (max-width: 1024px) {
  html {
    font-size: 8px;
  }
  .wrap {
    max-width: 760px;
    padding: 0 70px;
  }
  .wrap li {
    width: calc((100% - 4.5vh) / 2);
    aspect-ratio: 340 / 430;
  }
  .wrap img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
  }
  /* 모달 세로 전환 */
  .modal-content {
    height: auto;
  
    overflow: auto;
  }
  .modal-content > .flex {
    flex-direction: column;
    height: auto;
  }
  section.modal-img {
    width: 100%;
    text-align: center;
    padding: 30px 0 0;
  }
  section.modal-img > img {
    width: 280px;
  }
  .modal-content::before {
    display: none;
  }
  .modal-tit {
    width: 100%;
    height: auto;
  }
  .modal-tit > h3 {
    height: auto;
    padding: 20px 0;
  }
  .txtbox {
    padding: 30px 60px;
  }
}

/* 800px 이하 - 모바일 */
@media screen and (max-width: 800px) {
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* header: spart-menu(fixed 94px) 아래로 밀기 */
  header.top {
    margin-top: 94px;
    position: static;
  }

  /* #spart-menu: fixed 고정 */
  #spart-menu {
    position: fixed;
    top: 0;
    left: 0 !important;
    translate: none;
    width: 100%;
    height: 94px;
    z-index: 10000;
    background: url(../images/background.gif) no-repeat center top / cover;
  }

  /* center-box */
  .center-box {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 데스크탑 ul 숨기기 */
  .spart-menu ul {
    display: none !important;
  }
  /* 로고 포함 ul만 flex */
  #spart-menu2 > ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 94px;
    padding: 0;
  }
  #spart-menu2 > ul > li {
    display: none;
  }
  /* 로고(3번째 li)만 보이기 */
  #spart-menu2 > ul > li:nth-child(3) {
    display: block;
    text-align: center;
  }

  /* tit2 padding 초기화 */
  .tit2 .inbox {
    padding: 0;
  }
  .line1 {
    padding-left: 4vw;
  }
  .line3 {
    padding-left: 4vw;
  }

  /* 햄버거 버튼 그룹 */
  .menubtn-group {
    display: flex !important;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    right: 20px;
    gap: 20px;
  }
  .menubtn-group > button {
    background-color: transparent;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: #ffffff;
  }
  .menubtn-ham i:nth-child(2) {
    display: none;
  }
  #spart-menu2.menu-open .menubtn-ham i:nth-child(1) {
    display: none;
  }
  #spart-menu2.menu-open .menubtn-ham i:nth-child(2) {
    display: block;
  }

  /* 모바일 메뉴박스 슬라이드 */
  .menu-box {
    display: block !important;
    position: fixed;
    top: 94px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 94px);
    background-color: #fff;
    z-index: 9999;
    transition: left 0.5s ease-in-out;
    overflow-y: auto;
  }
  #spart-menu2.menu-open .menu-box {
    left: 0;
    translate: none;
  }

  /* 메뉴 그룹 */
  .menu-group {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-sizing: border-box;
  }
  nav.gnb-menu {
    width: 100%;
  }
  .gnb-menu ul {
    display: flex !important;
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 0;
    align-items: flex-start;
  }
  .gnb-list > li {
    width: 100%;
    border-bottom: 1px solid #000;
    padding: 3.2rem;
    box-sizing: border-box;
  }
  .gnb-list > li:nth-child(3),
  .gnb-list > li:nth-child(4) {
    padding: 3.2rem 3.2rem calc(2.5vh * 2 + 3.2rem) 3.2rem;
  }
  .gnb-list > li > a {
    color: #000 !important;
    font-size: 2.5vh !important;
    text-decoration: none;
    width: 33%;
    margin: 0 0 0 calc(100% / 12);
    text-align: left;
  }
  .sub {
    display: flex;
    width: 100%;
  }
  .sub2 {
    position: absolute;
    width: 40%;
    text-align: left;
    right: calc(100% / 12);
  }
  .sub2 > div {
    font-size: 2.5vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
  }
  .sub2 a {
    color: #000 !important;
    font-size: 2vh !important;
    text-decoration: none;
  }
  .sub-list {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .sub-list.active {
    display: block;
    max-height: 500px;
  }
  .two-line li a {
    color: #000 !important;
    font-size: 1.8vh !important;
  }
  .fa-chevron-down {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 8px;
  }
  .fa-chevron-down.active {
    transform: rotate(180deg);
  }

  /* 메뉴 열릴 때 스크롤 방지 */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 94px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: transparent;
  }

  /* ── 그림 리스트 모바일 ── */
  /* painting-part: 화살표는 position absolute 유지, wrap이 중앙 */
  .painting-part.inabox {
    position: relative;
    padding: 0;
    box-sizing: border-box;
  }
  .wrap {
    max-width: 100%;
    /* 화살표(좌우 각 44px) 공간 확보 */
    padding: 0 50px;
    box-sizing: border-box;
  }
  .wrap ul {
    gap: 5vw 4vw;
    justify-content: center;
  }
  .wrap li {
    /* 2열, 화살표 패딩 제외한 너비 */
    width: calc(50% - 2vw);
    aspect-ratio: 340 / 430;
  }
  .wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .wrap h3 {
    font-size: 1.3rem;
  }

  /* 좌우 버튼 - wrap 밖, painting-part 기준 */
  .abtn.ab1 { left: 5px; }
  .abtn.ab2 { right: 5px; }
  .abtn img { width: 30px; }

  /* 모달 모바일 */
  .modal-content {
    margin: 5% auto;
    overflow-y: auto;
  }
  .modal-content > .flex {
    flex-direction: column;
    height: auto;
  }
  .modal-content::before {
    display: none;
  }
  section.modal-img {
    width: 100%;
    text-align: center;
    padding: 40px 0 0;
    box-sizing: border-box;
  }
  section.modal-img > img {
    width: 200px;
  }
  .modal-tit {
    width: 100%;
    height: auto;
  }
  .modal-tit > h3 {
    font-size: 2rem;
    height: auto;
    padding: 20px 15px 15px;
  }
  .txtbox {
    padding: 20px 20px 30px;
    gap: 12px;
  }
  strong {
    min-width: 90px;
    font-size: 1.5rem;
  }
  .copyright {
    margin: 15px 15px;
    font-size: 1.2rem;
  }

  /* dots */
  .dots {
    margin: 50px 10px;
  }
}

/* 480px 이하 */
@media screen and (max-width: 480px) {
  .wrap {
    padding: 0 44px;
  }
  .wrap li {
    width: calc(50% - 2vw);
    aspect-ratio: 340 / 400;
  }
  .wrap img {
    width: 100%;
    max-width: 130px;
    height: auto;
    object-fit: contain;
  }
  .wrap h3 {
    font-size: 1.1rem;
  }
  .abtn img {
    width: 24px;
  }
  .dots {
    margin: 40px 5px;
  }
}