/* ── 전체 컨테이너 ── */
#viewarea2 {
    width: 100%;
    border: 0;
    margin: 10px auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
	max-width:1350px;
}

/* ── 좌우 버튼 래퍼 ── */
#viewarea2 > div:first-child,
#viewarea2 > div:last-child {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* ── 좌우 버튼 공통 (PC) ── */
#viewarea2 .btnLeft,
#viewarea2 .btnRight {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

#viewarea2 .btnLeft:hover,
#viewarea2 .btnRight:hover {
    background: #eee;
    border-color: #bbb;
}

#viewarea2 .btnLeft img,
#viewarea2 .btnRight img {
    display: block;
    position: static;
    float: none;
    width: auto;
    height: auto;
}

/* ── 캐러셀 영역: 남은 공간 전체 사용 ── */
#viewarea2 .carousel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    margin: 0 8px;
    position: relative;
    display: block;
    overflow: hidden;
}

.carousel .noimage {
    background: url('../img/noimage.png') no-repeat center;
    border: 0;
}

/* jCarouselLite 초기 숨김 → JS에서 visible 처리 */
.carousel .jCarouselLiteCommon {
    margin: 0;
    display: block;
    position: relative;
    visibility: hidden;
    left: -5000px;
    padding: 0;
    border: 0;
}

.carousel ul {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

/* ── 아이템 ── */
.carousel li {
    overflow: hidden;
    padding: 3px 0;
    margin: 0;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    box-sizing: border-box;
}

.carousel li img {
    background-color: #fff;
    border: 0 !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel .bannertitle {
    overflow: visible;
    cursor: pointer;
    text-align: center;
    position: relative;
    clear: both;
    border: 0;
    margin-top: 10px;
    color: #333;
    display: none;
}

.carousel a,
.carousel a:hover,
.carousel a:active,
.carousel a:visited {
    text-decoration: none;
}

/* ── 모바일 대응 (768px 이하) ── */
@media screen and (max-width: 768px) {
    #viewarea2 {
        padding: 0 4px;
    }

    /* 버튼: 테두리 + 패딩 + 크기 확대 (터치 편의) */
    #viewarea2 .btnLeft,
    #viewarea2 .btnRight {
        width: 40px;
        height: 50px;
        min-width: 40px;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #f5f5f5;
    }
    #viewarea2 .btnLeft:active,
    #viewarea2 .btnRight:active {
        background: #e0e0e0;
        border-color: #aaa;
    }

    /* 캐러셀-버튼 간 여백 */
    #viewarea2 .carousel {
        margin: 0 6px;
    }

    .carousel li {
        padding: 3px 4px;
    }
}
