@charset "utf-8";

/* MAIN_TOP1_SWCF - 메인 비주얼 슬라이더 */
.MAIN_TOP1_SWCF {
  overflow: hidden;
  position: relative;  height: 100vh;
  background-color: #000;
}

.MAIN_TOP1_SWCF .contents-container {
  display: flex;
  align-items: center;
  justify-content: center;  height: 100vh;
}

.MAIN_TOP1_SWCF .contents-container.fullscreen {
  height: 100vh;
}

.MAIN_TOP1_SWCF .contents-container:not(.fullscreen) {
  height: 76rem;
}

.MAIN_TOP1_SWCF .slide-area {
  width: 100vw;
  height: 100%;
}

.MAIN_TOP1_SWCF .swiper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100%;
}

.MAIN_TOP1_SWCF .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 30px;
}

.MAIN_TOP1_SWCF .thumb {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* .MAIN_TOP1_SWCF .thumb::before - 오버레이 제거됨 */

.MAIN_TOP1_SWCF .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8 !important;
  filter: brightness(0.8) !important;
}

.MAIN_TOP1_SWCF .thumb .videoset {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.MAIN_TOP1_SWCF .desc {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max, 1560px);
  margin: 0 auto;
  padding: 0 0px;
  box-sizing: border-box;
}

.MAIN_TOP1_SWCF .desc strong {
  display: block;
  color: var(--white);
}

.MAIN_TOP1_SWCF .fixed-area {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20%;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max, 1560px);
  padding: 0 0px;
  box-sizing: border-box;
}

.MAIN_TOP1_SWCF .paging-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  padding-bottom: 0.4rem;
}

.MAIN_TOP1_SWCF .paging-item {
  width: 6rem;
}

.MAIN_TOP1_SWCF .paging-item .curr {
  display: block;
  opacity: 0;
  visibility: hidden;
  color: var(--white);
  font-weight: var(--fw-bold);
  transition: opacity 0.3s, visibility 0.3s;
}

.MAIN_TOP1_SWCF .paging-item.active .curr {
  opacity: 1;
  visibility: visible;
}

.MAIN_TOP1_SWCF .paging-item .bar {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 0.4rem;
  border-radius: 9rem;
  background: rgba(var(--white-rgb), 0.5);
}

.MAIN_TOP1_SWCF .paging-item .bar .progress {
  width: 0%;
  height: 100%;
  background: var(--white);
}

.MAIN_TOP1_SWCF .paging-item.active .progress.running {
  animation: MAIN_TOP1_SWCF-progress 5s linear forwards;
}

.MAIN_TOP1_SWCF .paging-item .bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--white);
}

.MAIN_TOP1_SWCF .paging-item.active .bar::before {
  animation: MAIN_TOP1_SWCF-progress 5s linear;
}

.MAIN_TOP1_SWCF .btn-wrap {
  display: flex !important;
  align-items: center;
  gap: 8px;  display: grid;
  place-items: center; /* 가로 + 세로 중앙 */   margin-bottom: -8px
}

.MAIN_TOP1_SWCF .btn-wrap button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  font-size: 16px;
  background: none !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: opacity 0.3s;
}

.MAIN_TOP1_SWCF .btn-wrap button:hover {
  opacity: 0.7;
}

.MAIN_TOP1_SWCF .swiper-progress {
  display: flex !important;
  align-items: center;
}

.MAIN_TOP1_SWCF .swiper-progress button {
  display: none !important;
}

.MAIN_TOP1_SWCF .swiper-progress button.active {
  display: flex !important;
}

/* 하단 컨트롤 버튼 아이콘 - CSS 방식 */
.MAIN_TOP1_SWCF .btn-wrap .btn-prev,
.MAIN_TOP1_SWCF .btn-wrap .btn-next,
.MAIN_TOP1_SWCF .swiper-progress .pause,
.MAIN_TOP1_SWCF .swiper-progress .play {
  position: relative;
}

/* 이전/다음 화살표 아이콘 */
.MAIN_TOP1_SWCF .btn-wrap .btn-prev::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 3px;
}

.MAIN_TOP1_SWCF .btn-wrap .btn-next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  margin-right: 3px;
}

/* 정지 아이콘 (두 개의 세로 막대) */
.MAIN_TOP1_SWCF .swiper-progress .pause::before,
.MAIN_TOP1_SWCF .swiper-progress .pause::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background: #fff;
}

.MAIN_TOP1_SWCF .swiper-progress .pause::before {
  left: 8px;
}

.MAIN_TOP1_SWCF .swiper-progress .pause::after {
  right: 8px;
}

/* 재생 아이콘 (삼각형) */
.MAIN_TOP1_SWCF .swiper-progress .play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

.MAIN_TOP1_SWCF .scroll {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.4rem;
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--white);
  font-weight: var(--fw-bold);
  z-index: 1;
  animation: MAIN_TOP1_SWCF-bounce 1.4s ease-in-out infinite;
}

.MAIN_TOP1_SWCF .scroll::before {
  font-size: 1rem;
}

@keyframes MAIN_TOP1_SWCF-progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes MAIN_TOP1_SWCF-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 0.8rem);
  }
}

