@media(max-width:767px){
    body{
        height: 100%;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    align-items: center;
}
}
/* Sample 1*/
#box1{
	position:absolute;
}
#box1 span{
	display:block;
	float:left;
}

/* Sample 2*/
#box2{
	position:absolute;
}
#box2 span{
	display:block;
	float:left;
}

/* Sample 3*/
#box3{
	position:absolute;
}
#box3 span{
	display:block;
	float:left;
}

/* Sample 4*/
#box4{
	position:absolute;
}
#box4 div{
	text-align:center;
}

#box4 h3, #box4 p, #box4 ul{
	padding:5px 10px;
}
#box4 p{
	text-indent:16px;
}
#box4 img{	
	float:left;
}

#divimg{
border: 1px solid #000;
}

#info4{
	color:#fff !important;
  font-size:14px;
  font-weight: normal;
  text-decoration:none;
}

/* Sample 5*/
#box5{
	position:absolute;
	
}
#box5 span{
	display:block;
}
#info5{
	bottom:0;
}

/* Sample 6*/
#box6{
	position:absolute;
	width:240px;
}
#box6 span{
	display:block;
}
#handles6_1{
	float:left
}
#handles6_2{
	float:right
}
.mask6{
	position:absolute;
	left:50%;
	margin-left:-120px;
	width:240px;
	height:180px;
	overflow:hidden;
}
.sample6 .buttons{
	clear:both;
	text-align:center;
}

/* Sample 7*/
#box7{
	position:absolute;
}
#box7 span{
	display:block;
	float:left;
}

#thumbs7{
	position:relative;
	width:486px;
	clear:both;
	height:41px;
	overflow:hidden;
	margin-top:200px;
}
#thumbs7 .thumbs, #thumbs_handles7, #thumbs_mask7{
	position:absolute;
	top:0;
	width:100%;
	height:41px;
}
#thumbs7 .thumbs div, #thumbs_handles7 span{
	display:block;
	width:60px;
	height:41px;
	margin:0;
	float:left;
	cursor:pointer;
}
#thumbs7 .thumbs div img{
	width:54px;
	float:right;
}
#thumbs_handles7 span{
	background:url(thumb_invisible.gif) no-repeat;
}
#thumbs_mask7{
	width:1200px;
	background:url(thumbs_mask.gif) no-repeat center top;
}

/* Sample 8*/
#box8{
	position:absolute;
}
#box8 div{
	width:480px;
	float:left;
}
#box8 .buttons{
	text-align:left
}
#box8 .next{
	float:right
}
.sample8 .buttons{
	text-align:center;
	clear:both;
}
.sample8 .mask1{
	border-top:1px solid #ccc;
	border-bottom:1px solid #ccc;
}

/* ********************************** */

.thumbs{
	width:54px;
}
.thumbs div{
	display:block;
	width:54px;
	height:41px;
	margin:3px 0;
	cursor:pointer;
}

.thumbs div img{
	display:block;
	width:100%;
	height:100%;
	border:none
}

.info{
	width:240px;
	height:50px;
	background:#000;
	position:absolute;
}
.info p, .info h4{
	color:#fff;
	padding:3px 8px;
	font-family:Arial;
}
.info h4{
	font-size:14px;
}
.info h4 a{
	float:right;
	background:#fff;
	color:#000;
	font-size:10px;
	padding:0 3px;
	text-decoration:none;
}

.mask1{
	position:relative;

	overflow:hidden;
}
.mask2{
	position:relative;

	overflow:hidden;
}
.mask3{
	position:relative;
	text-align:center;
  margin: 0 auto;
  border: 3px double #04B1E9;	
  
}


span img{
	display:block;
	border:none;
}

.act a{
  color: #0000FF;
  font:10pt Verdana;
}
.act a:hover{
  color: #ff0000;
  font:10pt Verdana;
}

.ina a{
  color: #000000;
  text-decoration: none;
  cursor:default;
  font:10pt Verdana;
}

.textimg{
  padding:5px;
  margin-top:0px;
  background-color:#000;
  color:#fff;
  font:10pt Verdana;
  text-align:center;
}
#imagecount{
  /*padding:5px;*/
  padding-top:5px;
  margin-top:-18px;
  background-color:#fff;
  color:#000;
  text-align:center;
  font:10pt Verdana;
}


#cont{
  background-color:#fff;
  margin:0px auto;  
}

#btnright{right: 0;}
#btnleft{left: 0;}




@media (min-width: 481px){
    #imagebtn{
        color:#000;
        font:10pt Verdana;
        text-align:center;
        position: absolute; top: 50%; width: 100%; margin: 0px;
        height: 100%;
        position: absolute;
        top: 0;
    }
    span img{
        top: 45%;
        position: absolute;
    }
    #btnright{padding: 0px 0 0 10px;}
    #btnleft{padding: 0px 10px 0 0px;}
    
    #btnright, #btnleft{
        cursor: pointer;
        position: absolute;
        top: 0;
         
        color: #999;
        font-weight: bold;
        font-size: 20px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none !important;
        height: 100%;
        width: 46px;
    }
    #thisimage{max-height: 390px;}
}

@media (max-width: 480px){
 
    /*#imagebtn{margin: 0px; width: 95%;}
    #inac{width: 49%;float: left;}
    #ac{width: 49%;float: right;}
    
    #inac a, #ac a{width: 100%; display: block;}*/
     #imagebtn{
        color:#000;
        font:10pt Verdana;
        text-align:center;
        position: absolute; top: 50%; width: 100%; margin: 0px;
        height: 100%;
        position: absolute;
        top: 0;
    }
    span img{
        top: 45%;
        position: absolute;
    }
    #btnright, #btnleft{
        cursor: pointer;
        position: absolute;
        top: 0;
         padding: 0px 10px;
        color: #999;
        font-weight: bold;
        font-size: 20px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none !important;
        height: 100%;
        width: 46px;
    }
    #thisimage{max-height: 390px;}
}
