
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/**手風琴效果開始**/

.accordion-group li:nth-child(3) .accordion-overlay { background-color: #72318E;opacity: 0.8; }
.accordion-group li:nth-child(3).out .accordion-overlay { background-color: #72318E;opacity: 0;}
.accordion-group li:nth-child(2) .accordion-overlay { background-color: #BE86B9;opacity: 0.8;}
.accordion-group li:nth-child(2).out .accordion-overlay {  background-color: #BE86B9;opacity: 0;}
.accordion-group li:nth-child(1) .accordion-overlay { background-color: #E40080;opacity: 0.8;}
.accordion-group li:nth-child(1).out .accordion-overlay { background-color: #E40080;opacity: 0;}
a { color: inherit; }
a.active,
a:active,
a:focus,
a:hover { color: inherit; text-decoration: none;}

/**風琴外框**/
.accordion-group {
  overflow: hidden; margin: 0 auto 50px auto; padding: 0; list-style: none; width: 100%; height: 600px;
  display: flex; align-items: center; -webkit-transition: all 300ms ease; -moz-transition: all 300ms ease; transition: all 300ms ease;
}
.accordion-group li {
  cursor: pointer; position: relative; display: flex; flex-flow: row wrap; /**mei加**/
  overflow: hidden; margin: 0; padding: 1.6em; list-style: none; width: 25.66666667%; height: inherit;
  background-position: left center;/**原center**/ background-size: cover; background-repeat: no-repeat;
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
/**標題、人名**/
.accordion-group li h3 {
  position: relative; color: #fff; text-transform: uppercase; letter-spacing: 0.15rem; padding: 0;
  font-size: 1.8em; width: 100%;/**mei加**/ font-weight: 600;/**原300**/ margin: 6.5rem 0 0; /**上 左右 下**/ text-shadow: rgba(33, 29, 34, 0.7) 2px 2px 8px;
}
.accordion-group li .accordion-overlay {
  position: absolute; height: 100%; width: 100%; left: 0; top: 0;
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
.accordion-group li section { display: flex; align-items: center;  /**center**/ width: 100%;/**攤開的寛**/ height: 100%;}
.accordion-group li section.big-section { width: 100%; }

/**內文區塊**/
.accordion-group li section article {
  display: table-cell; vertical-align: bottom; /**原middle*/ padding: 5rem 0 0 0; position: relative; right: -200%;
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
/**介紹內文**/
.accordion-group li section article p {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.6rem;
  color: #333;
  font-size: 1.15rem;
  letter-spacing: 0.05rem;
  width: 85%; margin: 0 auto;/**mei加**/
}
.accordion-group li section article p:before,
.accordion-group li section article p:after {
  content: "";
  display: block;
  height: 1px;
}
.accordion-group li.out { width: 50%;}
.accordion-group li.out section article { right: 0;}



@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/**gallery**/
/* GALLERY ITEMS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
.fg-gallery:after {
  content: "";
  display: block;
  clear: both;
}
.fg-gallery img{ width: 100%; height: auto;}
.gallery-items {
  cursor: pointer;
  float: left;
  overflow: hidden;
  height: 0; /*220px */
  width: 32%;
  padding-bottom: 23.5%;
  margin-right: 2%;
  margin-bottom: 2%;
}
/*GALLERY COLUMNS 一行幾欄 手機版 需改為cols2的 49%*/
.cols-2 .gallery-items { width: 49%;}
.cols-2 .gallery-items:nth-child(2n) { margin-right: 0;}

.cols-3 .gallery-items { width: calc(96% / 3);}
.cols-3 .gallery-items:nth-child(3n) { margin-right: 0;}

.cols-4 .gallery-items { width: calc(94% / 4);}
.cols-4 .gallery-items:nth-child(4n) { margin-right: 0;}

.cols-5 .gallery-items { width: calc(92% / 5);}
.cols-5 .gallery-items:nth-child(5n) { margin-right: 0;}

/**燈箱模式**/
.body-cover {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
}
.body-cover.active  {
  opacity: 1;
  visibility: visible;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
}

.body-cover.active img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  opacity: 0;
  visibility: hidden;
  -webkit-animation: scale .3s .3s ease forwards;
          animation: scale .3s .3s ease forwards;
  box-shadow: 0 0 180px 0 rgb(24, 24, 24);
  border-radius: 5px;
}
@-webkit-keyframes scale {
  to { opacity: 1; visibility: visible; -webkit-transform: scale(1); transform: scale(1) }
}
@keyframes scale {
  to { opacity: 1; visibility: visible; -webkit-transform: scale(1); transform: scale(1) }
}

/* arrows */
.gallery-arrow {
  position: fixed; top: 47%; width: 30px; height: 30px; z-index: 9999; cursor: pointer; }
.gallery-arrow > svg {
  fill: #fff;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  -webkit-transform: scale(1);
          transform: scale(1);
}
.gallery-arrow:active svg {
  -webkit-transition-duration: .0s;
          transition-duration: .0s;
  -webkit-transform: scale(.9);
          transform: scale(.9);
}
.next-btn { right: 25px; }
.prev-btn { left: 25px;}
/* close button */
.close-btn {
  position: fixed; display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center;  -ms-flex-align: center; align-items: center;
  top: 0; right: 0; width: 75px; height: 75px; z-index: 9999; cursor: pointer;}

.close-btn svg {
  fill: #fff; width: 15px; height: 15px; -webkit-transition: all .5s ease; transition: all .5s ease;
  -webkit-transform: rotateZ(0deg);
          transform: rotateZ(0deg);
}
.close-btn:hover svg {
  -webkit-transform: rotateZ(180deg);
          transform: rotateZ(180deg);
}

/* 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ 以下為 手機版－－－－－－－－－－－－－－－－－－ */
@media screen and (max-width: 766px) {
/**風琴外框**/
.accordion-group {
  overflow: hidden;  margin: 0 auto 50px auto; padding: 0; list-style: none; width: 100%; height: 360px;
  display: flex; align-items: center; -webkit-transition: all 300ms ease; -moz-transition: all 300ms ease; transition: all 300ms ease;
}
.accordion-group li {
  cursor: pointer; position: relative; display: flex; flex-flow: column nowrap; /**mei加**/
  overflow: hidden; margin: 0; padding: 0.6em; list-style: none; width: 10.66666667%; height: inherit;
  background-position: left center;/**原center**/ background-size: cover; background-repeat: no-repeat;
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
/**標題、人名**/
.accordion-group li h3 {
  position: relative; color: #fff; text-transform: uppercase; letter-spacing: 0.05rem; padding: 0;
  font-size: 0.95em; width: 100%; height: 40%;/**mei加**/ font-weight: 500;/**原300**/ margin: 0.5rem 0 0; /**上 左右 下**/
}
.accordion-group li .accordion-overlay {
  position: absolute; height: 100%; width: 100%; left: 0; top: 0;flex-flow: column wrap;  align-items: flex-end; 
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
/**內文區塊**/
.accordion-group li section { display: block;  /**center**/ width: 100%;height: 50%;}
.accordion-group li section.big-section { width: 100%;/**攤開的寛**/  }
.accordion-group li section article {
  display: flex;/**原middle*/  position: relative; right: -200px; height: 50%; bottom: 0;
  -webkit-transition: all 250ms ease-in-out; -moz-transition: all 250ms ease-in-out; transition: all 250ms ease-in-out;
}
.accordion-group li section article p {
  background-color: rgba(255, 255, 255, 0.8); position: absolute; bottom: -100px; padding: 15px; color: #333; font-size: 0.9rem; letter-spacing: 0.05rem;  width: 100%; margin: 0 auto;/**mei加**/ }
.accordion-group li section article p:before,
.accordion-group li section article p:after {
  content: "";
  display: block; width: 1px;
  height: 1px;
}
/* 全顯區 */
.accordion-group li.out { width: 100%;}
.accordion-group li.out section article { right: 0;}


/**** 藝人區**/
.cols-4 .gallery-items { width: 49%;}
.cols-4 .gallery-items:nth-child(2n) { margin-right: 0;}



/* arrows */
.gallery-arrow {
  position: fixed; top: 45%; width: 25px; height: 25px; z-index: 9999; cursor: pointer; background: rgba(0, 0, 0, 0.7); padding: 3px 3px 10px 3px; border-radius: 50%; }
.gallery-arrow > svg {
  fill: #fff;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  -webkit-transform: scale(1);
          transform: scale(1);
}
.gallery-arrow:active svg {
  -webkit-transition-duration: .0s;
          transition-duration: .0s;
  -webkit-transform: scale(.9);
          transform: scale(.9);
}
.next-btn { right: 10px; }
.prev-btn { left: 10px;}

}