/* ==============================================
   page-sub.css - 서브페이지 공통 스타일
   (visual-wrap 관련은 page-visual.css 로 분리)
   ============================================== */

/* sub common */
.subWrap { color: #111; }

/* Swiper 콘텐츠 슬라이더 높이 보정
   swiper-bundle.css가 .swiper/.swiper-wrapper/.swiper-slide에 height:100%를 적용해
   슬라이드가 뷰포트 높이만큼(약 900px) 늘어나는 문제 방지. 콘텐츠 높이에 맞춤. */
.subWrap .swiper,
.subWrap .swiper-wrapper,
.subWrap .swiper-slide {
  height: auto;
}
.subWrap .sub_title {
  text-align: center;
  padding-top: 75px;
}
.subWrap .sub_title h2 {
  font-family: 'SEBANG_Gothic_Bold';
  text-align: center;
  color: #111;
}
.subWrap .sub_title h2 > span {
  font-family: "Pretendard";
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* 검색 영역 */
.sub_bd_wrap.board-list-wrap .sch_area {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-width: 807px;
  width: 100%;
}
.sub_bd_wrap.board-list-wrap .sch_area input {
  border: 0;
  height: 68px;
  line-height: 68px;
  width: calc(100% - 125px);
  outline: none;
}
.sub_bd_wrap.board-list-wrap .top {
  justify-content: center;
  width: 100%;
  padding: 0;
}
/* 갤러리 리스트 */
.GalleryArea {
  padding-bottom: 120px;
}

.GalleryArea {
  .inner {
    padding-top: 0;
  }
}

.subWrap .gallery_list {
  display: flex;
  flex-wrap: wrap;
  gap: 33px 44px;
}
.subWrap .gallery_list li {
  width: calc((100% - 88px)/3);
  overflow: hidden;
  transition: all .3s;
}
.subWrap .gallery_list li a {
  display: block;
  word-break: keep-all;
}
.subWrap .gallery_list li .img_box {
  position: relative;
  overflow: hidden;
  padding-top: calc(442/442 * 100%);
  border-radius: 40px;
}
.subWrap .gallery_list li .img_box img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.subWrap .gallery_list li .img_box + p {
  margin-top: 20px;
  font-size: 23px;
  font-weight: 600;
}

/* 정방향 이미지 갤러리 (ver_no_txt) */
.subWrap .gallery_list.ver_no_txt li a {
  position: relative;
}
.subWrap .gallery_list.ver_no_txt li .img_box img {
  max-width: 100%;
  min-height: 100%;
  position: absolute;
  top: 0;
}

/* 기본게시판 */
.basic_board {
  margin-top: 70px;
}
/* 페이지네이션 보조 */
.pagenation .num {
  max-width: calc(100% - 80px);
}

/* ==============================================
   반응형
   ============================================== */

@media screen and (max-width: 1420px) {
  .subWrap .gallery_list.ver_no_txt li {
    padding-top: 20%;
    position: relative;
  }
  .subWrap .gallery_list.ver_no_txt li a {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    padding-top: 0;
  }
}

@media screen and (max-width: 1024px) {
  .subWrap .sub_title {
    padding-top: 40px;
  }
  .subWrap .sub_title h2 > span {
    font-size: 13px;
  }
  .subWrap {
    padding-bottom: 50px !important;
  }

  /* 갤러리 */
  .subWrap .gallery_list {
    margin-top: 30px;
    gap: 12px;
  }
  .basic_board {
    margin-top: 30px;
  }
  .sub_bd_wrap.board-list-wrap .sch_area {
    width: auto;
    flex: 1;
  }
  .basic_board .sub_bd_wrap.board-list-wrap .sch_area input {
    min-width: inherit;
    width: 100%;
  }
  .subWrap .gallery_list li {
    width: calc((100% - 24px)/2);
    border-radius: 15px;
  }
  .subWrap .gallery_list li a .img_box {
    height: 150px;
  }

  /* 정방향 이미지 갤러리 */
  .subWrap .gallery_list.ver_no_txt li {
    padding-top: calc(50% - 12px);
    position: relative;
  }
  .subWrap .gallery_list.ver_no_txt li a {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
  }
  .subWrap .gallery_list.ver_no_txt li a .img_box {
    height: auto;
  }
}

@media screen and (max-width: 420px) {
  .pagenation, .pagenation .num {
    gap: 5px;
  }
  .pagenation a {
    font-size: 14px;
  }
}
