.popupBannerWrapper {
    position: relative;
    width: 500px;
    margin: 0 auto;
    background-color: #fff;
}
.popupBannerWrapper .sliders {
	width: 100%;
	height: 100%;
}

.popupBannerWrapper .sliders .slide {
	display: none;
	width: 100%;
	height: 100%;
}
.popupBannerWrapper .sliders .slide.active {
	display: inline-block;
}

.popupBannerWrapper .sliders .slide p {
	/*position: absolute;
	width: calc(100% - 30px);
    height: calc(100% - 60px);
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;*/
    /*color: #715535;
    font-size: 18px;
    overflow-y: auto;*/
}
.popupBannerWrapper .scrollArea {
	width: calc(100% - 30px);
	height: calc(100% - 50px);
	margin: 25px auto;
	overflow-y: auto;
	overflow-x: hidden;
}
.popupBannerWrapper .scrollArea .scrollContent {
	width: calc( 100% - 20px );
	color: #715535;
    font-size: 18px;
}
.popupBannerWrapper .scrollArea .scrollContent a {
	color: #CE5E25;
}
.popupBannerWrapper .scrollArea .scrollContent a:hover {
	color: #CE5E25;
	text-decoration: none;
}

.popupBannerWrapper .scrollArea .scrollContent p {
		color: #715535;
    font-size: 18px;
    word-break: break-all;
}
.popupBannerWrapper .scrollArea .scrollContent h1, 
.popupBannerWrapper .scrollArea .scrollContent h2,
.popupBannerWrapper .scrollArea .scrollContent h3,
.popupBannerWrapper .scrollArea .scrollContent h4,
.popupBannerWrapper .scrollArea .scrollContent h5,
.popupBannerWrapper .scrollArea .scrollContent h6 {
	color: #CE5E25;
}
::-webkit-scrollbar {
	width: 5px;
}
::-webkit-scrollbar-track {
  background: #fbf8f3; 
}
::-webkit-scrollbar-thumb {
  background: #efece8; 
}
::-webkit-scrollbar-thumb:hover {
  background: #e4e2df; 
}

.popupBannerWrapper .btnCloseOld {
	position: absolute;
    width: 50px;
    height: 50px;
    background: url(../images/popupBanner/btnClose.png) center no-repeat;
    background-size: 30px 30px;
    top: 0;
    right: 0;
}
.popupBannerWrapper .btnClose {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url(../images/popupBanner/btnClose.png) center no-repeat;
    background-size: 16px 16px;
    top: -25px;
    right: -25px;
    border-radius: 25px;
    background-color: #2d2d2d;
}
.popupBannerWrapper .btnPrev {
	position: absolute;
    width: 50px;
    height: 100%;
    background: url(../images/popupBanner/btnPrev.png) center no-repeat;
    top: 0;
    left: -60px;
}
.popupBannerWrapper .btnNext {
	position: absolute;
    width: 50px;
    height: 100%;
    background: url(../images/popupBanner/btnNext.png) center no-repeat;
    top: 0;
    right: -60px;
}
.popupBannerWrapper .btnPrev.hide, .popupBannerWrapper .btnNext.hide {
	display: none;
}
.popupBannerWrapper.popupBannerAnimation {
	position:relative;
	width:450px;
	height:450px;
	background-color:#fff;
	border:10px solid #fff;
	-webkit-border-radius:10px;
	-moz-border-radius:10px;
	-ms-border-radius:10px;
	-o-border-radius:10px;
	border-radius:10px;
}
.popupBannerWrapper.popupBannerAnimation video {
	position:relative;
	width:800px;
	height:450px;
}




.CSSgal {

	position: relative;
	overflow: hidden;
	height: 100%; /* Or set a fixed height */
	border-radius: 8px;
}

/* SLIDER */

.CSSgal .slider {
	height: 100%;
	white-space: nowrap;
	font-size: 0;
	transition: 0.8s;
}

