@charset "utf-8";

/* CSS Document */


/* --------------------
   Carousel Animate
   -------------------- */

#imgBox {
    position: relative;
    display: block;
    padding: 0px;
    margin: 0px 40px;
    max-height: 100%;
}

#imgBox .owl-carousel {
    padding: 0px;
}

#imgBox .item {
    position: relative;
    overflow: hidden;
    padding: 0px 10px 0px 0px;
}

#imgBox .item a {
    /*display: block;*/
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: center;
    margin: 0px auto;
    outline: none;
    border: 0;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    cursor: pointer;
}



/* 滑入遮罩效果 */

#imgBox .item a:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0%;
    top: 0%;
    opacity: 0;
    -webkit-backface-visibility: hidden;
    transform: translateY(10px) rotateY(180deg);
    transform-style: preserve-3d;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
}

#imgBox .item a:after {
    content: " ";
    font-size: 15px;
    color: #FFF;
    text-align: center;
    opacity: 0;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    position: absolute;
    top: 0%;
    left: 0%;
    margin-top: 100px;
    width: 100%;
    height: 100%;
	
	
    background: rgba(0, 0, 0, 0.1);
    /* 遮罩背景色 */
}





/* 小圖 */

#imgBox .item a img {
    display: block;
    vertical-align: middle;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
}



/* 滑入遮罩文字 */

#imgBox .item a .txt {
    color: #FFF;
    /* 文字顏色 */
    font-size: 20px;
    /* 文字大小 */
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    transition: all 0.35s ease;
    -webkit-transition: all 0.35s ease;
    z-index: 1;
    opacity: 0;
}

#imgBox .item:hover a img {
    opacity: 0.2;
    transform: scale(1.1);
}

#imgBox .item:hover a .txt {
    opacity: 1;
}

#imgBox .item:hover a:before {
    opacity: 1;
    transform: translateY(-10px) rotateY(0deg);
}

#imgBox .item:hover a:after {
    opacity: 1;
    margin-top: 0px;
}

#imgBox .owl-theme .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -40px;
    width: 100%;
}

#imgBox .owl-theme .owl-nav .go-prev {
    position: absolute;
    left: -45px;
}

#imgBox .owl-theme .owl-nav .go-next {
    position: absolute;
    right: -35px;
}



/* --------------------
   Pop Out Animate
   -------------------- */


/* 遮罩 */

#overlay {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
   /* background-color: rgba(0, 0, 0, 0.75);*/
    /* 遮罩背景色 */
    z-index: 10000;
	background:none;
}





/* 秀圖區塊 */

#overlay .scal_img {
    position: relative;
    background: transparent;
    margin: 20px auto auto auto;
    padding: 0;
    /* 放大圖長寬 */
    width: 800px;
    max-height: 600px;
    /*--------------*/
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.25s;
    animation-name: animatetop;
    animation-duration: 0.25s;
}





/* 放大圖是否自動填滿秀圖區塊寬度 */

#overlay .scal_img img {
    width: 100%;
}





/* 關閉鈕 */

#overlay .close {
    color: #FFF;
    /* 文字顏色 */
    float: right;
    font-size: 60px;
    /* 文字大小 */
    font-weight: bold;
}

#overlay .close:hover,
#overlay .close:focus {
    color: #666;
    /* 滑入時的文字顏色 */
    text-decoration: none;
    cursor: pointer;
}






/* 動畫效果 */

@-webkit-keyframes animatetop {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -50px;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@media screen and (max-width: 800px) {
    /* 秀圖區塊 */
    #overlay .scal_img {
        /* 手機版放大圖長寬 */
        width: 96%;
        min-height: 100%;
        margin: 50px auto auto auto;
    }
}