@charset "utf-8";

#wrap {
  width: 100%;
  margin: 15rem auto;
}

#wrap .textArea {
  width: 100%;
  text-align: center;
}
.textArea h2 {
  font-size: 3.25rem;
  margin-bottom: 5rem;
  text-align: center;
}
.textArea .title {
  position: relative;
  display: inline-block;
  font-size: 1.31rem;
  font-weight: 500;
  margin-bottom: 3.75rem;
  cursor: pointer;
}
.textArea .title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  display: inline-block;
  width: 100%;
  height: 2px;
  background: var(--black);
}

.content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.18rem;
}
.content li figure {
  width: 29.75rem;
  height: 15rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.content li figure img {
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: all 0.3s ease;
}
.content li:hover figure img {
  transform: scale(1.05);
}
.content li p {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 3.12rem;
}
.content li:hover p::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
}
#wrap .pageBtn {
  display: block;
  width: 100%;
  margin: 10rem auto 0;
  font-weight: 600;
  text-align: center;
}
#wrap .pageBtn > span {
  width: 0.93rem;
  position: relative;
  display: inline-block;
  text-align: center;
}
#wrap .pageBtn > span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  display: inline-block;
  background: var(--black);
  width: 100%;
  height: 2px;
}

/* 스와이퍼 */
.scenerySwiper {
  position: relative;
  width: 100%;
  height: 100%;
}
.scenerySwiper .closeBtn {
  position: absolute;
  top: 1.87rem;
  right: 1.87rem;
  background: var(--white);
  width: 4rem;
  height: 4rem;
  font-size: 1.25rem;
  line-height: 4rem;
  border-radius: 50%;
  text-align: center;
  opacity: 0.5;
  transform: rotate(0);
  transition: all 0.3s ease;
  z-index: 100;
}
.scenerySwiper .closeBtn:hover {
  opacity: 1;
  transform: rotate(90deg);
}
.scenerySwiper .closeBtn img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
}
.swiper-slide figure {
  width: 100%;
  height: 100vh;
}
.swiper-slide figure img {
  width: 100%;
  height: 100%;
}

/* 스와이퍼 네비게이션 */
.swiper-buttonNext,
.swiper-buttonPrev {
  position: absolute;
  bottom: 0;
  transform: translateY(-50%);
  background: var(--white);
  width: 4rem;
  height: 4rem;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 4rem;
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
  text-align: center;
}
.swiper-buttonNext {
  right: 1.87rem;
}
.swiper-buttonPrev {
  right: 6.25rem;
}
.swiper-buttonNext:hover,
.swiper-buttonPrev:hover,
.closeBtn {
  opacity: 1;
}

.scenerySwiper {
  display: none; /* 기본은 숨김 */
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.scenerySwiper.active {
  display: block;
}

/* ==========노트북 반응형============= */
@media screen and (max-width: 1023px) {
  #wrap {
    margin: 11.87rem auto 7.5rem;
  }
  .textArea h2 {
    font-size: 2.75rem;
    margin-bottom: 3.75rem;
  }
  .textArea .title {
    font-size: 1.25rem;
  }

  .content li figure {
    width: 18.43rem;
    height: 9.37rem;
  }
  .content li:hover figure img {
    transform: scale(1);
  }
  .content li p {
    font-size: 1.37rem;
  }
  .content li:hover p::after {
    display: none;
  }
  #wrap .pageBtn {
    margin: 5rem auto 0;
  }

  /* 스와이퍼 */
  .scenerySwiper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .scenerySwiper .closeBtn {
    top: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    line-height: 3rem;
  }
  .scenerySwiper .closeBtn:hover {
    opacity: 0.5;
    transform: rotate(0deg);
  }
  .scenerySwiper .closeBtn img {
    width: 1rem;
  }
  .swiper-slide {
    position: relative;
    width: 100%; height: 100%;
    background: var(--black);
    }
  .swiper-slide figure {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
  }

  /* 스와이퍼 네비게이션 */
  .swiper-buttonNext,
  .swiper-buttonPrev {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    line-height: 3rem;
  }
  .swiper-buttonNext {
    right: 1.87rem;
  }
  .swiper-buttonPrev {
    right: 5.31rem;
  }
  .swiper-buttonNext:hover,
  .swiper-buttonPrev:hover,
  .closeBtn {
    opacity: 0.5;
  }

  .scenerySwiper {
    display: none; /* 기본은 숨김 */
    position: fixed;
    inset: 0;
    z-index: 9999;
  }
  .scenerySwiper.active {
    display: block;
  }
}

/* ==========태블릿 반응형============= */
@media screen and (max-width: 860px) {
  #wrap {
    margin: 11.87rem auto 7rem;
  }
  .textArea h2 {
    font-size: 3.12rem;
  }
  .textArea .title {
    font-size: 1.43rem;
  }
  .content {
  grid-template-columns: repeat(2, 1fr);
  gap: 3.75rem 1.5rem;
}
  .content li figure {
    width: 23.93rem;
    height: 12.12rem;
  }
  .content li p {
    font-size: 1.56rem;
    margin-bottom: 0.93rem;
  }

  /* 스와이퍼 */
  .scenerySwiper .closeBtn {
    width: 2.81rem;
    height: 2.81rem;
    font-size: 0.87rem;
    line-height: 2.81rem;
  }
  .scenerySwiper .closeBtn img {
    width: 0.87rem;
  }

  /* 스와이퍼 네비게이션 */
  .swiper-buttonNext,
  .swiper-buttonPrev {
    width: 2.81rem;
    height: 2.81rem;
    font-size: 0.87rem;
    line-height: 2.81rem;
  }
}
/* ==========모바일 반응형============= */
@media screen and (max-width: 540px) {
  #wrap {
    margin: 13.12rem auto 8.68rem;
  }
  .textArea h2 {
    font-size: 3.5rem;
  }
  .textArea .title {
    font-size: 1.56rem;
  }
  .content {
  grid-template-columns: repeat(1, 1fr);
  gap: 3.75rem 0;
}
  .content li figure {
    width: 30.31rem;
    height: 15.37rem;
  }
  .content li p {
    font-size: 1.93rem;
  }

  /* 스와이퍼 */
  .scenerySwiper .closeBtn {
    right: 1.87rem;
    width: 3.12rem;
    height: 3.12rem;
    line-height: 3.12rem;
  }
  .scenerySwiper .closeBtn img {
    width: 0.87rem;
  }

  /* 스와이퍼 네비게이션 */
  .swiper-buttonNext,
  .swiper-buttonPrev {
    width: 3.12rem;
    height: 3.12rem;
    line-height: 3.12rem;
  }

  #wrap .pageBtn {
  font-size: 1.43rem;
  font-weight: 500;
}
}