.CSSgal .slider p {
	color: #76542f;
	font-family: "Din Next Rounded","cwtexqyuan",Arial,Helvetica,"微軟正黑體","Microsoft JhengHei","Heiti TC","LiHei Pro","新細明體",PMingLiU,sans-serif;
	font-size: 16px;
}

/* SLIDES */

.CSSgal .slider > * {
	font-size: 1rem;
	display: inline-block;
	white-space: normal;
	vertical-align: top;
	width: 100%;
	height: calc(100% - 80px);
	background: none 50% no-repeat;
	background-size: cover;
}

/* PREV/NEXT, CONTAINERS & ANCHORS */

.CSSgal .prevNext {
	position: absolute;
	z-index: 1;
	bottom: 0;
	width: 100%;
	height: 0;
}

.CSSgal .prevNext > div+div {
	visibility: hidden; /* Hide all but first P/N container */
}

.CSSgal .prevNext a {
	color: #fff;
	position: absolute;
	width:       40px;
	height:      40px;
	line-height: 40px; /* If you want to place numbers */
	text-align: center;
	-webkit-transition: 0.3s;
					transition: 0.3s;
	/*-webkit-transform: translateY(-50%);
					transform: translateY(-50%);*/
	left: 20px;
    bottom: 20px;
    opacity: 1;
}
.CSSgal .prevNext a:hover {
	opacity: 0.7;
}
.CSSgal .prevNext a+a {
	left: auto;
	right: 20px;
}

.CSSgal .popClose.btnCloseSmall {
	position: absolute;
    width: 40px;
    height: 40px;
    background: url(/images/common/xpopClose.png.pagespeed.ic.shCC3OPO8T.webp) center no-repeat;
    background-size: 40% auto;
    top: 10px;
    right: 10px;
    background-color: #d8a72c;
}

.CSSgal .btnClose {
	color: #fff;
    background: #d8a72c;
    border-radius: 8px;
    display: block;
    position: absolute;
    padding: 10px 30px;
    font-size: 16px;
    font-family: "Din Next Rounded","cwtexqyuan",Arial,Helvetica,"微軟正黑體","Microsoft JhengHei","Heiti TC","LiHei Pro","新細明體",PMingLiU,sans-serif;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 20px;
}

/* NAVIGATION */

.CSSgal .bullets {
	position: absolute;
	z-index: 2;
	bottom: 0;
	padding: 10px 0;
	width: 100%;
	text-align: center;
}
.CSSgal .bullets > a {
	display: inline-block;
	width:       30px;
	height:      30px;
	line-height: 30px;
	text-decoration: none;
	text-align: center;
	background: rgba(255, 255, 255, 1);
	-webkit-transition: 0.3s;
					transition: 0.3s;
}
.CSSgal .bullets > a+a {
	background: rgba(255, 255, 255, 0.5); /* Dim all but first */
}
.CSSgal .bullets > a:hover {
	background: rgba(255, 255, 255, 0.7) !important;
}

