/* ========================================
   sw2 - 위젯 스와이퍼 v2 (SHOP_SW1급 설정)
   ======================================== */

/* === 관리자 뱃지 === */
.sw2 .sw2_badge {
  position: absolute;
  top: -8px;
  left: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sw2.admin_div:hover .sw2_badge { opacity: 1; }

/* === 배경이미지 === */
.sw2 .sw2_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sw2 .sw2_bg img,
.sw2 .sw2_bg video,
.sw2 .sw2_bg lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sw2 .sw2_bg_pc { position: absolute; inset: 0; }
.sw2 .sw2_bg_mo { position: absolute; inset: 0; display: none; }
@media (max-width: 767px) {
  .sw2 .sw2_bg:has(.sw2_bg_mo) .sw2_bg_pc { display: none; }
  .sw2 .sw2_bg_mo { display: block; }
}
.sw2 .sw2_bg_fixed {
  position: fixed;
  inset: 0;
}
/* 배경이미지가 있을 때 콘텐츠를 위로 (z-index) */
.sw2:has(.sw2_bg) {
  position: relative;
  z-index: 0;
}
.sw2:has(.sw2_bg_fixed) {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}
.sw2:has(.sw2_bg) .sw_bbs1_header,
.sw2:has(.sw2_bg) .sw2_swiper_wrap {
  position: relative;
  z-index: 1;
}

/* === 헤더 (제목 + 더보기) === */
.sw2 .sw_bbs1_header {
  position: relative;
  width: 100%;
  float: left;
  margin-bottom: clamp(16px, calc(1.56vw + 11px), 30px);
}

.sw2 .sw_bbs1_titles {
  width: 100%;
  float: left;
}

/* 더보기 버튼 (기본 위치: 우측 하단) */
.sw2 .sw_bbs1_more {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, calc(0.47vw + 6.5px), 14px);
  font-size: clamp(14px, calc(0.31vw + 13px), 18px);
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.sw2 .sw_bbs1_more:hover {
  color: var(--text-color, #333);
}

.sw2 .sw_more_txt {
  font-size: inherit;
  font-weight: inherit;
}

.sw2 .sw_more_circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, calc(1.09vw + 28.5px), 46px);
  height: clamp(32px, calc(1.09vw + 28.5px), 46px);
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: clamp(16px, calc(0.47vw + 14.5px), 22px);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.sw2 .sw_bbs1_more:hover .sw_more_circle {
  transform: translateX(2px);
}

/* hymore_wrap (MORE 스타일 사용 시) - header 기준 */
.sw2 .sw_bbs1_header .hymore_wrap {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* --- 더보기 위치 프리셋 - sw_bbs1_header 기준 --- */
/* 제목 밑 */
.sw2 .sw_bbs1_header[data-more-pos="below"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[data-more-pos="below"] .hymore_wrap {
  position: static;
  margin-top: clamp(8px, calc(0.47vw + 6.5px), 14px);
}

/* 우측 상단 */
.sw2 .sw_bbs1_header[data-more-pos="right_top"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[data-more-pos="right_top"] .hymore_wrap {
  top: 0;
  bottom: auto;
}

/* 우측 중앙 */
.sw2 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[data-more-pos="right_center"] .hymore_wrap {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.sw2 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more:hover .sw_more_circle {
  transform: translateX(2px);
}

/* 우측 하단 */
.sw2 .sw_bbs1_header[data-more-pos="right_bottom"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[data-more-pos="right_bottom"] .hymore_wrap {
  right: 0;
  bottom: 0;
}

/* 커스텀 오프셋 PC - header 기준 */
.sw2 .sw_bbs1_header[style*="--mt"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[style*="--mt"] .hymore_wrap {
  top: var(--mt, auto);
}
.sw2 .sw_bbs1_header[style*="--mr"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[style*="--mr"] .hymore_wrap {
  right: var(--mr, 0);
}
.sw2 .sw_bbs1_header[style*="--mb"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[style*="--mb"] .hymore_wrap {
  bottom: var(--mb, auto);
}
.sw2 .sw_bbs1_header[style*="--ml"] .sw_bbs1_more,
.sw2 .sw_bbs1_header[style*="--ml"] .hymore_wrap {
  left: var(--ml, auto);
}

/* === 데코 라인 === */
.sw2 .sw_bbs1_header[data-deco-line]::after {
  content: '';
  position: absolute;
  left: var(--dl-left, 30%);
  right: var(--dl-right, 70px);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  height: var(--dl-h, 1px);
  background: var(--dl-color, #ddd);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* === 데코 도트 === */
.sw2 .sw_bbs1_header[data-deco-dot]::before {
  content: '';
  position: absolute;
  width: var(--dl-dot-size, 4px);
  height: var(--dl-dot-size, 4px);
  border-radius: 50%;
  background: var(--dl-dot-color, #222);
  left: var(--dl-left, 30%);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  transform: translate(var(--dl-dot-x, -6px), var(--dl-dot-y, 0px));
  z-index: 2;
  pointer-events: none;
}
/* === 데코 라인 모바일 숨김 === */
@media (max-width: 768px) {
  .sw2 .sw_bbs1_header[data-deco-line-mo-hide]::after,
  .sw2 .sw_bbs1_header[data-deco-line-mo-hide]::before { display: none !important; }
}

/* === 스와이퍼 래퍼 === */
.sw2 .sw2_swiper_wrap {
  position: relative;
  float: left;
  width: 100%;
}

/* === 카드 (wg_box_in) === */
.sw2 .wg_box_in {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* === 이미지 영역 === */
.sw2 .wg_img_box {
  position: relative;
  overflow: hidden;
  border-radius: clamp(8px, calc(0.63vw + 6px), 16px);
  background: #f5f5f5;
}
.sw2 .wg_img1 {
  width: 100%;
  aspect-ratio: var(--thumb-ratio, 1/1);
  overflow: hidden;
}
.sw2 .wg_img1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* === 호버 효과 (위젯 모드) === */
.sw2.hover-scale .wg_box_in:hover .wg_img1 img {
  transform: scale(1.06);
}
.sw2.hover-shadow .wg_box_in:hover .wg_img_box {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.sw2.hover-both .wg_box_in:hover .wg_img1 img {
  transform: scale(1.06);
}
.sw2.hover-both .wg_box_in:hover .wg_img_box {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* === 호버 효과 (게시판 모드 - cn2_card) === */
.sw2.hover-scale .cn2_card:hover .cn2_thumb img {
  transform: scale(1.06);
}
.sw2.hover-shadow .cn2_card:hover .cn2_item {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.sw2.hover-both .cn2_card:hover .cn2_thumb img {
  transform: scale(1.06);
}
.sw2.hover-both .cn2_card:hover .cn2_item {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ========================================
   엑티브 슬라이드 효과
   ======================================== */
.sw2.has-active-effect .content-swiper {
  overflow: visible;
}
.sw2.has-active-effect .layout-inner .content-swiper {
  overflow: visible;
}
.sw2.has-active-effect .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}
.sw2.has-active-effect .swiper-slide:not(.swiper-slide-active) {
  transform: scale(var(--inactive-scale, 1));
  opacity: var(--inactive-opacity, 1);
  filter: var(--inactive-filter, none);
}
.sw2.has-active-effect .swiper-slide:not(.swiper-slide-active):hover {
  opacity: 1;
  filter: none;
}
.sw2.has-active-effect .swiper-slide-active {
  transform: scale(var(--active-scale, 1));
  z-index: 2;
}

/* ========================================
   텍스트 정보 (일반 모드)
   ======================================== */
.sw2 .wg_txt_box {
  padding: clamp(8px, calc(0.63vw + 6px), 14px) 2px 0;
  display: flex;
  flex-direction: column;
  float: left;
  width: 100%;
}
.sw2 .wg_txt1 {
  font-size: clamp(13px, calc(0.16vw + 12.5px), 15px);
  font-weight: 500;
  color: #333;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.sw2 .wg_txt2 {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ========================================
   텍스트 오버레이 모드
   ======================================== */
.sw2 .sw2_overlay_info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--overlay-padding, 50px 14px 14px);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
}
.sw2 .sw2_overlay_info a,
.sw2 .sw2_overlay_info button {
  pointer-events: auto;
}
.sw2 .sw2_overlay_info .wg_txt1 {
  color: #fff;
  -webkit-line-clamp: 1;
  margin-bottom: 4px;
  font-size: var(--overlay-name-size, clamp(13px, calc(0.16vw + 12.5px), 15px));
}
.sw2 .sw2_overlay_info .wg_txt2 {
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  font-size: var(--overlay-desc-size, 12px);
}

/* --- 오버레이 텍스트 정렬 --- */
.sw2.overlay-align-left .sw2_overlay_info { align-items: flex-start; text-align: left; }
.sw2.overlay-align-right .sw2_overlay_info { align-items: flex-end; text-align: right; }
.sw2.overlay-align-center .sw2_overlay_info {
  top: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.35);
  padding: var(--overlay-padding, 14px);
}

/* 호버시만 오버레이 */
.sw2 .txt-hover .sw2_overlay_info {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sw2 .txt-hover .wg_box_in:hover .sw2_overlay_info {
  opacity: 1;
}
/* 항상 오버레이 */
.sw2 .txt-always .sw2_overlay_info {
  opacity: 1;
}

/* ========================================
   페이징 공통
   ======================================== */
.sw2 .paging-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--sw-nav-gap, clamp(16px, calc(1.09vw + 12.5px), 30px));
  float: left;
  width: 100%;
}
.sw2 .btn-wrap {
  display: flex;
  gap: var(--sw-arrow-gap, 8px);
  flex-shrink: 0;
}
.sw2 .btn-prev,
.sw2 .btn-next {
  width: var(--sw-arrow-size, 36px);
  height: var(--sw-arrow-size, 36px);
  border-radius: var(--sw-arrow-radius, 50%);
  border: 1px solid var(--sw-arrow-border-color, #ddd);
  background: var(--sw-arrow-bg, #fff);
  color: var(--sw-arrow-color, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--sw-arrow-icon-size, 18px);
  transition: all 0.2s;
  flex-shrink: 0;
}
.sw2 .btn-prev i,
.sw2 .btn-next i {
  line-height: 1;
  display: block;
}
.sw2 .btn-prev i { transform: translateX(-1px); }
.sw2 .btn-next i { transform: translateX(1px); }
.sw2 .btn-prev:hover,
.sw2 .btn-next:hover {
  border-color: var(--sw-arrow-border-color-hover, #999);
  color: var(--sw-arrow-color-hover, #222);
  background: var(--sw-arrow-bg-hover, var(--sw-arrow-bg, #fff));
}
.sw2 .swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- ◁▷ + 바 (arrows_bar) --- */
.sw2 .paging-arrows_bar .swiper-pagination {
  position: relative;
  flex: 1;
  height: 3px;
  background: #eee;
  border-radius: 2px;
}
.sw2 .paging-arrows_bar .swiper-pagination .swiper-pagination-progressbar-fill {
  background: var(--sw-nav-active-color, #222) !important;
  border-radius: 2px;
}

/* --- 도트 공통 (bullets) --- */
.sw2 .paging-arrows_dots .swiper-pagination,
.sw2 .paging-dots_only .swiper-pagination,
.sw2 .paging-arrows_dots_inline .swiper-pagination {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
  background: transparent;
  width: auto;
}
.sw2 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
}
.sw2 .swiper-pagination-bullet-active {
  background: var(--sw-nav-active-color, #222);
  width: 24px;
  border-radius: 4px;
}

/* --- ◁▷ + 도트 (arrows_dots) --- */
.sw2 .paging-arrows_dots .swiper-pagination {
  flex: 1;
}

/* --- 도트만 (dots_only) --- */
.sw2 .paging-dots_only .swiper-pagination {
  flex: 0 1 auto;
}
.sw2 .paging-dots_only.dots-center { justify-content: center; }
.sw2 .paging-dots_only.dots-left { justify-content: flex-start; }
.sw2 .paging-dots_only.dots-right { justify-content: flex-end; }

/* --- 화살표만 (arrows_only) --- */
.sw2 .paging-arrows_only {
  justify-content: flex-start;
}

/* --- 바만 (bar_only) --- */
.sw2 .paging-bar_only .swiper-pagination {
  position: relative;
  flex: 1;
  height: 3px;
  background: #eee;
  border-radius: 2px;
}
.sw2 .paging-bar_only .swiper-pagination .swiper-pagination-progressbar-fill {
  background: var(--sw-nav-active-color, #222) !important;
  border-radius: 2px;
}

/* --- 페이징 너비: inner 100% --- */
.sw2 .paging-wrap.paging-w-inner {
  width: 100%;
}

/* --- 페이징 너비: 화면 100% (100vw breakout) --- */
.sw2 .paging-wrap.paging-w-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: clamp(16px, calc(1.56vw + 11px), 36px);
  padding-right: clamp(16px, calc(1.56vw + 11px), 36px);
  box-sizing: border-box;
}

/* --- ◁ · · · ▷ (arrows_dots_inline) --- */
.sw2 .paging-arrows_dots_inline {
  justify-content: center;
  gap: 16px;
}
.sw2 .paging-arrows_dots_inline .swiper-pagination {
  flex: 0 1 auto;
}
.sw2 .paging-arrows_dots_inline .btn-prev,
.sw2 .paging-arrows_dots_inline .btn-next {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

/* === 화살표 바깥쪽 모드 === */
.sw2 .arrows-outer {
  --arrow-size: var(--sw-arrow-size, 44px);
  --arrow-gap: 12px;
  --arrow-offset: calc(var(--arrow-size) + var(--arrow-gap));
}
.sw2:has(.arrows-outer) .contentContainer { overflow: visible; }
.sw2 .arrows-outer .btn-wrap {
  position: absolute;
  top: 0;
  left: calc(var(--arrow-offset) * -1);
  width: calc(100% + var(--arrow-offset) * 2);
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 5;
}
.sw2 .arrows-outer .btn-prev,
.sw2 .arrows-outer .btn-next {
  position: absolute;
  width: var(--arrow-size);
  height: var(--arrow-size);
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sw2 .arrows-outer .btn-prev { left: 0; }
.sw2 .arrows-outer .btn-next { right: 0; }
.sw2 .arrows-outer.arrows-vcenter .btn-prev,
.sw2 .arrows-outer.arrows-vcenter .btn-next {
  top: 50%;
  transform: translateY(-50%);
}
.sw2 .arrows-outer.arrows-vtop .btn-prev,
.sw2 .arrows-outer.arrows-vtop .btn-next {
  top: 0;
}
.sw2 .arrows-outer .paging-wrap {
  position: static;
  justify-content: center;
}
.sw2 .arrows-outer .paging-arrows_bar .swiper-pagination {
  max-width: 200px;
  margin: 0 auto;
}

/* ========================================
   슬라이드 레이아웃 모드
   ======================================== */
/* 모든 모드에서 가로 스크롤 방지 (clip은 스크롤 컨텍스트 안 만듦) */
.sw2 {
  overflow-x: clip;
}
/* inner: overflow hidden */
.sw2 .layout-inner .content-swiper {
  overflow: hidden;
}
.sw2 .layout-right {
  overflow: visible;
}
.sw2 .layout-right .content-swiper {
  overflow: visible;
  width: calc(100vw - var(--sw-left, 0px));
  max-width: none;
}

/* === Swiper 초기화 전 FOUC 방지 === */
.sw2 .content-swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.sw2 .content-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: var(--sw-gap, 20px);
}
.sw2 .content-swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
  width: calc((100% - var(--sw-gap, 20px) * (var(--slides-pc, 4) - 1)) / var(--slides-pc, 4));
}
@media screen and (max-width: 1023px) {
  .sw2 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 20px), 20px) * (var(--slides-tablet, 3) - 1)) / var(--slides-tablet, 3));
  }
}
@media screen and (max-width: 767px) {
  .sw2 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 15px), 15px) * (var(--slides-mo, 2) - 1)) / var(--slides-mo, 2));
  }
}

/* === 빈 상태 === */
.sw2 .empty_li {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}

/* ========================================
   ★ 라벨 숨기기 (hide-label)
   ======================================== */
.sw2.hide-label .cn2_label,
.sw2.hide-label .cardset_label,
.sw2.hide-label .card_label,
.sw2.hide-label [class*="_label"] {
  display: none !important;
}

/* ========================================
   ★ 탭 UI
   ======================================== */
.sw2 .sw2_tab_area {
  width: 100%;
  float: left;
}

.sw2 .sw2_tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  float: left;
  margin-bottom: clamp(16px, calc(1.09vw + 12.5px), 24px);
}

.sw2 .sw2_tab {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.sw2 .sw2_tab:hover {
  border-color: #999;
  color: #333;
}

.sw2 .sw2_tab.on {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* 라벨컬러가 있는 탭 (has-color) */
.sw2 .sw2_tab.has-color.on {
  background: var(--tab-color, #222);
  border-color: var(--tab-color, #222);
}

/* 탭 패널 */
.sw2 .sw2_panel {
  width: 100%;
  float: left;
}

.sw2 .sw2_panel[hidden] {
  display: none;
}

/* 로딩 스피너 */
.sw2 .lazy-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.sw2 .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #999;
  border-radius: 50%;
  animation: sw2_spin 0.7s linear infinite;
}

@keyframes sw2_spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   반응형
   ======================================== */
@media screen and (max-width: 768px) {
  /* 모바일 헤더/더보기 */
  .sw2 .sw_bbs1_header {
    margin-bottom: 14px;
  }
  .sw2 .sw_bbs1_more {
    font-size: 13px;
    gap: 6px;
  }
  .sw2 .sw_more_circle {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* 모바일 더보기 위치 프리셋 (data-more-pos-mo) - sw_bbs1_header 기준 */
  .sw2 .sw_bbs1_header[data-more-pos-mo="below"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[data-more-pos-mo="below"] .hymore_wrap {
    position: static;
    margin-top: 8px;
  }
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_top"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_top"] .hymore_wrap {
    top: 0; bottom: auto;
  }
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_center"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_center"] .hymore_wrap {
    top: 50%; bottom: auto; transform: translateY(-50%);
  }
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .hymore_wrap {
    right: 0; bottom: 0; top: auto;
  }

  /* 모바일 커스텀 오프셋 */
  .sw2 .sw_bbs1_header[style*="--mt-mo"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[style*="--mt-mo"] .hymore_wrap {
    top: var(--mt-mo) !important;
  }
  .sw2 .sw_bbs1_header[style*="--mr-mo"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[style*="--mr-mo"] .hymore_wrap {
    right: var(--mr-mo) !important;
  }
  .sw2 .sw_bbs1_header[style*="--mb-mo"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[style*="--mb-mo"] .hymore_wrap {
    bottom: var(--mb-mo) !important;
  }
  .sw2 .sw_bbs1_header[style*="--ml-mo"] .sw_bbs1_more,
  .sw2 .sw_bbs1_header[style*="--ml-mo"] .hymore_wrap {
    left: var(--ml-mo) !important;
  }

  /* 모바일 탭 */
  .sw2 .sw2_tabs {
    gap: 4px;
    margin-bottom: 14px;
  }
  .sw2 .sw2_tab {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 모바일: 바깥 화살표 → inner로 강제 전환 */
  .sw2 .arrows-outer .btn-wrap {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }
  .sw2 .arrows-outer .btn-prev,
  .sw2 .arrows-outer .btn-next {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
    box-shadow: none;
  }
  /* 모바일: 페이징 inner 100% */
  .sw2 .paging-wrap {
    width: 100%;
    gap: 10px;
  }
  .sw2 .paging-arrows_bar .swiper-pagination {
    flex: 1;
  }
}

@media screen and (max-width: 480px) {
  .sw2 .wg_txt1 {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .sw2 .sw2_overlay_info {
    padding: var(--overlay-padding, 30px 10px 10px);
  }
  .sw2.overlay-align-center .sw2_overlay_info {
    padding: var(--overlay-padding, 10px);
  }
  .sw2 .sw2_overlay_info .wg_txt1 {
    font-size: var(--overlay-name-size, 12px);
  }
}

/* ========================================
   ★ 링크 버튼 (link_mode=btn)
   ======================================== */
.sw2 .sw2_simple_btn {
  position: absolute;
  width: var(--sw2-btn-size, 36px);
  height: var(--sw2-btn-size, 36px);
  border-radius: 50%;
  background: var(--sw2-btn-color, #e0e3ea);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  text-decoration: none;
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.sw2 .sw2_simple_btn i {
  color: var(--sw2-btn-icon-color, var(--primary, #253e90));
  font-size: var(--sw2-btn-icon-size, 18px);
  line-height: 1;
  transition: color 0.3s;
}
.sw2 .swiper-slide:hover .sw2_simple_btn {
  width: var(--sw2-btn-hover-size, var(--sw2-btn-size, 36px));
  height: var(--sw2-btn-hover-size, var(--sw2-btn-size, 36px));
  background: var(--sw2-btn-hover-color, var(--sw2-btn-color, #e0e3ea));
}
.sw2 .swiper-slide:hover .sw2_simple_btn i {
  color: var(--sw2-btn-hover-icon-color, var(--sw2-btn-icon-color, var(--primary, #253e90)));
}
/* 프리셋 위치 */
.sw2[data-btn-pos="right_bottom"] .sw2_simple_btn { bottom: 12px; right: 12px; }
.sw2[data-btn-pos="right_top"] .sw2_simple_btn { top: 12px; right: 12px; }
.sw2[data-btn-pos="left_bottom"] .sw2_simple_btn { bottom: 12px; left: 12px; }
.sw2[data-btn-pos="custom"] .sw2_simple_btn {
  top: var(--sw2-btn-top, auto);
  right: var(--sw2-btn-right, auto);
  bottom: var(--sw2-btn-bottom, auto);
  left: var(--sw2-btn-left, auto);
}
