@charset "utf-8";

/* /bookstore/book_list.html 원본의 표·교재 상세 스타일을 유지한다. */
.page-book-list { color:#333; background:#fff; }
#bookstore-page #section { width:1100px; max-width:calc(100% - 32px); height:100%; margin:0 auto 50px; }
#bookstore-page #section .history { height:35px; margin:0; padding-top:8px; color:#898989; text-align:right; font-size:12px; }
#bookstore-page #section .history a { color:#898989; text-decoration:none; }
#bookstore-page #section .history img { margin:0 7px; vertical-align:middle; }
.book-heading { overflow:hidden; }
#bookstore-page .sub_title { float:left; height:80px; margin:0; padding-top:32px; color:#333; font-size:22px; font-weight:600; letter-spacing:-2px; }
.bts { float:right; margin:0; padding-top:30px; white-space:nowrap; }
.book_cart { display:inline-block; padding:10px 15px; margin-bottom:10px; background:#254191; color:#fff; }
.book_cart:hover { color:#f7c906; text-decoration:none; }

#bookstore-page #board { width:100%; margin:0; border-collapse:collapse; table-layout:fixed; font-size:14px; font-weight:500; }
#bookstore-page #board caption { position:absolute; overflow:hidden; width:1px; height:1px; clip:rect(0,0,0,0); }
#bookstore-page #board .book-check-col { width:34px; }
#bookstore-page #board .book-image-col { width:145px; }
#bookstore-page #board .book-info-col { width:auto; }
#bookstore-page #board .book-action-col { width:130px; }
#bookstore-page #board .board_top { height:2px; padding:0; background:#000; }
#bookstore-page #board .book_list { border-bottom:1px solid #c9caca; padding:10px 0 20px; vertical-align:middle; }
#bookstore-page #board .book-check { padding-left:3px; text-align:center; }
#bookstore-page #board .book-image-cell { width:145px; padding:10px 0 20px; }
.book-info { padding-left:85px!important; line-height:24px; word-break:keep-all; }
.book_name { color:#3b62de; font-weight:600; font-size:16px; }
.book_money { margin-top:10px; font-size:16px; white-space:nowrap; }
.book_money span { color:red; }
.book_btn { width:130px; padding:0!important; text-align:center; }
.book_btn a { display:inline-block; width:95px; height:40px; margin:auto; padding-top:7px; text-align:center; font-weight:600; box-sizing:border-box; }
.book_btn a:hover { color:#222; text-decoration:none; }
.gray_btn a { background:#e6e6e6; border:1px solid #c9caca; color:#646464; }
.blue_btn a { background:#354c84; border:1px solid #354c84; color:#fff; }
.blue_btn a:hover { background:#354c84; border:1px solid #354c84; color:#f7c906; }
.demo-gallery { width:145px; height:205px; }
.demo-gallery > ul { margin:0; padding-left:0; }
.demo-gallery > ul > li { display:inline-block; width:145px; height:205px; margin:0; list-style:none; }
.demo-gallery > ul > li a { position:relative; display:block; width:145px; height:205px; overflow:hidden; border:3px solid #fff; border-radius:3px; box-sizing:border-box; }
.demo-gallery > ul > li a > img { display:block; width:100%; height:100%; transition:transform .15s ease 0s; transform:scale3d(1,1,1); }
.demo-gallery > ul > li a:hover > img { transform:scale3d(1.1,1.1,1.1); }
.demo-gallery-poster { position:absolute; top:0; right:0; bottom:0; left:0; background-color:rgba(0,0,0,0); transition:background-color .15s ease 0s; }
.demo-gallery-poster > img { position:absolute; top:50%; left:50%; width:auto!important; height:auto!important; margin:-10px 0 0 -10px; opacity:0; transition:opacity .3s ease 0s; }
.demo-gallery > ul > li a:hover .demo-gallery-poster { background-color:rgba(0,0,0,.5); }
.demo-gallery > ul > li a:hover .demo-gallery-poster > img { opacity:1; }
.book-image-empty { display:flex; width:100%; height:100%; align-items:center; justify-content:center; border:1px solid #ccc; color:#999; font-size:13px; }
.book-empty { height:100px; border-bottom:1px solid #b5b5b6; text-align:center; }
.book-detail-modal { display:none; width:1050px; min-height:740px; overflow:hidden; background:#fff; text-align:left; }
.book-detail-top { overflow:hidden; height:740px; border-bottom:1px solid #b5b5b6; }
.book-detail-image { float:left; width:630px; height:740px; margin:0; border-right:1px solid #b5b5b6; text-align:center; }
.book-detail-image img { max-width:500px; margin-top:20px; }
.book-detail-info { float:left; width:400px; padding:20px 0 0 20px; line-height:24px; box-sizing:border-box; }
.book-detail-title { display:inline-block; margin-bottom:8px; color:#2e4ea0; font-size:30px; font-weight:600; line-height:36px; }
.book-detail-actions { padding-top:350px; text-align:right; white-space:nowrap; }
.book-detail-actions .book_btn { display:inline-block; width:100px; }
.book-toc { margin-left:20px; padding:20px; line-height:1.6; }
/* 두 서점 상세 모달의 제목만 강조한다. DB 목차의 p 문단에는 제목 서식을 적용하지 않는다.
 * 본문은 기본 서식만 제공하고, 관리자가 HTML에 지정한 개별 서식은 유지한다. */
.book-toc > .book-toc-title { margin:0 0 15px; color:#2e4ea0; font-size:24px; font-weight:600; }
.book-toc-body { color:#333; font-size:15px; font-weight:400; line-height:1.6; }
.book-image-modal { display:none; width:100%; text-align:center; }
.book-image-modal img { width:48%; height:auto; }


/* -------------------------------------------------------------------------
 * book_list 레거시 VenoBox 표시 보정
 *
 * 원본 bookstore/book_list.html의 inline style을 페이지 범위로 이관한다.
 * - 기본 VenoBox의 overflow-y:scroll 강제 스크롤 제거
 * - 원본과 같은 1200x800 흰색 콘텐츠 박스/4px 테두리
 * - 공통 home.css의 img { display:block }이 브레드크럼/모달 이미지에
 *   끼어들지 않도록 레거시 표시 흐름을 복원한다.
 * ------------------------------------------------------------------------- */
body.page-book-list .vbox-container {
    background-repeat: no-repeat;
    overflow: auto;
    width: 1200px;
    height: 800px;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    background-color: rgb(255, 255, 255);
    border: 4px solid rgb(204, 204, 204);
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 0;
}

body.page-book-list .vbox-content {
    padding: 0;
    overflow: hidden;
}

body.page-book-list .vbox-child.vbox-inline {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

body.page-book-list .vbox-child img {
    display: inline;
}

body.page-book-list #section .history img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: none;
    vertical-align: middle;
}

@media (max-width:767px) {
    body.page-book-list .vbox-container {
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        max-width: none;
        max-height: none;
        left: 12px;
        right: auto;
        top: 12px;
        bottom: auto;
        transform: none;
        border-width: 2px;
    }

    body.page-book-list .vbox-content {
        align-items: flex-start;
        overflow: auto;
    }
}

@media (max-width:900px) {
    #bookstore-page #section { max-width:calc(100% - 24px); }
    #bookstore-page #board { display:block; overflow-x:auto; min-width:950px; }
    #bookstore-page .book-heading { min-width:950px; }
}
@media (max-width:767px) {
    #bookstore-page #section { width:auto; max-width:none; margin:0 12px 40px; }
    #bookstore-page .history { overflow:hidden; height:auto; white-space:nowrap; font-size:11px; }
    #bookstore-page .sub_title { height:auto; padding:22px 0 18px; }
    #bookstore-page .book-heading { min-width:0; }
    #bookstore-page .bts { float:none; clear:both; padding:0 0 15px; white-space:normal; }
    #bookstore-page .book_cart { margin:0 6px 8px 0; }
    #bookstore-page #board { display:block; min-width:0; overflow:visible; table-layout:auto; }
    #bookstore-page #board colgroup { display:none; }
    #bookstore-page #board tbody,#bookstore-page #board tr,#bookstore-page #board td { display:block; width:auto!important; }
    #bookstore-page #board tr:not(:first-child) { padding:12px 0; border-bottom:1px solid #c9caca; }
    #bookstore-page #board .book-check { float:left; width:28px!important; min-height:205px; padding-top:90px; }
    #bookstore-page #board .book-image-cell { float:left; width:145px!important; }
    #bookstore-page #board .book-info { clear:both; padding:14px 0!important; line-height:22px; }
    #bookstore-page #board .book_btn { display:inline-block; width:50%!important; padding:8px 0!important; }
    #bookstore-page #board .book_btn a { width:95%; }
    .book-detail-modal { width:100%; min-height:0; }
    .book-detail-top { height:auto; }
    .book-detail-image { float:none; width:100%; height:auto; border-right:0; }
    .book-detail-image img { width:90%; max-width:500px; }
    .book-detail-info { float:none; width:auto; padding:20px; }
    .book-detail-actions { padding-top:30px; text-align:center; }
    .book-toc { margin-left:0; padding:15px; }
}


/* -------------------------------------------------------------------------
 * totalbook_list 원본 온라인 서점 선택 UI
 * ------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
 * totalbook_list 원본 온라인 서점 선택 UI
 * ------------------------------------------------------------------------- */
#bookstore-page .bookstore-total-title {
    height: 116px;
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
}

#bookstore-page .bookstore-layout-width {
    width: 1100px;
    max-width: calc(100% - 32px);
    height: 100%;
    margin: 0 auto;
}

#bookstore-page .bookstore-total-title .sub_title {
    float: none;
    display: block;
    height: auto;
    margin: 0;
    padding: 43px 0 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -2px;
    box-sizing: border-box;
}

#bookstore-page .bookstore-total-filter {
    height: 50px;
    margin: 10px 0 20px;
    padding: 10px 0;
    background: #d3d3d3;
    color: #666;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
}

#bookstore-page .bookstore-total-filter strong {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    vertical-align: middle;
}

#bookstore-page .bookstore-total-filter select {
    width: 168px;
    height: 30px;
    margin-left: 0;
    padding: 3px 8px;
    border: 1px solid #c9caca;
    background: #fff;
    color: #555;
    font: inherit;
    vertical-align: middle;
}

#bookstore-page .bookstore-total-filter select + select {
    width: 161px;
    margin-left: 12px;
}

#bookstore-page .totalbook-heading {
    height: 51px;
    min-height: 0;
}

#bookstore-page .totalbook-heading .bts {
    height: 51px;
    padding-top: 0;
}

body.page-book-list .vbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.page-book-list .vbox-child .book-image-modal {
    width: 100%;
    text-align: center;
}

body.page-book-list .vbox-child .book-image-modal > div {
    width: 100%;
    text-align: center;
}

body.page-book-list .vbox-child .book-image-modal img {
    display: block;
    width: 48%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width:767px) {
    #bookstore-page .bookstore-layout-width {
        width: auto;
        max-width: none;
        margin: 0 12px;
    }

    #bookstore-page .bookstore-total-title {
        height: 100px;
    }

    #bookstore-page .bookstore-total-title .sub_title {
        padding-top: 30px;
    }

    #bookstore-page .bookstore-total-filter {
        height: auto;
        min-height: 50px;
        padding: 10px 12px;
        line-height: 1.8;
        text-align: left;
    }

    #bookstore-page .bookstore-total-filter select {
        width: 100%;
        margin: 6px 0 0;
    }

    #bookstore-page .bookstore-total-filter select + select {
        margin-left: 0;
    }
}