/* NAVIGATION BUTTONS */
/* ALL: */
.CSSgal >s:target ~ .bullets >* {      background: rgba(255, 255, 255, 0.5);}
/* ACTIVE */
#popup1:target ~ .bullets >*:nth-child(1) {background: rgba(255, 255, 255,   1);}
#popup2:target ~ .bullets >*:nth-child(2) {background: rgba(255, 255, 255,   1);}
#popup3:target ~ .bullets >*:nth-child(3) {background: rgba(255, 255, 255,   1);}
#popup4:target ~ .bullets >*:nth-child(4) {background: rgba(255, 255, 255,   1);}
#popup5:target ~ .bullets >*:nth-child(5) {background: rgba(255, 255, 255,   1);}
#popup6:target ~ .bullets >*:nth-child(6) {background: rgba(255, 255, 255,   1);}
#popup7:target ~ .bullets >*:nth-child(7) {background: rgba(255, 255, 255,   1);}
#popup8:target ~ .bullets >*:nth-child(8) {background: rgba(255, 255, 255,   1);}
#popup9:target ~ .bullets >*:nth-child(9) {background: rgba(255, 255, 255,   1);}
#popup10:target ~ .bullets >*:nth-child(10) {background: rgba(255, 255, 255,   1);}
#popup11:target ~ .bullets >*:nth-child(11) {background: rgba(255, 255, 255,   1);}
#popup12:target ~ .bullets >*:nth-child(12) {background: rgba(255, 255, 255,   1);}
#popup13:target ~ .bullets >*:nth-child(13) {background: rgba(255, 255, 255,   1);}
#popup14:target ~ .bullets >*:nth-child(14) {background: rgba(255, 255, 255,   1);}
#popup15:target ~ .bullets >*:nth-child(15) {background: rgba(255, 255, 255,   1);}
#popup16:target ~ .bullets >*:nth-child(16) {background: rgba(255, 255, 255,   1);}
#popup17:target ~ .bullets >*:nth-child(17) {background: rgba(255, 255, 255,   1);}
#popup18:target ~ .bullets >*:nth-child(18) {background: rgba(255, 255, 255,   1);}
#popup19:target ~ .bullets >*:nth-child(19) {background: rgba(255, 255, 255,   1);}
#popup20:target ~ .bullets >*:nth-child(20) {background: rgba(255, 255, 255,   1);}
/* More slides? Add here more rules */

/* PREV/NEXT CONTAINERS VISIBILITY */
/* ALL: */
.CSSgal >s:target ~ .prevNext >* {      visibility: hidden;}
/* ACTIVE: */
#popup1:target ~ .prevNext >*:nth-child(1) {visibility: visible;}
#popup2:target ~ .prevNext >*:nth-child(2) {visibility: visible;}
#popup3:target ~ .prevNext >*:nth-child(3) {visibility: visible;}
#popup4:target ~ .prevNext >*:nth-child(4) {visibility: visible;}
#popup5:target ~ .prevNext >*:nth-child(5) {visibility: visible;}
#popup6:target ~ .prevNext >*:nth-child(6) {visibility: visible;}
#popup7:target ~ .prevNext >*:nth-child(7) {visibility: visible;}
#popup8:target ~ .prevNext >*:nth-child(8) {visibility: visible;}
#popup9:target ~ .prevNext >*:nth-child(9) {visibility: visible;}
#popup10:target ~ .prevNext >*:nth-child(10) {visibility: visible;}
/* More slides? Add here more rules */

/* SLIDER ANIMATION POSITIONS */

#popup1:target ~ .slider {transform: translateX(   0%); -webkit-transform: translateX(   0%);}
#popup2:target ~ .slider {transform: translateX(-100%); -webkit-transform: translateX(-100%);}
#popup3:target ~ .slider {transform: translateX(-200%); -webkit-transform: translateX(-200%);}
#popup4:target ~ .slider {transform: translateX(-300%); -webkit-transform: translateX(-300%);}
#popup5:target ~ .slider {transform: translateX(-400%); -webkit-transform: translateX(-400%);}
#popup6:target ~ .slider {transform: translateX(-500%); -webkit-transform: translateX(-500%);}
#popup7:target ~ .slider {transform: translateX(-600%); -webkit-transform: translateX(-600%);}
#popup8:target ~ .slider {transform: translateX(-700%); -webkit-transform: translateX(-700%);}
#popup9:target ~ .slider {transform: translateX(-800%); -webkit-transform: translateX(-800%);}
#popup10:target ~ .slider {transform: translateX(-900%); -webkit-transform: translateX(-900%);}
/* More slides? Add here more rules */


/* YOU'RE THE DESIGNER! 
   ____________________
   All above was mainly to get it working :)
   CSSgal CUSTOM STYLES / OVERRIDES HERE: */

.CSSgal{
	color: #fff;	
	text-align: center;
}
.CSSgal .slider h2 {
	margin-top: 40vh;
	font-weight: 200;
	letter-spacing: -0.06em;
	word-spacing: 0.2em;
	font-size: 3em;
}
.CSSgal a {
	border-radius: 50%;
	margin: 0 3px;
	color: rgba(0,0,0,0.8);
	text-decoration: none;
}
