/*
(주)파이브센스_FIVESENSES.Corp.
파이브프로_FIVEPro_웹솔루션.
본 라이브러리(소스코드 및 디자인 포함)는 (주)파이브센스의 자산이며, 저작권법 및 부정경쟁방지법에 의해 보호됩니다.
무단 사용, 외부 유출, 복제, 배포, 변형을 금지합니다.
위반 시 민·형사상 법적 책임 및 손해배상 청구 대상이 됩니다.
작성일: 2025-03-18 | 저작권자: (주)파이브센스(520-86-01244) | All Rights Reserved.
*/

.main_mb13 {
    display: flex;
    flex-direction: column;
}

.main_mb13 .main_cont_container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* 스와이프 */
.main_mb13 .swiper {
    /* widget-wrap before보다 위로 올라오게 결정 */
    z-index: 2;
    height: 100%;
}

.main_mb13 .swiper-wrapper {
    height: 100%;
}

.main_mb13 .swiper-slide {
    position: relative;
    z-index: 1;
}

.main_mb13 .swiper-slide.swiper-slide-active {
    /* 슬라이드 fade 중첩 효과 이슈로 active 순서 필요 */
    z-index: 2;
}

/* 스와이프 이미지 */
.main_mb13 .img_container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.main_mb13 .img_container .img_container_bg {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    overflow: hidden;
}

.main_mb13 .img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 스와이프 정보 */
.main_mb13 .swiper_info_container {
    width: 100%;
    position: absolute;
    top: 55.3%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0 15px;
    text-align: left;
	max-width:1350px;
}

/* 스와이프 요소이미지 */
.main_mb13 .swiper_info_container .itemSubImg {
    width: auto;
    margin: 0 auto 30px auto;
}

/* 스와이프 타이틀 */
.main_mb13 .swiper_title {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
	flex-direction:column;
}

.main_mb13 .swiper_title .empty_box {
    font-size: 18px;
    font-weight: 500;
    line-height: 0.8;
    opacity: 0;
}

.main_mb13 .swiper_title h2 {
    font-size: 200px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    width: auto;
    line-height: 162px;
}

.main_mb13 .swiper_title:first-of-type {
    margin-bottom: 0;
    margin-right: -70px;
}

.main_mb13 .swiper_title:nth-of-type(2) {
    margin-bottom: 0;
    margin-left: -70px;
}

/* 스와이프 서브타이틀 */
.main_mb13 .swiper_subtitle {
    margin-bottom: 0px;
    position: absolute;
	text-align:right;
	width:100%;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	top:38px;
	right:26px;
}

.main_mb13 .swiper_subtitle h3 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    width: auto;
    display: inline-block;
    text-align: left;
    white-space: nowrap;
}

.main_mb13 .swiper_subtitle .bottom_sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 26px;
}


.main_mb13 .swiper_subtitle h3:first-child {
	margin-right:19px;
}

.main_mb13 .swiper_subtitle h3:last-child {
	margin-top:16px;
}

.main_mb13 .swiper_subtitle h3:last-child::before {
	content:"";
	background:#fff;
	width:100px;
	height:1px;
	display:block;
	position:static;
}

/* 스와이프 더보기 */
.main_mb13 .swiper_more {
    display: inline-block;
    margin-bottom: 0px;
}

.main_mb13 .swiper_more a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    border: 2px solid #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_mb13 .swiper_more span {
    margin-left: 10px;
}

/* 스와이프 재생버튼 */
.main_mb13 .swiper_btn_container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1610px; /* container_fix 상위 css */
}

.main_mb13 .swiper_btn {
    width: 30px;
    height: 30px;
    position: relative;
    margin-left: 20px;
}

.main_mb13 .swiper_btn button {
    width: 100%;
    height: 100%;
    font-size: 20px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 스와이프 페이지네이션 정보 */
.main_mb13 .swiper-pagination {
    position: static; /* 기존 position 없애기 */
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
}

.main_mb13 .swiper-pagination-current {
    color: #fff;
    margin-right: 10px;
}

.main_mb13 .swiper-pagination-total {
    margin-left: 10px;
}

.main_mb13 .swiper-pagination div.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    margin: 0 15px;
    position: relative;
}

/* 기존 pagination 세팅 제거 */
.main_mb13 .swiper-pagination-bullets.swiper-pagination-horizontal {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
}

