@charset "utf-8";

/* TOTAL_SW2 - 이미지+영상 썸네일 스와이퍼 */

/* 외곽 컨테이너 */
.TOTAL_SW2_outer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, calc(0.78vw + 7.5px), 15px);
}

/* 이미지 영역 */
.TOTAL_SW2_wrap {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    order: 1;
}

.TOTAL_SW2_swiper {
    width: 100%;
    padding: 0;
    margin: 0;
}

.TOTAL_SW2_swiper .swiper-wrapper {
    padding: 0;
    margin: 0;
}

.TOTAL_SW2_swiper .swiper-slide {
    position: relative;
    width: 100%;
    aspect-ratio: var(--thumb-ratio, 1 / 1.2);
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

/* 슬라이드 링크 */
.TOTAL_SW2_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

/* 배경 이미지 */
.TOTAL_SW2_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px 50px 20px 50px;
    overflow: hidden;
}

.TOTAL_SW2_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

/* ================================================
   컨트롤 영역 (CSS 변수로 위치/배치/표시 제어)
   --sw-ctrl-order: 0(상단) / 2(하단)
   --sw-ctrl-justify: flex-end(우측) / space-between(양쪽)
   --sw-prev-order: 0(기본) / -1(spread)
   --sw-dots-display: flex / none
   --sw-arrows-display: flex / none
   --sw-arrow-size, --sw-arrow-color, --sw-arrow-radius
   --sw-dot-size, --sw-dot-color
   --sw-ctrl-top, --sw-ctrl-right (절대위치 모드)
   ================================================ */
.TOTAL_SW2_controls {
    margin-top: 5px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: var(--sw-ctrl-justify, flex-end);
    gap: 10px;
    min-height: var(--sw-arrow-size, 48px);
    order: var(--sw-ctrl-order, 0);
}

