/* Swiper 커스텀 스타일 */

/* 비주얼 슬라이더 */
#visual .area {
    position: relative;
    padding-bottom: 19px; /* POPUP ZONE과 동일 */
}

/* 2026-01-15: border 제거 */
#visual .swiper {
    position: relative;
    width: 100%;
    height: 325px;
    box-sizing: border-box;
    border-radius: 25px;
    overflow: hidden;
}

#visual .swiper-slide {
    width: 100%;
}

#visual .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Visual 컨트롤 - global.css의 .vis_zone .cont 스타일이 적용됨 */

/* 관련 배너 슬라이더 */
#rel .swiper {
    padding: 0 50px;
}

/* 2025-10-05: 이미지 크기 통일 및 수직 중앙 정렬 - 반응형 */
#rel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important; /* Swiper 자동 너비 계산 무시 */
}

#rel .swiper-slide img {
    width: auto !important;
    height: 70px;
    max-width: none !important; /* 너비 제약 제거 */
    border: none; /* 2026-01-23: 배너 이미지 테두리 제거 */
}

/* 태블릿 */
@media (max-width: 1024px) {
    #rel .swiper-slide img {
        height: 65px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    #rel .swiper-slide img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    #rel .swiper-slide img {
        height: 50px;
    }
}

/* POPUP ZONE 슬라이더 */
#gerrelly {
    /* 그리드는 기본값 유지 - global.css에서 처리 */
}

#gerrelly .area {
    position: relative;
    padding-bottom: 19px; /* Visual과 동일 */
}

/* 2026-01-15: border 제거 */
#gerrelly .popupSwiper {
    height: 325px;
    box-sizing: border-box;
    border-radius: 25px;
    overflow: hidden;
    background: #f5f5f5;
}

#gerrelly .swiper-wrapper {
    width: 100%;
    height: 100%;
}

#gerrelly .swiper-slide {
    width: 100%;
    height: 100%;
}

#gerrelly .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

#gerrelly .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

/* 반응형 */
@media (max-width: 1024px) {
    #gerrelly .popupSwiper {
        height: 325px; /* 높이 유지 */
    }
}

@media (max-width: 768px) {
    #visual .swiper {
        height: 250px;
    }

    #gerrelly .popupSwiper {
        height: 250px;
        border-radius: 12px;
    }

    #visual .swiper-button-prev,
    #visual .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    #visual .swiper-button-prev i,
    #visual .swiper-button-next i {
        font-size: 20px;
        line-height: 40px;
    }
}

/* 2026-08-26 칸반162: 배너 줄 정렬 — 배너가 한 줄에 다 들어와 스크롤이 없을 때만 의미가 있다.
   어드민(후원사 관리)에서 줄마다 가운데/왼쪽을 고른다. 스크롤이 걸리면 트랙이 움직이므로 영향 없음. */
#rel .area.rel-align-left .relatedSwiper.rel-static .swiper-wrapper {
    justify-content: flex-start;
}
#rel .area.rel-align-center .relatedSwiper.rel-static .swiper-wrapper {
    justify-content: center;
}
/* 그리드형(v4·v7)도 같은 규칙을 쓴다 — 항목이 적어 한 줄이 안 찰 때의 정렬 */
.banner-grid-box.rel-align-left,
.v7-banner-grid-box.rel-align-left {
    justify-content: flex-start;
}
.banner-grid-box.rel-align-center,
.v7-banner-grid-box.rel-align-center {
    justify-content: center;
}
