.gallery ul,
.gallery li {
  list-style: none;
  display: block;
  background: none;
}
.gallery {
  width: 300px;
}
.gallery .main {
  width: 300px;
  height: 300px;
  margin: 0 auto;
}
.gallery .main li {
  width: 300px;
  height: 300px;
  display: none;
}
.gallery .main li img {
  width: 300px;
  height: auto;
}
.gallery .main li:first-child {
  display: block;
}
.gallery .nolist {
  padding: 0;
}
.gallery .thumb {
  width: 300px;
  height: 200px;
}
.gallery .thumb li {
  width: 100px;
  height: 100px;
  display: block;
  float: left;
  cursor: pointer;
}
.gallery .thumb li.selected img {
  width: 100px;
  height: 100px;
  border: 2px solid #C00;
}
.gallery .thumb li img {
  cursor: pointer;
  opacity: 1;
  filter: alpha(opacity=100);
  -ms-filter: "alpha(opacity=100)";
  -webkit-transition: opacity 0.2s ease-in-out;
  -moz-transition: opacity 0.2s ease-in-out;
  -ms-transition: opacity 0.2s ease-in-out;
  -o-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
}
.gallery .thumb li img:hover {
  opacity: 0.5;
  filter: alpha(opacity=100);
  -ms-filter: "alpha(opacity=50)";
}
.gallery .indicator {
  width: 300px;
  height: 30px;
  text-align: center;
  font-size: 0;
  display: block;
}
.gallery .indicator li {
  cursor: pointer;
  color: #cccccc;
  height: 30px;
  line-height: 30px;
  font-size: 10px;
  width: 20px;
  text-align: center;
  display: inline-block;
}
.gallery .indicator li.selected {
  color: #999999;
}
.gallery nav {
  width: 300px;
  height: 50px;
  margin-top: -50px;
}
.gallery nav div {
  width: 100px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #000;
  letter-spacing: 0.2em;
  color: #FFF;
  cursor: pointer;
}
.gallery nav div.nextBtn {
  float: right;
  border-radius: 0 25px 25px 0;
}
.gallery nav div.prevBtn {
  float: left;
  border-radius: 25px 0 0 25px;
}
#gallery2 .thumbPages {
  width: 100%;
  height: 100px;
}
#gallery2 .thumbPages > li {
  width: 100%;
  height: 100px;
  display: none;
}
#gallery2 .thumbPages > li:first-child {
  display: block;
}