/*------------------------------------------------------------------Start hover img-----------------------------------------------------------------*/
.gallery-bg {
  box-sizing: border-box;
  float: left;
  height: 45px;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
    
}
#gallery {
	border:0px solid #c2c2c2;
	border-radius: 0px;
	box-sizing: border-box;
	float: left;
	height: auto;
	margin:0px 0 20px 0;
	padding: 0 0 0px;
	position: relative;
	width: 57%;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0) url("../images/desc-bg.jpg") repeat scroll center top;
	border: solid 1px #f2f3f5;
	background-color: #fff;
}
#gallery #slides {
  float: none;
  height: auto;
  margin: 0 auto;
  max-width: 900px;
  overflow: hidden;
  text-align: center;
  width: 100%;
  z-index: 500;
  justify-content: center;
  display: flex;
  margin-top: 20px;
}
#slides > div {
  margin-top: 0px;
}
#gallery #slides div ul {
  display: table;
  height: auto;
  list-style: outside none none;
  margin: 0 auto;
  padding: 0;
  width: auto;
}
#gallery #slides div ul li {
  float: left;
  height: auto;
  margin: 0 5px 5px;
  padding: 0;
  width: auto;
}
#gallery #slides div ul li:last-child {
 _ margin-right: 0;
}
#gallery .big-img-wpr {
  background-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  float: none;
  height: 380px;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  background-color: #fff;
}
#gallery div.img-wpr {
  _background-color: #fff;
  border:0px solid #333646;
  border-radius:0px;
  bottom: 0;
  height: 350px;
  /* left: 0px; */
  margin:0 auto;
  max-width: 100%;
  position: absolute;
  right: 0;
  top:20px;
  width: 500px;
  margin-left: auto;
  margin-right: AUTO;
  display: flex;
  justify-content: center;
}
#gallery div.img-wpr .img-box {
  display: table-cell;
  height: 380px;
  margin: 0 auto;
  max-width: 100%;
  padding: 0;
  vertical-align: middle;
  width: auto;
  border:0px solid #c2c2c2;
  background-color: #fff;
}
#gallery div.img-wpr .big-img {
  display: flex;
  height: 100%;
  margin: 0 auto;
  max-height: 350px;
  max-width: 430px;
  vertical-align: middle;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  width: auto;
}
#gallery .thumb {
  _background-color: #fff;
  border: 0px solid #c2c2c2;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  display: table-cell;
  _float: left;
  height: 75px;
  vertical-align: middle;
  width: 75px;
  border: solid 1px #f2f3f5;
}
#gallery .thumb > img {
  display: table-cell;
  height: auto;
  margin: 0 auto;
  max-height: 70px;
  max-width: 75px;
  vertical-align: middle;
  width: auto;
}
#gallery #slides div#slide1 ul:first-child li:first-child .img-wpr {
  z-index: 1;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}
#gallery #slides input {
  display: none;
}
#gallery #slides input:checked ~ .img-wpr {
  z-index: 2;
}

#gallery #slides input ~ .img-wpr {
 _display:none;
}#gallery #slides input:checked ~ .img-wpr {
  display:block;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}
/*------------------------------------------------------------------Start hover img-----------------------------------------------------------------*/
@media (max-width: 767px)  {
	#gallery {
    width: 100%;
}
	#gallery div.img-wpr .big-img {
    max-height: 300px;
    width: auto;
    max-width: 350px;
}
	#gallery .big-img-wpr {
    height: 300px;
}
#gallery div.img-wpr {
    height: 280px;
    width: 100%;;
}
#gallery div.img-wpr .img-box {
    height: 270px;
}
#gallery label {
    background: #fff;
}
#gallery .thumb > img {
    max-height: 60px;
    max-width: 60px;

}
#gallery #slides div ul li {
    margin: 0 0px 0px;
}
#gallery .thumb {
    height: 60px;
    width: 60px;
    padding: 0 5px;
}
}
