@charset "utf-8";

/* ============================================================
   maintopover2_right - 메인탑 오버레이 우측 스와이퍼
   - 라운드: 20px 80px 20px 20px
   - 패럴랙스 효과
   - 재생/멈춤 + 도트 페이징 (하단)
   - 배경이미지 (slide-img) + 오버레이 이미지 (mv-img)
   ============================================================ */

/* ── 최외곽 ── */
.maintopover2_right {
  width: 100%;
  float: left;
  position: relative;
  overflow: hidden;
  height: var(--main-top-goarea-h, 400px);
}

/* ── wg_box (카드 컨테이너) ── */
.maintopover2_right .wg_box {
  width: 100%;
  height: 100%;
  float: left;
  background-color: #fff;
  border-radius: 20px 80px 20px 20px;
  overflow: hidden;
}

/* ── 스와이퍼 ── */
.maintopover2_right .contents-swiper,
.maintopover2_right .swiper-wrapper {
  height: 100%;
  position: relative;
}

.maintopover2_right .swiper-slide {
  overflow: hidden;
  position: relative;
}

/* ── 배경 이미지 (slide-img) ── */
.maintopover2_right .slide-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
}

.maintopover2_right .slide-img .wg_img1 {
  width: 100%;
  height: 100%;
}

.maintopover2_right .slide-img .wg_img1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 오버레이 이미지 (mv-img) ── */
.maintopover2_right .mv-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 108%;
  height: var(--main-top-goarea-h, 100%);
  float: left;
  overflow: hidden;
  z-index: 1 !important;
  pointer-events: none;
}

.maintopover2_right .mv-img > video,
.maintopover2_right .mv-img > div > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
}

/* ── 텍스트 영역 ── */
.maintopover2_right .textset {
  width: 100%;
  height: 100%;
  padding: clamp(20px, 3.125vw, 40px);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99 !important;
}

.maintopover2_right .textset .wg_tx1 {
  width: 100%;
  float: left;
  font-size: calc(var(--tx-sm-size, 14px) * 0.9);
  color: #333;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.maintopover2_right .textset .wg_tx2 {
  width: 100%;
  float: left;
  font-size: calc(var(--tit-mds-size, 24px) * 1.0);
  color: #333;
  font-weight: 700;
  margin-bottom: 5px !important;
  line-height: 130%;
  position: relative;
  z-index: 2;
}

/* ── 바로가기 버튼 ── */
.maintopover2_right .textset .wg_btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: calc(var(--tx-sm-size, 14px) * 0.9);
  color: #333;
  font-weight: 700;
  position: relative;
  text-decoration: none;
  margin-bottom: 0 !important;
  clear: both;
}

.maintopover2_right .textset .wg_btn span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: calc(var(--tx-sm-size, 14px) * 0.9);
  color: #333;
  font-weight: 700;
}

.maintopover2_right .textset .wg_btn span:before {
  content: "\eb6e";
  font-family: unicons-line;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  order: 1;
}

/* ── 컨트롤 영역 ── */
.maintopover2_right .control-wrap {
  position: absolute;
  left: 0;
  bottom: 2rem;
  z-index: 10;
  width: 100%;
  height: 2.4rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.maintopover2_right .control-bottom {
  width: 100%;
  float: left;
  position: absolute;
  top: 0;
  left: 40px;
  display: flex;
  justify-content: flex-start;
}

/* ── 페이지네이션 도트 ── */
.maintopover2_right .swiper-pagination {
  position: static;
  margin-right: 1rem;
  text-align: left;
  transform: translateX(-0.2rem);
  float: left;
  width: auto !important;
}

.maintopover2_right .swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
}

.maintopover2_right .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  opacity: 1;
  position: relative;
  margin: 0 1rem;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background-color: #ccc;
}

.maintopover2_right .swiper-pagination-bullet::after {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: clamp(20px, 2.344vw, 30px);
  height: 15px;
  margin-left: -10px;
  border-radius: 1.2rem;
  transform: scale(0);
  background-color: #ee5f8b;
  transition: transform 0.2s;
}

.maintopover2_right .swiper-pagination-bullet-active::after {
  transform: scale(1);
  width: 30px;
  height: 15px;
  margin-left: -10px;
  border-radius: 1.2rem;
}

/* ── 재생/멈춤 버튼 ── */
.maintopover2_right .swiper-button-play,
.maintopover2_right .swiper-button-pause {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  margin-top: -3px;
}

.maintopover2_right .swiper-button-play i,
.maintopover2_right .swiper-button-pause i {
  font-size: 20px;
  color: #fff;
}

.maintopover2_right .swiper-button-play img,
.maintopover2_right .swiper-button-pause img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
  filter: brightness(0) invert(1);
}

/* ── 빈 리스트 ── */
.maintopover2_right .empty_li {
  text-align: center;
  color: #999;
  padding: 50px 20px;
}

/* ── 터치 이벤트 ── */
.maintopover2_right .contents-swiper,
.maintopover2_right .contents-swiper .swiper-wrapper {
  touch-action: pan-y !important;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

.maintopover2_right .contents-swiper .swiper-slide img,
.maintopover2_right .contents-swiper .swiper-slide video {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maintopover2_right .mv-img,
.maintopover2_right .mv-mask,
.maintopover2_right .mv-overlay {
  pointer-events: none !important;
}

/* ============================================================
   반응형
   ============================================================ */

/* 태블릿 */
@media all and (max-width: 1280px) and (min-width: 768px) {
  .maintopover2_right {
    height: var(--main-top-goarea-h, 400px);
  }
  .maintopover2_right .wg_box {
    border-radius: 20px 80px 20px 20px;
  }
  .maintopover2_right .mv-img {
    position: absolute;
    top: 30%;
    left: 0;
    width: 108%;
    height: 280px;
  }
  .maintopover2_right .textset .wg_tx2 {
    width: 70%;
    font-size: calc(var(--tit-mds-size, 24px) * 0.7);
    margin-bottom: 10px;
  }
}

/* 모바일 */
@media only all and (max-width: 767px) {
  .maintopover2_right {
    height: 230px;
  }
  .maintopover2_right .wg_box {
    border-radius: 20px 80px 20px 20px;
    box-shadow: 3px 3px 30px rgba(0,0,0,0.1);
  }
  .maintopover2_right .mv-img {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 90%;
    height: 280px;
  }
  .maintopover2_right .textset {
    padding: 20px 30px;
  }
  .maintopover2_right .textset .wg_tx2 {
    font-size: calc(var(--tit-mds-size, 24px) * 1.2);
    font-weight: 800;
    padding-right: 30%;
  }
  .maintopover2_right .textset .wg_btn {
    width: auto;
    font-size: calc(var(--tx-sm-size, 14px) * 1);
  }
  .maintopover2_right .control-wrap {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: auto;
    height: 10px;
  }
  .maintopover2_right .control-bottom {
    width: auto;
    left: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
