/*
 * jQuery Booklet Plugin
 * Copyright (c) 2010 - 2014 William Grauvogel (http://builtbywill.com/)
 *
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 *
 * Version : 1.4.4
 *
 * Originally based on the work of:
 *	1) Charles Mangin (http://clickheredammit.com/pageflip/)
 */
#ebook {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #333;
  z-index: 9998;
}
#ebook_cont {
  background: #333;
  padding-top: 0;
}
.ebook_h1 {
  position: relative;
  color: #fff;
  font-size: 30px;
  padding: 15px 0;
  text-align: center;
}
.ebook_close {
  position: fixed;
  right: 30px;
  top: 5px;
  color: #ccc;
  cursor: pointer;
  font-size: 1.4em;
}
.ebook_sec {
  background: #333;
}
.page_cont {
  position: relative;
  padding: 15px;
}
.page_subject {
  display: none;
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  z-index: 9;
}
.booklet {
  width: 100%; /*202601 */
  height: 730px;
  max-width: 1000px;  /*202601 PC */
  max-height: auto !important;
  position: relative;
  margin: 0 auto 10px;
  overflow: visible !important;
}
.booklet .b-page {
  left: 0;
  top: 1.5%;
  position: absolute;
  overflow: hidden;
  padding: 0;
  outline: 1px solid rgba(0, 0, 0, 0);
}
.booklet img {
  width: 100%;
  height: 100%;
  /*max-width: 500px;
  max-height: 700px;*/
  object-fit: contain; /* 20260122 추가: 비율 유지 */
  filter: drop-shadow(5px 5px 5px #999999);
}

.booklet .b-pN {
}
.booklet .b-p0 {
}
.booklet .b-p1 {
}
.booklet .b-p2 {
}
.booklet .b-p3 {
}
.booklet .b-p4 {
}

/* Page Wrappers */
.booklet .b-wrap {
  top: 0;
  position: absolute;
}
.booklet .b-wrap-left {
  background: #f8f8f8;
}
.booklet .b-wrap-right {
  background: #f8f8f8;
}

.booklet .b-pN .b-wrap,
.booklet .b-p1 .b-wrap,
.booklet .b-p2 .b-wrap,
.booklet .b-p3 .b-wrap,
.booklet .b-p4 .b-wrap {
  left: 0;
}
.booklet .b-p0 .b-wrap {
  right: 0;
}

/* Custom Page Types */
.booklet .b-page-blank {
  padding: 0;
  width: 100%;
  height: 100%;
}
.booklet .b-page-cover {
  padding: 0;
  width: 100%;
  height: 100%;
  background: #333;
} /**/
.booklet .b-page-cover h3 {
  color: #fff;
  text-shadow: 0 1px 3px #222;
}

/* Page Numbers */
.booklet .b-counter {
  bottom: 10px;
  position: absolute;
  display: block;
  width: 25px;
  height: 30px;
  background: #ccc;
  color: #444;
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  padding: 5px 0 ;
}
.booklet .b-wrap-left .b-counter {
  left: 10px;
}
.booklet .b-wrap-right .b-counter {
  right: 10px;
}

/* Page Shadows */
.booklet .b-shadow-f {
  right: 0;
  top: 0;
  position: absolute;
  opacity: 0;
  background-image: url("images/shadow-top-forward.png");
  background-repeat: repeat-y;
  background-position: 100% 0;
}
.booklet .b-shadow-b {
  left: 0;
  top: 0;
  position: absolute;
  opacity: 0;
  background-image: url("images/shadow-top-back.png");
  background-repeat: repeat-y;
  background-position: 0 0;
}

.booklet .b-p0 {
  background-image: url("images/shadow.png");
  background-repeat: repeat-y;
  background-position: 100% 10px;
}
.booklet .b-p3 {
  background-image: url("images/shadow.png");
  background-repeat: repeat-y;
  background-position: 0 10px;
}

/* Overlay Controls */
.booklet .b-grab {
  cursor: url("images/openhand.cur"), default;
}
.booklet .b-grabbing {
  cursor: url("images/closedhand.cur"), default;
}

/* Overlay Controls */
.booklet .b-overlay {
  top: 0;
  position: absolute;
  height: 100%;
  width: 40%;
}
.booklet .b-overlay-prev {
  left: 0;
}
.booklet .b-overlay-next {
  right: 0;
}

/* Tab Controls */
.booklet .b-tab {
  background: #000;
  height: 40px;
  line-height: 40px;
  width: 100%;
  padding: 5px 0;
  text-align: center;
  color: #fff;
  position: absolute;
  font-size: 14px;
}
.booklet .b-tab-prev {
  left: 0;
}
.booklet .b-tab-next {
  right: 0;
}
.booklet .b-tab:hover {
  background: #aaa;
  color: #000;
}

/* Arrow Controls */
.booklet .b-arrow {
  display: block;
  position: absolute;
  text-indent: -9999px;
  top: 0;
  height: 100%;
  width: 74px;
}
.booklet .b-arrow div {
  display: none;
  text-indent: -9999px;
  height: 170px;
  width: 74px;
  position: absolute;
  left: 0;
  top: 25%;
}
.booklet .b-arrow-next {
  right: -100px;
}
.booklet .b-arrow-prev {
  left: -100px;
}
.booklet .b-arrow-next div {
  background: url("images/arrow-next.png") no-repeat left top;
}
.booklet .b-arrow-prev div {
  background: url("images/arrow-prev.png") no-repeat left top;
}

.booklet.booklet-single{
  overflow: hidden !important; /* 20260122 추가: ★ 모바일 1페이지의 핵심 */
}


/* @z-index fix (needed for older IE browsers)
----------------------------------------*/

body {
  z-index: 0;
}
.b-menu {
  z-index: 100;
}
.b-selector {
  z-index: 100;
}
.booklet {
  z-index: 10;
}
.b-pN {
  z-index: 10;
}
.b-p0 {
  z-index: 30;
}
.b-p1 {
  z-index: 20;
}
.b-p2 {
  z-index: 20;
}
.b-p3 {
  z-index: 30;
}
.b-p4 {
  z-index: 10;
}
.b-prev {
  z-index: 40;
}
.b-next {
  z-index: 40;
}
.b-counter {
  z-index: 40;
}

/* @Menu Items
----------------------------------------*/
.b-menu {
  height: 40px;
  padding: 0 0 10px;
}

.b-selector {
  height: 40px;
  position: relative;
  float: right;
  border: none;
  color: #cecece;
  cursor: pointer;
  font: normal 12px "Malgun Gothic", "맑은 고딕", dotum, "돋움", Arial,
    sans-serif;
}
.b-selector .b-current {
  padding: 8px 15px 12px;
  line-height: 20px;
  min-width: 18px;
  height: 20px;
  display: block;
  background: #000;
  text-align: center;
}
.b-selector-page {
  width: auto;
  margin-left: 15px;
}
.b-selector-chapter {
  width: auto;
}

.b-selector:hover {
  color: #fff;
  background-position: left 0;
}
.b-selector:hover .b-current {
  background-position: right 0;
}
.b-selector ul {
  overflow: hidden;
  margin: 0;
  list-style: none !important;
  position: absolute;
  top: 40px;
  right: 0;
  padding: 0 0 10px;
  background: #000;
  width: 240px;
}
.b-selector li {
  border: none;
}
.b-selector a {
  color: #cecece;
  height: 14px;
  text-decoration: none;
  display: block;
  padding: 5px 10px;
}
.b-selector a .b-text {
  float: left;
  clear: none;
}
.b-selector a .b-num {
  float: right;
  clear: none;
}
.b-selector a:hover {
  color: #fff;
}

/* Media Query
----------------------------------------*/
@media (max-width: 968px) {
  #ebook_cont {
    background: #666;
    min-height: 100%;
  }
  .ebook_h1 {
    font-size: 25px;
  }
  .ebook_close {
    right: 5px;
    font-size: 1.2em;
  }
  .ebook_sec {
    background: #666;
  }
  .page_cont {
    padding: 0px;
  }

  .booklet {
    width: 400px;
    height: 400px;
  }
  .booklet img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 550px;
  }
}

@media (max-width: 480px) {
  .booklet {
    width: 100%;
    height: calc(100vh - 120px); /* 20260122 수정: 상단제목/닫기버튼 높이 고려 */
  }
  .booklet img {
    width: 100%;
    height: 100%;
    max-width: 400px;
  }
  /* Tab Controls */
  .booklet .b-tab {
    height: 45px;
    line-height: 45px;
    padding: 5px 0;
  }
}
