article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
  display: block;
}
audio[controls],
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}
html {
  overflow-y: scroll;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  font-size: 100%;
  line-height: normal;
  margin: 0;
}
body,
input,
button,
textarea,
select {
  font-family: sans-serif;
}
img {
  border: 0;
  -ms-interpolation-mode: bicubic;
}
a:focus {
  outline: 0;
}
a:hover,
a:active {
  outline: 0;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}
q {
  quotes: none;
}
q:before,
q:after {
  content: '';
  content: none;
}
small {
  font-size: 75%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
nav ul,
nav ol {
  list-style: none;
}
button,
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}
button,
input {
  line-height: normal;
  *overflow: visible;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  padding: 0;
  text-align: left;
  vertical-align: middle;
}
blockquote,
ul,
ol,
dd,
figure,
form,
fieldset {
  margin: 0;
  padding: 0;
}
.clearfix {
  zoom: 1;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
ul,
li {
  

}
.gallery {
  width: 100%;
}
.gallery .main {
  width: 100%;
  height: 450px;
  
  overflow: initial !important;

}
.gallery .main li {
  width: 100%;
  height: 300px;
  display: none;
 
}
.gallery .main li img {
  width: auto;
  display:inline-block;
  height: auto;
  min-height:450px;
  max-height: 450px;
}
.gallery .main li:first-child {
  display: block;
}
.gallery .thumb {
  width: 100%;
  height: 100px;
}
.gallery .thumb li {
  width: 100px;
  height: 100px;
  display: block;
  float: left;
  cursor: pointer;
}
.gallery .thumb li.selected img {
  width: 96px;
  height: 96px;
  border: 2px solid #C00;
}
.gallery .thumb li img {
  cursor: pointer;
  width:96px;
  -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: 500px;
  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: 500px;
  height: 50px;
 
}
.gallery nav div {
  width: 100px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #fff;
  letter-spacing: 0.2em;
  color: #000;
  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: 500px;
  height: 100px;
}
#gallery2 .thumbPages > li {
  width: 500px;
  height: 100px;
  display: none;
}
#gallery2 .thumbPages > li:first-child {
  display: block;
}

@media only screen and (max-width: 500px) {

.gallery .main li img {
	width:100%;
}

.gallery .indicator  {
	width:100%;
}
#gallery2 .thumbPages {
	width:100%;
}

.gallery nav {
	width:100%;
}

.gallery .main {
	margin-left:0px;
}

}
