.gallery-post-box {
  position: relative;
  margin-bottom: 20px;
}
.gallery-post-box .main-image-box {
  overflow: hidden;
  margin-bottom: 10px;
  width: 618px;
}
.gallery-post-box .main-image {
  margin: 0 0 10px;
  padding: 20px 0;
  background: #292929;
}
.gallery-post-box .main-image img {
  display: block;
  margin: 0 auto;
}

/* Gallery List*/
.entry-content ul.gallery-list {
  margin: 0 0 0 -4px;
  padding: 0;
  width: 618px;
  list-style: none;
}
.entry-content ul.gallery-list li {
  position: relative;
  float: left;
  overflow: hidden;
  margin: 0 0 4px 4px;
  width: 73px;
  height: 44px;
}
.entry-content ul.gallery-list li.current-gallery:before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 67px;
  height: 38px;
  border: 3px #ec2228 solid;
  content: '';
}
.entry-content ul.gallery-list li img {
  position: absolute;
  display: block;
  max-width: none;
  width: 81px;
  height: auto;
}

/* Navigation */
.gallery-prev-next p {
  position: absolute;
  top: 158px;
  width: 35px;
  height: 55px;
  background: #ec2228;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-size: 2rem;
  line-height: 55px;
}
.gallery-prev-next p.nav-prev {
  left: 0;
}
.gallery-prev-next p.nav-next {
  right: 0;
}
.gallery-prev-next p a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.gallery-list:after,
.entry-content #related-post-box ul {
  display: table;
  clear: both;
  content: "";
}

#related-post-box {

}
.entry-content #related-post-box ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-content #related-post-box li {
  width: 286px;
  height: 80px;
  margin-bottom: 40px;
  float: left;
}
.entry-content #related-post-box li.right {
  float: right;
}
.entry-content #related-post-box li p.thumb {
  width: 100px;
  margin: 0;
  float: left;
}
.entry-content #related-post-box li p.thumb img {
  max-width: 100%;
  width: auto;
  height: auto;
}
.entry-content #related-post-box li p.title {
  width: 170px;
  margin: 0;
  float: right;
}

.back-ancestors {
  text-align: center;
  margin: 20px 0;
  background: #292929;
}
.back-ancestors a {
  color: #fff;
  text-decoration: none;
  padding: 5px 0;
  display: block;
}