/* Related Posts
----------------------------------------------- */
@media only screen and (min-width: 1168px) {
  body.has-sidebar .related-posts-main-title,
  body.has-sidebar .related-posts {
    width: 70%;
  }
}

.related-posts-main-title {
  margin-bottom: 20px !important;
}
.related-posts {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 0 !important;
  /*background-color: rgba(0, 0, 0, .1);*/
}
.single-related-posts {
  position: relative;
  background-color: #aeaeae;
  width: 20%;
  margin-right: 5px;
  min-height: 120px;
  max-height: 200px;
  overflow: hidden;
  border: 1px solid #d5d5d5;
}
@media only screen and (max-width: 768px) {
  .related-posts {
    flex-direction: column;
  }
  .single-related-posts {
    width: 100%;
  }
}

.single-related-posts .related-posts-thumbnail {
  margin: 0;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.single-related-posts img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}
.single-related-posts .related-posts-thumbnail:after {
  background: rgba(0, 0, 0, 0.65);
  content: "";
  opacity: 0.5;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  transition: opacity .3s ease-in-out, background .3s ease-in-out;
}
.entry .single-related-posts .entry-header {
  z-index: 10;
  margin: 10px;
}
.single-related-posts .entry-header .entry-title {
  font-size: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  width: inherit;
  display: block;
}
.single-related-posts .entry-header .entry-title:before {
  margin: 0;
  height: 0;
}
.single-related-posts .entry-header .entry-title a {
  color: white;
  text-decoration: none;
}
.single-related-posts .entry-header .entry-title a:hover {
  color: #0073aa;
}

.single-related-posts .entry-content {
  display: none;
}
.single-related-posts .related-posts-thumbnail img {
  display: none;
}
.single-related-posts .related-posts-thumbnail img:last-child {
  display: block;
}


#content .entry-content .related-posts-main-title:before {
  content: "";
  display: block;
  border-bottom: 1px dashed #696969;
  margin: 0 0 30px 0;
}
#content .entry-content .related-posts {
  margin-bottom: 60px;
}
#content .entry-content .related-posts:after {
  content: "";
  width: 100%;
  border-bottom: 1px dashed #696969;
  margin: 0 0 30px 0;
  position: absolute;
  bottom: -60px;
}