/* 전체 메인 비주얼 영역 */
.main-visual {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #000;
}

/* Swiper 컨테이너 */
.main-visual-swiper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 16 / 7;   /* 자동 반응형 세로 높이 */
    min-height: 320px;
}

@media (min-width: 1024px) {
    .main-visual-swiper {
        min-height: 520px;
    }
}

/* 슬라이드 UL 초기화 (가장 중요!) */
.main-visual-slides {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* 각 슬라이드 */
.main-visual-slides .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* 가운데 정렬 컨테이너 */
.main-visual .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 16px;
    box-sizing: border-box;
}

/* 제목, 부제 */
.mv-title {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
}

.mv-subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,0.85);
}

@media (min-width: 1024px) {
    .mv-title {
        font-size: 40px;
    }
    .mv-subtitle {
        font-size: 18px;
    }
}

/* 배경 슬라이드 색 / 이미지 */
/* 기존 gradient 지우고 이미지로 교체 */
.visual-1 {
    background: linear-gradient(120deg, #7f1d1d, #b91c1c);
    background-image: url("/images/main_visual2/001.jpg"); /* 1번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-2 {
    background: linear-gradient(120deg, #991b1b, #f97316);
   /* background-image: url("/images/main_visual2/002.jpg");  2번 슬라이드 */
    background-image: url("/images/main_visual2/main002.png"); /* 2번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-3 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/003.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-4 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/004.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-5 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/005.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-6 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/006.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-7 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/007.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-8 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/008.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-9 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/009.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.visual-10 {
    background: linear-gradient(120deg, #7f1d1d, #1f2937);

    background-image: url("/images/main_visual2/010.jpg"); /* 3번 슬라이드 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.visual-1,
.visual-2,
.visual-3,
.visual-4,
.visual-5
.visual-6,
.visual-7,
.visual-8,
.visual-9,
.visual-10 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Swiper 버튼/페이징 */
.main-visual .swiper-button-prev,
.main-visual .swiper-button-next {
    color: #ffffff;
}

.main-visual .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4);
}
.main-visual .swiper-pagination-bullet-active {
    background: #ffffff;
}

/* 재생/정지 버튼 */
.main-visual-control {
    position: absolute;
    right: 40px;
    bottom: 24px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.mv-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.mv-btn:hover {
    background: rgba(0,0,0,0.6);
}



@media (max-width: 767px) {
    :root {
        --mobile-header-h: 60px;   /* 헤더 높이와 동일하게 맞추기 */
    }

    .main-visual {
        height: calc(100vh - var(--mobile-header-h));
        max-height: 800px;
    }

    .main-visual-swiper {
        height: 100%;
        aspect-ratio: auto;
        min-height: 0;
    }

    .main-visual-slides .swiper-slide {
        height: 100%;
    }
}
