/*!
 * baguetteBox.js
 * @author  feimosi
 * @version 1.3.2
 * @url https://github.com/feimosi/baguetteBox.js
 */

#baguetteBox-overlay {
	display: none;
	opacity: 0;
	position: fixed;
	overflow: hidden;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000000;
    background-color: rgba(27,29,41,.96);
	transition: opacity 0.5s ease;
}

#baguetteBox-overlay.visible {
	opacity: 1;
}

#baguetteBox-overlay .full-image {
	display: inline-block;
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
}

#baguetteBox-overlay .full-image figure {
	/*display: inline;
	margin: 0;
	height: 100%;
	position:relative;*/
    width: 751px;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: #1b1d29;
    border: 1px solid #494b53;
    padding: 25px;
    display: flex;
    align-items: flex-start;
}

#baguetteBox-overlay .full-image img {
	display: inline-block;
	width: auto;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	vertical-align: middle;
	/*-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);*/
}

#baguetteBox-overlay .full-image figcaption {
	/*display: block;
	position: absolute;
	*//*bottom: 0;*//*
	width: 100%;
	text-align: center;
	line-height: 2.5;
	color: #ccc;
	background-color: #000;
	background-color: rgba(0, 0, 0, 0.6);
	font-family: sans-serif;
	margin-top: -40px;
    left: 50%;
    margin-left: -50%;*/
    display: block;
    width: 100%;
    text-align: justify;
    white-space: normal;
    padding-left: 30px;
    /*padding: 0 30px;
    overflow-y: scroll;
    height: 500px;*/
}
#baguetteBox-overlay .full-image figcaption h3{
    font-size: 18px;
    line-height: 1;
    margin: 28px 0 20px 0;
    color: #fff;
    font-family:'pangmenzhengdao';
}
#baguetteBox-overlay .full-image figcaption p{
    font-size: 12px;
    color: #84878c;
}
#baguetteBox-overlay .full-image:before {
    content: "";
    display: inline-block;
    height: 50%;
    width: 1px;
    margin-right: -1px;
}

#baguetteBox-slider {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    transition: left 0.4s ease, -webkit-transform 0.4s ease;
    transition: left 0.4s ease, -moz-transform 0.4s ease;
    transition: left 0.4s ease, transform 0.4s ease;
}

#baguetteBox-slider.bounce-from-right {
    -webkit-animation: bounceFromRight 0.4s ease-out;
    animation: bounceFromRight 0.4s ease-out;
}

#baguetteBox-slider.bounce-from-left {
    -webkit-animation: bounceFromLeft 0.4s ease-out;
    animation: bounceFromLeft 0.4s ease-out;
}

.baguetteBox-button#next-button,
.baguetteBox-button#previous-button {
    display: block !important;
    top: 50%;
    top: calc(50% - 22px);
    width: 44px;
    height: 44px;
    border-radius: 180px;
    color: rgba(255,255,255,.4);
    background: #434657 url(../images/cjt.png) no-repeat center;
}

.baguetteBox-button:hover#next-button,
.baguetteBox-button:hover#previous-button {
    background: #f23d3a url("../images/cjt_h.png") no-repeat center;
}

.baguetteBox-button#next-button{
    transform: rotateY(-180deg);
}

.baguetteBox-button {
    position: absolute;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    border: 0;
    -moz-border-radius: 15%;
         border-radius: 15%;
    background-color: #323232;
    background-color: rgba(50, 50, 50, 0.5);
    color: #ddd;
    font: 1.6em sans-serif;
    transition: background-color 0.4s ease;
}

.baguetteBox-button:hover {
    background-color: rgba(50, 50, 50, 0.9);
}
.baguetteBox-button#previous-button {
    left: 25%;
}

.baguetteBox-button#next-button {
    right: 25%;
}

.baguetteBox-button#close-button {
    top: 10%;
    right: 26%;
    right: calc(26% + 6px);
    width: 34px;
    height: 34px;
    background: url("../images/casecha.png") no-repeat center;
}

.baguetteBox-button svg {
    position: absolute;
    left: 0;
    top: 0;
    display: none;
}

.spinner {
	width: 40px;
	height: 40px;
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -20px;
	margin-left: -20px;
}

.double-bounce1,
.double-bounce2 {
	width: 100%;
	height: 100%;
	-moz-border-radius: 50%;
    border-radius: 50%;
	background-color: #fff;
	opacity: 0.6;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-animation: bounce 2s infinite ease-in-out;
    animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
	-webkit-animation-delay: -1s;
    animation-delay: -1s;
}

@-webkit-keyframes bounceFromRight {

    0% {
        margin-left: 0;
    }

    50% {
        margin-left: -30px;
    }

    100% {
        margin-left: 0;
    }

}

@keyframes bounceFromRight {

    0% {
        margin-left: 0;
    }

    50% {
        margin-left: -30px;
    }

    100% {
        margin-left: 0;
    }

}

@-webkit-keyframes bounceFromLeft {

    0% {
        margin-left: 0;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0;
    }

}

@keyframes bounceFromLeft {

    0% {
        margin-left: 0;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0;
    }

}

@-webkit-keyframes bounce {

    0%,100% {
        -webkit-transform: scale(0);
                transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }

}

@keyframes bounce {

    0%,100% {
        -webkit-transform: scale(0);
           -moz-transform: scale(0);
                transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
           -moz-transform: scale(1);
                transform: scale(1);
    }

}


@media (min-width:1601px) and (max-width:1850px){
    .baguetteBox-button#previous-button {
        left: 21%;
    }
    .baguetteBox-button#next-button {
        right: 21%;
    }
    .baguetteBox-button#close-button{
        top: 9%;
        right: 20%;
        right: calc(20% + 6px);
    }
}

@media (min-width:1401px) and (max-width:1600px){
    .baguetteBox-button#previous-button {
        left: 20%;
    }
    .baguetteBox-button#next-button {
        right: 20%;
    }
    .baguetteBox-button#close-button{
        top: 9%;
        right: 20%;
        right: calc(20% + 6px);
    }
}

@media (min-width:1201px) and (max-width:1400px){
    .baguetteBox-button#previous-button {
        left: 10%;
    }
    .baguetteBox-button#next-button {
        right: 10%;
    }
    .baguetteBox-button#close-button{
        top: 9%;
        right: 10%;
        right: calc(10% + 6px);
    }
}

@media(max-width:1200px) {
    .baguetteBox-button#previous-button {
        left: 5%;
    }
    .baguetteBox-button#next-button {
        right: 5%;
    }
    .baguetteBox-button#close-button{
        top: 10px;
        right: 2%;
        right: calc(2% + 6px);
    }
}

@media(max-width:768px) {
    #baguetteBox-overlay .full-image figure{
        display: inherit;
        width: 431px;
    }
    .baguetteBox-button#previous-button {
        left: 12%;
    }
    .baguetteBox-button#next-button {
        right: 12%;
    }
    #baguetteBox-overlay .full-image figcaption{
        padding-left: 0;
    }
}

@media(max-width:600px) {
    .baguetteBox-button#next-button, .baguetteBox-button#previous-button{
        top: calc(50% - 17px);
        width: 34px;
        height: 34px;
    }
    .baguetteBox-button#previous-button {
        left: 2%;
    }
    .baguetteBox-button#next-button {
        right: 2%;
    }
    #baguetteBox-overlay .full-image figure{
        width: 70%;
        padding: 5px;
    }
    #baguetteBox-overlay .full-image figcaption{
        padding: 0 15px 15px 15px;
    }
    #baguetteBox-overlay .full-image figcaption h3{
        margin: 20px 0;
    }
}