body {display: flex; flex-direction: column; height: 99.9dvh; overflow: hidden; background-color: #1F1F1F;touch-action: pan-y;}
.container {position: relative; flex-grow: 1; display: flex; align-items: center; justify-content: center; max-height: calc(100dvh - 45px);}

/*pc 화면*/
.bookBox { display: flex; align-items: center; justify-content: center; flex-direction: column; height: calc(100dvh - 45px); max-height: 75vw; padding: 35px 0 55px;}
#flipbook { opacity: 0; height: 100%; margin-left: -50%!important; aspect-ratio: auto 4/2.83 !important; background-color: #1F1F1F; z-index: 1; -webkit-transition:margin-left 0.2s ease-in-out; -moz-transition:margin-left 0.2s ease-in-out; -o-transition:margin-left 0.2s ease-in-out; -ms-transition:margin-left 0.2s ease-in-out; transition:margin-left 0.2s ease-in-out;}
#flipbook.load {animation: opacity .3s .3s;animation-fill-mode: forwards; }
#flipbook.start {margin-left: 0 !important;}
#flipbook.end {margin-left: 50% !important;}

.page-wrapper {width: 50% !important; height: 100% !important;}
.page-wrapper > div {height: 100%;}

#flipbook .hard {height: 100%;background-color: white;}
#flipbook .hard img {width: 100%;}
#flipbook .page { height: 100%; background-color: white;}
#flipbook .page img {width: 100%;}

#flipbook .page .caption {position: absolute; bottom: 4%; left: 6.5%; display: block; width: calc(100% - 14%); }
#flipbook .page .link {display: block; width: fit-content; font-size: clamp(8px, 0.9vw, 15px); word-break: break-all; text-align: justify; line-height: 1.6; color: #888; letter-spacing: -0.32px; pointer-events: all;}
#flipbook .page .link span {color: inherit; text-decoration: underline;}
#flipbook .page .link span:hover {color: #284E80;}
#flipbook .page .link.ico::after {content: ""; display: inline-block; margin-left: 4px; width: clamp(9px , 0.9vw, 15px); aspect-ratio: auto 1/1; background: url(../img/ico_link.png) no-repeat center center / contain;}

#flipbook .hard .left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 68.55%, rgb(0 0 0 / 20%) 97.76%, rgb(0 0 0 / 53%) 100%)}
#flipbook .hard .right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 68.55%, rgb(0 0 0 / 20%) 97.76%, rgb(0 0 0 / 53%) 100%)}

#flipbook .hard.pageinner .left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}
#flipbook .hard.pageinner .right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}
#flipbook .right-page-overlay .inner {position: relative;}
#flipbook .right-page-overlay .inner::after {content: ""; position: absolute; bottom: 1.8%; right: 1.8%; width: 38px; height: 11px; background: url(../img/ico_arr_right.png) no-repeat center center / auto 100%;}

#flipbook .shadow {transition: 0.3s;box-shadow:0 0 20px #888;}

#flipbook .inner.page1 {position: relative;}
#flipbook .inner.page1 .slideInfo {position: absolute; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; right: 15px; bottom: 15px; width: 74px; height: 74px; line-height: normal; transition: opacity .3s; border-radius: 50px; background: rgba(0, 0, 0, 0.50);color: #FFF; text-align: center; font-size: 12px; }
#flipbook .inner.page1 .slideInfo img { display: block; width: 26px;}

@keyframes opacity {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


.left-page-overlay,
.right-page-overlay { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none;}
.left-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(90deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}
.right-page-overlay::after {content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background:linear-gradient(270deg, rgba(0, 0, 0, 0) 96%, rgb(0 0 0 / 14%) 101%)}

.sideNav {position: absolute; top: 0; left: -100%; transition: left .3s; width: 150px; height: calc(100dvh - 45px); padding: 50px 25px; background-color: #000000; z-index: 10;}
.sideNav .swiper { width: 100%; height: 100%; }
.sideNav .swiper-slide {width: 100%;  color: white;}
.sideNav .swiper-slide img {width: 100%; height: 100%; object-fit: contain;}
.sideNav .swiper-slide span {display: block; text-align: center; margin-top: 5px; font-size: 14px; font-weight: 300; color: white;}
.sideNav .swiper-slide .imgBox {position: relative;}
.sideNav .swiper-button-next, 
.sideNav .swiper-button-prev {width: 20px; height: 20px; margin-top: 0; background-position: center center; background-repeat: no-repeat; background-size: 100% 100%;}
.sideNav .swiper-button-next { top: auto; bottom: 17px; right: 36%; background-image: url(/historika_arv/img/ico_next.png); transform: rotate(180deg) translateX(50%); }
.sideNav .swiper-button-prev { top: 17px; left: 50%; background-image: url(/historika_arv/img/ico_next.png); transform: translateX(-50%); }
.sideNav .swiper-button-next:after, 
.sideNav .swiper-button-prev:after {display: none;}
.sideNav.on {left: 0;}

.sideSwiper .swiper-slide {height: 163px;}
.sideSwiper .swiper-slide-active .imgBox::after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 6px solid #284E80;}
.sideSwiper .swiper-slide.emptySlide {pointer-events: none;}

.sideMobSwiper {display: none; max-width: 550px;}
.sideMobSwiper img {width: 100%;}
.sideMobSwiper .swiper-slide {height: auto;}
.sideMobSwiper .flexBox {display: flex; justify-content: center; gap: 0 30px;}
.sideMobSwiper .item.active .imgBox::after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 6px solid #284E80;}

.bottom {display: flex; align-items: center; justify-content: space-between; height: 45px; padding: 0 20px; background-color: #000000;}
.bottom .left {display: flex; align-items: center;}
.bottom .left .ham {margin-right: 20px; width: 27px; height: 27px; background: url(/historika_arv/img/ico_ham.png) no-repeat center center / 100%;}
.bottom .left .ham.on {background-image: url(/historika_arv/img/ico_close.png);}
.bottom .left p { font-size: 15px; font-weight: 300; color: white;}
.bottom .right {font-size: 15px; color: white;}
.bottom .right span {color: white;}


/* Overlays */
.turnjs-slider {width:775px;height:10px;background:rgba(225,225,225, 0.15);border-radius:30px;margin:18px auto 0;}
.turnjs-slider .ui-slider-handle{position: absolute;z-index:0;width:80px;height: 10px;cursor: default;border-radius:5px;background-color:white;display:block;}
.turnjs-slider .ui-widget-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;}
.turnjs-slider .ui-slider {position: relative;text-align: left;}
.turnjs-slider .ui-slider-horizontal {height: 10px;width:695px;margin-left:39px;}
.turnjs-slider .ui-slider-horizontal .ui-slider-handle {margin-left:-40px;margin-top:-1px;}
.turnjs-slider .thumbnail {width:115px;height:80px;position:absolute;background:rgba(0,0,0, 0.5);z-index:10000;top:-100px;left:-17px;display:none;transform:translate3d(0px, 50px, 0px) scale(0.1, 0.1);transition:all 0.2s;border-radius:5px;}
.turnjs-slider .thumbnail div{width:100px;margin:7px;height:73px;background-color:black; background-repeat: no-repeat; background-size: 110px auto;}
.turnjs-slider .ui-state-hover .thumbnail{display:block;opacity:0;}
.turnjs-slider .ui-state-active .thumbnail{display:block;opacity:1;transform:scale(1, 1);}


/*모바일 swiper*/
.bookBoxMobile {display: none; width: 100%; height: 100%; background-color: white;}
.bookBoxMobile .swiper {width: 100%; height: 100%; }
.bookBoxMobile .swiper-slide {position: relative; width: 100%; height: 100%; overflow: auto; touch-action: pan-y;}

.bookBoxMobile .slide1 { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px;}
.bookBoxMobile .slide1 strong {position: relative; display: block; padding-bottom: 12px; margin-bottom: 28px; color: #141414; text-align: center; font-size: clamp(35px, 8vw, 48px); font-weight: 400; letter-spacing: -1.75px;}
.bookBoxMobile .slide1 strong::after {content: ""; position: absolute;bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 1px; background: #141414; }
.bookBoxMobile .slide1 p {display: block; text-align: center; font-size: clamp( 12px, 2.7vw, 18px ); font-weight: 300;}
.bookBoxMobile .slide1 .visual {display: block; width: 100%; max-width: 600px; max-height: calc(100dvh - 350px); object-fit: contain;}
.bookBoxMobile .slide1 .logo { position: absolute; bottom: 25px; display: block; width: 110px;}

.bookBoxMobile .slide2 { display: flex; flex-direction: column; justify-content: space-between; padding: 33px 25px; padding-top: clamp(33px , 6vh ,9%); background: url(../img/slideMob_2.jpg?ver=1031) no-repeat center center / cover;}
.bookBoxMobile .slide2 strong {display: block; color: #FFF; font-size: clamp(30px, 6vw, 40px); font-weight: 500;}
.bookBoxMobile .slide2 .category {display: block; text-align: right;}
.bookBoxMobile .slide2 .category p {color: #FFF; font-size: clamp(12px, 2.7vw, 16px); line-height: 1.5;}
.bookBoxMobile .slide2 .category p + p {margin-top: 8px;}

.bookBoxMobile .slide {position: relative; padding: 25px 25px 45px;}
.bookBoxMobile .slide .titBox {width: 100%; max-width: 600px; margin:0 auto;}
.bookBoxMobile .slide .titBox img {width: 100%;}
.bookBoxMobile .slide .titBox small {display: block; margin: 20px 0 5px; font-size: clamp(12.5px, 2.7vw, 17px);font-weight: 500; letter-spacing: -0.375px;}
.bookBoxMobile .slide .titBox strong {display: block; margin: 5px 0 30px; font-size: clamp(22px, 6.5vw, 32px); font-weight: 500; letter-spacing: -0.75px;}
.bookBoxMobile .slide .titBox p {display: block; margin: 30px 0 20px ; font-size: clamp(18px, 4vw, 22px); font-weight: 500; letter-spacing: -0.36px;}
.bookBoxMobile .slide .txtBox {width: 100%; max-width: 600px; margin:0 auto;}
.bookBoxMobile .slide .txtBox p {display: block; font-size: clamp(12px, 2.7vw, 16px); word-break: break-all; text-align: justify; line-height: 1.6; letter-spacing: -0.24px;}
.bookBoxMobile .slide .txtBox .link {display: block; margin-top: 30px; font-size: clamp(12px, 2.7vw, 16px); word-break: break-all; text-align: justify; line-height: 1.5; color: #888; letter-spacing: -0.24px;}
.bookBoxMobile .slide .txtBox .link span {color: inherit; text-decoration: underline;}
.bookBoxMobile .slide .txtBox .link span:hover {color: #284E80;}
.bookBoxMobile .slide .txtBox .link.ico::after {content: ""; display: inline-block; margin-left: 4px; width: clamp(10px , 2.7vw, 15px); aspect-ratio: auto 1/1; background: url(../img/ico_link.png) no-repeat center center / contain;}
.bookBoxMobile .slide .txtBox .link + .link {margin-top: 3px;}
.bookBoxMobile .slide .txtBox p + p {margin-top: 20px;}

.bookBoxMobile .slide13 { display: flex; align-items: end; justify-content: center; text-align: center; padding: 35px 15px; background: url(../img/logo.png) no-repeat center center; background-size: clamp(110px, 40%, 170px) auto; }
.bookBoxMobile .slide13 p { font-size: clamp(11px, 2.5vw, 15px);line-height: 1.6; letter-spacing: -0.235px;}
.bookBoxMobile .slide13 a {display: block; margin: 0 auto 6px; color: #284E80; font-size: clamp(11px, 2.5vw, 15px); line-height: 1.6; letter-spacing: -0.235px; text-decoration-line: underline;}
.bookBoxMobile .slide13 span {color: #707070; font-size: clamp(11px, 2.5vw, 15px); font-weight: 300; letter-spacing: -0.562px;}

.bookBoxMobile .slideInfoBox { opacity: 0; pointer-events: none; z-index: 1; position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 100%; height: 100dvh;}
.bookBoxMobile .slideInfoBox p { color: #FFF; text-align: center; font-size: 15px; font-weight: 500; line-height: normal;}
.bookBoxMobile .slideInfoBox img {display: block; width: 24px;}

:root {
    --afterHeight : 100%
}

.bookBoxMobile .slide:has(.slideInfoBox.on)::after {animation: slideInfo 1s linear forwards; content: ""; position: absolute; top: 0; left: 0; width: 100%; height: var(--afterHeight); pointer-events: none; background: rgba(0, 0, 0, 0.50);}
.bookBoxMobile .slideInfoBox.on {animation: slideInfo 1s linear forwards; opacity:1;}


.iframePop {position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; pointer-events: none;  z-index: 1;}
.iframePop .bg {position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background-color: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity .3s;}
.iframePop .inner {display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 95%; max-width: 1480px; height: 85%; max-height: 920px; padding: 40px; background-color: white;opacity: 0; pointer-events: none;}
.iframePop .closePop {position: absolute; bottom: 100.5%; right: 0; width: 38px; height: 38px; border-radius: 50%;}
.iframePop .closePop::after {content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(45deg); width: 2px; height: 28px; background-color: white; border-radius: 2px; }
.iframePop .closePop::before {content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-45deg); width: 2px; height: 28px; background-color: white; border-radius: 2px; }
.iframePop iframe {width: 100%; height: 100%;}

.iframePop.on,
.iframePop.on .bg {opacity: 1; pointer-events: all;}
.iframePop.on .inner {display: block;opacity: 1; pointer-events: all;}



@keyframes slideInfo {
    0% {opacity: 0; }
    15% {opacity: 1; }
    70% {opacity: 1; }
    100% {opacity: 0; }
}

@media (max-width:900px) {
    
    .bookBox, .sideSwiper { display: none;}
    .bookBoxMobile, .sideMobSwiper { display: block;}
    
    #flipbook.end {margin-left: 48vw !important;}
    #flipbook .shadow {height: 100% !important;}
    
    .turnjs-slider {width: 500px;}
    .turnjs-slider .ui-slider-horizontal {width: 420px;}
    
    .sideNav {width: 100%; padding: 100px 30px; background: #1F1F1F;}
    .sideNav .swiper-slide span { margin-top: 6px; font-size: 16px;}
    
    .sideNav .swiper-button-next.swiper-button-disabled, 
    .sideNav .swiper-button-prev.swiper-button-disabled {opacity: 0;}
    .sideNav .swiper-button-next { bottom: 30px; left: 50%;} 
    .sideNav .swiper-button-prev { top: 30px; right: 50%;}
    
    .iframePop .inner { max-width: 600px; padding: 15px;}
    .iframePop .closePop {bottom: -19px; right: 50%; transform: translateX(50%); background-color: rgba(51, 51, 51, 0.50);}
    .iframePop .closePop::after, .iframePop .closePop::before {height: 20px;}
}

@media (max-width:500px) {
    
    .sideNav {padding: 90px 30px;}
    
    .sideSwiper .swiper-slide-active .imgBox::after {border-width: 4px;}
    
    .sideMobSwiper .flexBox {gap: 0 20px;}
    
    .bottom {padding: 0 15px;}
    .bottom .left .ham {margin-right: 15px;}
    .bottom .left p {font-size: 14px;}
    .bottom .right {font-size: 14px;}
    
    .iframePop .inner {top: 10px; transform: translateX(-50%); height: 95%; max-height: calc(100dvh - 80px);}
    
}

@media (max-width:400px) and (max-height:800px) {
    .bookBoxMobile .slide1 .visual {max-height: calc(100dvh - 305px);}
    
}