.main_mb13 .swiper-pagination div.swiper-pagination-bullet-active {
    background: #fff;
}

/* 스와이프 화살표 정보 */
.main_mb13 .swiper_arr {
    display: flex;
    align-items: center;
}

/* 기존 navigation 세팅 제거 */
.main_mb13 .swiper-button-next:after,
.main_mb13 .swiper-button-prev:after {
    font-size: 13px;
}

.main_mb13 .swiper-button-prev,
.main_mb13 .swiper-rtl .swiper-button-next {
    left: 0;
    right: 0;
}

.main_mb13 .swiper-button-next,
.main_mb13 .swiper-button-prev {
    position: static;
    width: auto;
    height: auto;
    margin-top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 30px 0 20px;
}

/* 메인배너 그리드 */
.main_mb13 .grid_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.main_mb13 .grid_container .grid {
    width: 20%;
    height: 100%;
    border-right: 1px solid rgba(255,255,255, 0.2);
    position: relative;
    box-sizing: border-box;
}

.main_mb13 .grid_container .grid:first-child,
.main_mb13 .grid_container .grid:last-child {
    width: 10%;
}

.main_mb13 .grid_container .grid:last-child {
    border-right: none;
}


/* 스와이프 동영상 */
.main_mb13 .iframe_container {
    height: 100%;
    overflow: hidden;
    position: relative;
    /* 배너 크기(cqw/cqh)를 기준으로 영상 크기를 계산하기 위해 지정 */
    container-type: size;
}

.main_mb13 .iframe_container .iframe_container_inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
   유튜브 위아래 검은 여백 방지 (object-fit: cover 방식)
   - 영상을 항상 16:9 비율로 유지하면서 배너를 꽉 채우도록 키우고 넘치는 부분은 잘라냄
   - 위아래 최소 60px씩 더 키워서 유튜브 상단 제목/하단 UI가 보이지 않게 함 (기존 -60px / +120px 처리 유지)
*/
.main_mb13 .iframe_container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, calc((100cqh + 120px) * 16 / 9));
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
}

/* 스와이프 동영상 요소이미지 */
.main_mb13 .iframe_container .itemSubVideoImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main_mb13 .iframe_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    cursor: grab; /* 스와이프 UI 힌트를 제공 */
}

/* ===== 리사이징 (1600 / 1280 / 1024) - 텍스트 ===== */
@media (max-width: 1600px) {
    .main_mb13 .swiper_title h2 {
        font-size: 170px;
        line-height: 138px;
    }
    .main_mb13 .swiper_title:first-of-type {
        margin-right: 0;
    }
    .main_mb13 .swiper_title:nth-of-type(2) {
        margin-left: 0;
    }
    .main_mb13 .swiper_subtitle {
        top: 32px;
        right: -22px;
    }
    .main_mb13 .swiper_subtitle h3 {
        font-size: 17px;
    }
    .main_mb13 .swiper_subtitle h3:last-child::before {
        width: 90px;
    }
}

@media (max-width: 1280px) {
    .main_mb13 .swiper_title h2 {
        font-size: 140px;
        line-height: 114px;
    }
    .main_mb13 .swiper_subtitle {
        top: 26px;
    }
    .main_mb13 .swiper_subtitle h3 {
        font-size: 16px;
    }
    .main_mb13 .swiper_subtitle h3:first-child {
        margin-right: 15px;
    }
    .main_mb13 .swiper_subtitle h3:last-child {
        margin-top: 13px;
    }
    .main_mb13 .swiper_subtitle .bottom_sub {
        gap: 0 20px;
    }
    .main_mb13 .swiper_subtitle h3:last-child::before {
        width: 80px;
    }
}

@media (max-width: 1024px) {
    .main_mb13 .swiper_title h2 {
        font-size: 110px;
        line-height: 90px;
    }
    .main_mb13 .swiper_subtitle {
        top: 20px;
    }
    .main_mb13 .swiper_subtitle h3 {
        font-size: 15px;
    }
    .main_mb13 .swiper_subtitle h3:first-child {
        margin-right: 12px;
    }
    .main_mb13 .swiper_subtitle h3:last-child {
        margin-top: 10px;
    }
    .main_mb13 .swiper_subtitle .bottom_sub {
        gap: 0 16px;
    }
    .main_mb13 .swiper_subtitle h3:last-child::before {
        width: 60px;
    }
}
