﻿ /*--banner裝飾線 --*/
.cms-main-area{  padding-bottom: 50px; background: url("../images/index/bg-dot.svg") repeat 50% top #f5f5f5;background-size:60% auto; background-attachment: fixed; }
.cms-top.cms-main-area{margin-top: 50px;}

.cms-video { width:calc(100% - 120px); padding: 20px 60px; margin:2% auto 10% auto; display: flex; flex-wrap: wrap;  flex-direction: row; }
.cms-video li{ width: calc(100%/3 - 30px); margin: 50px 15px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center;  position: relative; transition: all 0.3s linear 0s;  overflow: hidden; }
.cms-video li:hover { }
.cms-video li .cms-video-pic { width:100%; max-width:100%; height: auto;  transition: all 0.5s ease 0s; position: relative;}
.cms-video li .cms-video-pic img { width: 100%; max-width:100%; transition: all 0.5s ease 0s;   }
.cms-video li:hover .cms-video-pic img { transform: scale(1.05);  opacity: 0.85; box-shadow: 0 1px 35px 0 rgba(0, 0, 0, 0.3);}
.cms-video-title { width: 100%; max-height: 60px; margin:10px auto;  padding:10px; color:#000; font-size:1.35rem; line-height: 1.5rem;  font-weight:400; text-align: center; overflow: hidden; word-break:normal;  text-overflow: ellipsis;  display: -webkit-box; -webkit-line-clamp: 2;  -webkit-box-orient: vertical; }
.cms-video .cms-btn-play {  transform: scale(0.5);  margin:-68px auto auto auto; z-index:2;    }


@media (max-width: 990px) {
 .cms-video { width:calc(100% - 30px); padding: 20px 15px; }   
}



@media (max-width: 767.98px) {
.cms-main-banner{ background-color:#db0632;   }
.cms-video li{ width: 100%; margin: 30px auto;}
.fancybox-slide--iframe .fancybox-content { padding: 0px;  width: 100%!important; height: 80%; max-width: calc(100% - 10px); max-height: calc(100% - 100px);}
}