/* 텍스트 슬라이드 애니메이션 */
.MAIN_TOP1_SWCF .swiper-slide .desc {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.MAIN_TOP1_SWCF .swiper-slide-active .desc {
  opacity: 1;
  transform: translateY(0);
}

.MAIN_TOP1_SWCF .swiper-slide .desc strong:nth-child(1) {
  transition-delay: 0.4s;
}

.MAIN_TOP1_SWCF .swiper-slide .desc strong:nth-child(2) {
  transition-delay: 0.5s;
}

.MAIN_TOP1_SWCF .swiper-slide .desc > div {
  transition-delay: 0.6s;
}

@media (max-width: 1200px) {
  .MAIN_TOP1_SWCF .slide-area {
    width: 100%;
  }

  .MAIN_TOP1_SWCF .swiper {
    margin-left: -4rem;
    width: calc(100% + 8rem);
  }
}

@media (max-width: 992px) {
  .MAIN_TOP1_SWCF .contents-container:not(.fullscreen) {
    height: 60rem;
  }

  .MAIN_TOP1_SWCF .swiper {
    margin-left: -1.6rem;
    width: calc(100% + 3.2rem);
  }

  .MAIN_TOP1_SWCF .swiper-slide,
  .MAIN_TOP1_SWCF .fixed-area {
    padding: 0 1.6rem;
  }

  .MAIN_TOP1_SWCF .fixed-area {
    gap: 0.8rem;
  }

  .MAIN_TOP1_SWCF .paging-wrap {
    gap: 0.4rem;
    padding-bottom: 0.2rem;
  }

  .MAIN_TOP1_SWCF .paging-item {
    width: 3.2rem;
  }

  .MAIN_TOP1_SWCF .paging-item .bar {
    height: 0.4rem;
  }

  .MAIN_TOP1_SWCF .btn-wrap button {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    line-height: 1rem;
  }

  .MAIN_TOP1_SWCF .scroll {
    bottom: 8.6rem;
  }
}

@media (max-width: 767px) {
  .MAIN_TOP1_SWCF .swiper-slide,
  .MAIN_TOP1_SWCF .fixed-area,
  .MAIN_TOP1_SWCF .desc {
    padding: 0 20px;
  }

  .MAIN_TOP1_SWCF .swiper {
    margin-left: -20px;
    width: calc(100% + 40px);
  }
}

/* 관리자 뱃지 (메인 스와이퍼 전용) - 상세 가이드: README_메인스와이퍼_설정가이드.txt 참고 */
.MAIN_TOP1_SWCF > .grid_layout_badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
}

.MAIN_TOP1_SWCF:hover > .grid_layout_badge {
  opacity: 1;
}

.MAIN_TOP1_SWCF > .grid_layout_badge:hover {
  transform: translate(-50%, -50%) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 관리자 버튼 영역 (기존 wg_detail_btn 호환) */
.MAIN_TOP1_SWCF .widget_btn_box {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
}

/* 인라인 편집 hover 효과 완전 무시 - 상세 가이드: README_메인스와이퍼_설정가이드.txt 참고 */

/* 기본 상태 - transition 제거 */
.MAIN_TOP1_SWCF .thumb.wg_edit_img,
.MAIN_TOP1_SWCF .wg_edit_img,
.MAIN_TOP1_SWCF .wg_edit_txt,
.MAIN_TOP1_SWCF .thumb.wg_edit_img *,
.MAIN_TOP1_SWCF .wg_edit_img *,
.MAIN_TOP1_SWCF .wg_edit_txt * {
  transition: none !important;
}

/* 이미지 hover 효과 무시 */
.MAIN_TOP1_SWCF .thumb.wg_edit_img,
.MAIN_TOP1_SWCF .thumb.wg_edit_img:hover,
.MAIN_TOP1_SWCF .wg_edit_img,
.MAIN_TOP1_SWCF .wg_edit_img:hover {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  z-index: auto !important;
}

.MAIN_TOP1_SWCF .thumb.wg_edit_img::before,
.MAIN_TOP1_SWCF .thumb.wg_edit_img::after,
.MAIN_TOP1_SWCF .thumb.wg_edit_img:hover::before,
.MAIN_TOP1_SWCF .thumb.wg_edit_img:hover::after,
.MAIN_TOP1_SWCF .wg_edit_img::before,
.MAIN_TOP1_SWCF .wg_edit_img::after,
.MAIN_TOP1_SWCF .wg_edit_img:hover::before,
.MAIN_TOP1_SWCF .wg_edit_img:hover::after {
  background-color: transparent !important;
  background: transparent !important;
  opacity: 0 !important;
  display: none !important;
}

.MAIN_TOP1_SWCF .thumb.wg_edit_img img,
.MAIN_TOP1_SWCF .thumb.wg_edit_img:hover img,
.MAIN_TOP1_SWCF .wg_edit_img img,
.MAIN_TOP1_SWCF .wg_edit_img:hover img,
.MAIN_TOP1_SWCF .wg_edit_img picture,
.MAIN_TOP1_SWCF .wg_edit_img:hover picture,
.MAIN_TOP1_SWCF .wg_edit_img source,
.MAIN_TOP1_SWCF .wg_edit_img:hover source {
  opacity: 0.8 !important;
  filter: brightness(0.8) !important;
}

/* 텍스트 hover 효과 무시 - 사용자 지정 색상 클래스 유지 */
.MAIN_TOP1_SWCF .wg_edit_txt,
.MAIN_TOP1_SWCF .wg_edit_txt:hover {
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
}

.MAIN_TOP1_SWCF .wg_edit_txt *,
.MAIN_TOP1_SWCF .wg_edit_txt:hover * {
  opacity: 1 !important;
  visibility: visible !important;
}
