.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

#after-post-content-sidebar:not(:first-child) {
    margin-top: 40px;
}

#after-post-content-sidebar:not(:last-child) {
    margin-bottom: 40px;
}

#after-post-content-sidebar .widget:not(:last-child) {
    margin-bottom: 30px;
}

.widget_relative_posts {
    clear: both;
}

.widget_relative_posts h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.widget_relative_posts ul {
    float: left;
}

.widget_relative_posts li, .widget_relative_posts a {
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.widget_relative_posts li {
    margin: 5px !important;
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: bottom;
    -webkit-box-shadow:1px 2px rgba(0,0,0,.4);
    -moz-box-shadow:1px 2px rgba(0,0,0,.4);
    box-shadow:1px 2px rgba(0,0,0,.4);
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    list-style-type: none;
    transition: all 200ms ease-in-out;
}

.widget_relative_posts li:hover {
    background: #eee;
    border-color: #bbb;
}

.widget_relative_posts a {
    width: 150px;
    height: 150px;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.widget_relative_posts a:hover {
    text-decoration: none;
}

.widget_relative_posts img {
    max-width: 100%;
    margin: auto;
}

.widget_relative_posts .relative-post-title {
    color: #fff !important;
    position: absolute;
    display: block;
    bottom: 0;
    padding: 3px;
    font-size: .9em;
    text-shadow: .1em .1em .2em #000;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    transition: all 200ms ease-in-out;
}

.widget_relative_posts li:hover .relative-post-title {
    background-color: rgba(0, 0, 0, 0.8);
}

.widget_relative_posts .relative-post-title:visited {
    color: #fff !important;
}