/* 네비게이션 화살표 */
.TOTAL_SW2_prev,
.TOTAL_SW2_next {
    width: var(--sw-arrow-size, 48px);
    height: var(--sw-arrow-size, 48px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border-radius: var(--sw-arrow-radius, 0);
    background: var(--sw-arrow-bg, transparent);
    padding: var(--sw-arrow-padding, 0);
    box-sizing: content-box;
}

/* 화살표 그룹 */
.TOTAL_SW2_arrows {
    display: var(--sw-arrows-display, flex);
    align-items: center;
    gap: 4px;
    order: var(--sw-prev-order, 0);
}

.TOTAL_SW2_prev:hover,
.TOTAL_SW2_next:hover {
    opacity: 0.6;
}

.TOTAL_SW2_prev:after,
.TOTAL_SW2_next:after {
    font-size: calc(var(--sw-arrow-size, 48px) * 0.83);
    color: var(--sw-arrow-color, #555);
    font-weight: bold;
    font-family: unicons-line;
}

.TOTAL_SW2_prev:after {
    content: "\ec49";
}

.TOTAL_SW2_next:after {
    content: "\eb9f";
}

/* 페이지네이션 dots */
.TOTAL_SW2_pagination {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto !important;
    height: var(--sw-arrow-size, 48px);
    display: var(--sw-dots-display, flex);
    align-items: center;
    gap: 8px;
}

.TOTAL_SW2_pagination .swiper-pagination-bullet {
    width: var(--sw-dot-size, 10px);
    height: var(--sw-dot-size, 10px);
    background: #ddd;
    opacity: 1;
    margin: 0 !important;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.TOTAL_SW2_pagination .swiper-pagination-bullet-active {
    background: var(--sw-dot-color, var(--main-color, #333));
}

/* ================================================
   페이징바(progressbar) 모드 - 비절대위치
   화살표/도트 제외한 나머지 공간을 채움
   ================================================ */
.TOTAL_SW2_pagination.swiper-pagination-progressbar {
    position: relative !important;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto !important;
    flex: 1 1 0% !important;
    min-width: 40px;
    height: var(--sw-paging-height, 4px);
    border-radius: 2px;
    overflow: hidden;
    background: var(--sw-paging-bg, #e5e7eb);
    align-self: center;
}
.TOTAL_SW2_pagination .swiper-pagination-progressbar-fill {
    background: var(--sw-paging-color, var(--sw-dot-color, var(--main-color, #333)));
    border-radius: 2px;
}

/* 빈 상태 */
.TOTAL_SW2_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    text-align: center;
    color: #fff;
    background: var(--item-color, #1976d2);
}

.TOTAL_SW2_empty_title {
    font-size: clamp(16px, calc(0.63vw + 14px), 20px);
    font-weight: 700;
    margin-bottom: 8px;
}

.TOTAL_SW2_empty_desc {
    font-size: clamp(12px, calc(0.23vw + 11.25px), 14px);
    opacity: 0.8;
}

/* ================================================
   높이 채움 모드 (thumb_ratio=100%)
   그리드 슬롯 높이에 맞춰 이미지 영역 확장
   컨트롤(dots, arrows)은 고정 높이 유지
   ================================================ */
.stack_thumb_fill .TOTAL_SW2_outer {
    flex: 1;
    min-height: 0;
}
.stack_thumb_fill .TOTAL_SW2_wrap {
    flex: 1;
    min-height: 0;
}
.stack_thumb_fill .TOTAL_SW2_swiper {
    height: 100%;
}
.stack_thumb_fill .TOTAL_SW2_swiper .swiper-wrapper {
    height: 100%;
}
.stack_thumb_fill .TOTAL_SW2_swiper .swiper-slide {
    aspect-ratio: unset !important;
    height: 100%;
}

/* ================================================
   컨트롤바 절대위치 모드 (sw_ctrl_absolute=1)
   컨트롤바 자체를 이미지 위 오버레이로 배치
   ================================================ */
.stack_sw_ctrl_abs .TOTAL_SW2_outer {
    position: relative;
}
.stack_sw_ctrl_abs .TOTAL_SW2_controls {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
    height: auto;
    margin-top: 0;
}
.stack_sw_ctrl_abs .TOTAL_SW2_arrows,
.stack_sw_ctrl_abs .TOTAL_SW2_pagination {
    pointer-events: auto;
}

/* ================================================
   화살표 그룹 절대위치 (sw_arrows_absolute=1)
   컨트롤바 내에서 화살표 그룹을 절대 배치
   (내부 prev/next는 flex flow 유지, 겹치지 않음)
   ================================================ */
.stack_sw_arrows_abs .TOTAL_SW2_controls {
    position: relative;
}
.stack_sw_arrows_abs .TOTAL_SW2_arrows {
    position: absolute;
    top: var(--sw-ctrl-top, auto);
    right: var(--sw-ctrl-right, auto);
    bottom: var(--sw-ctrl-bottom, auto);
    left: var(--sw-ctrl-left, auto);
    z-index: 2;
}

/* ================================================
   도트 절대위치 (sw_dots_absolute=1)
   컨트롤바 내에서 도트를 절대 배치
   ================================================ */
.stack_sw_dots_abs .TOTAL_SW2_controls {
    position: relative;
}
.stack_sw_dots_abs .TOTAL_SW2_pagination {
    position: absolute !important;
    top: var(--sw-dot-top, auto) !important;
    right: var(--sw-dot-right, auto) !important;
    bottom: var(--sw-dot-bottom, auto) !important;
    left: var(--sw-dot-left, auto) !important;
    width: auto !important;
    z-index: 2;
}

/* ================================================
   페이징바 절대위치 (sw_paging_absolute=1)
   컨트롤바 내에서 페이징바를 절대 배치
   ================================================ */
.stack_sw_paging_abs .TOTAL_SW2_pagination.swiper-pagination-progressbar {
    position: absolute !important;
    top: var(--sw-paging-top, auto) !important;
    right: var(--sw-paging-right, auto) !important;
    bottom: var(--sw-paging-bottom, auto) !important;
    left: var(--sw-paging-left, auto) !important;
    width: var(--sw-paging-width, 100%) !important;
    flex: none !important;
    z-index: 1;
}
