ul.recent-posts {
    overflow: hidden;
    margin-top: -30px;
}
ul.recent-posts li {
    padding: 0;
    margin: 30px 0 0 0;
    overflow: hidden;
}

.recent-posts__inner {
    overflow: hidden;
}

/* recent posts *//* list */
.recent-posts.layout-1 {}

/* recent posts *//* grid 1 */
.recent-posts.layout-2 li {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}
.recent-posts.layout-2 .recent-posts__inner {
    /*padding-bottom: 15px;*/
}

/* Recent posts with background image */
.widget_recent_entries.rp-with-bg {
    background-color: transparent;
    background-position: top center;
    background-repeat: repeat;
    padding: 30px 30px;
}

/* recent posts *//* grid 2 */
.recent-posts.layout-3 li {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}
.recent-posts.layout-3 {margin-left: -30px;}
.recent-posts.layout-3 .recent-posts__inner {margin-left: 30px;
    /*padding-bottom: 14px;*/
}

/* post title */
.recent-posts__title {
    display: block;
    font-weight: 500;
    color: #292a2e;
}
.recent-posts__title:hover {
    color: #e2001a;
}

.recent-posts.layout-1 a.recent-posts__title {
    /* text ... */
    overflow: hidden;
    max-height: 60px;
}
.recent-posts.layout-2 a.recent-posts__title {
    font-size: 18px;
    font-size: 1.8rem;
    line-height: 1.6667;
}
.recent-posts.layout-3 a.recent-posts__title {
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.6072;
    line-height: 1.6429;

    /* two lines */
    overflow: hidden;
    max-height: 45px;
    max-height: 4.5rem;
}

/* post content & meta */
.recent-posts__content {
    display: block;
    overflow: hidden;
}
.recent-posts.layout-1 .recent-posts__content {padding: 0 0 0 15px;}
.recent-posts.layout-2 .recent-posts__content {padding: 15px 0 0 0;}
.recent-posts.layout-3 .recent-posts__content {padding: 15px 0 0 0;}

.recent-posts__date,
.recent-posts__views,
.recent-posts__likes {
    font-size: 14px;
    font-size: 1.4rem;
    text-transform: uppercase;
    z-index: 1;
}

.recent-posts.layout-3 .recent-posts__date,
.recent-posts.layout-3 .recent-posts__views {
    font-size: 10px;
    font-size: 1rem;
    line-height: 3;
}

.recent-posts__date {float: left;}
.recent-posts__views {float: right; margin-left: 5px;}
.recent-posts__likes {
    position: absolute;
    left: 7px;
    bottom: 2px;
    color: #ffffff;
    opacity: 0;
}
.recent-posts__media:hover .recent-posts__likes {
    opacity: 1;
}
.recent-posts__icon {
    font-size: 11px;
    font-size: 1.1rem;
    margin-right: 3px;
    color: #e2001a;
}

/* post media */
.recent-posts__media {
    display: block;
    position: relative;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
}
.recent-posts.layout-1 .recent-posts__media {
    float: left;
    width: 90px;
    height: 90px;
}
.recent-posts__media img {margin: 0; float: none;}
.recent-posts.layout-2 .recent-posts__media img {width: 100%; margin: 0;}
.recent-posts.layout-3 .recent-posts__media img {width: 100%; margin: 0;}
.recent-posts__media .overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: transparent;
}
.recent-posts__media:hover .overlay {
    background-color: rgba(41, 42, 46, 0.5);
}
.recent-posts__media .overlay:before,
.recent-posts__media .overlay:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 40px;
    width: 40px;
    margin-top: -20px;
    margin-left: -20px;
    font-size: 40px;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    color: #e2001a;
    font-family: 'FontAwesome';
}
.recent-posts__media:hover .overlay.audio:before,
.recent-posts__media:hover .overlay.video:before {content: '\f01d';}
.recent-posts__media:hover .overlay:before,
.recent-posts__media:hover .overlay:after {opacity: 1; color: #ffffff;}

/* Animate/Transition */
.recent-posts__media .recent-posts__likes,
.recent-posts__media:hover .recent-posts__likes,
.recent-posts__media .overlay,
.recent-posts__media:hover .overlay,
.recent-posts__media .overlay:before,
.recent-posts__media .overlay:after,
.recent-posts__media:hover .overlay:before,
.recent-posts__media:hover .overlay:after,
.transition--on {
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

/* Disable: Animate/Transition */
.transition--off {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

/* Responsive fix */

.widget_recent_entries img {display: block !important;} /* always view img */

/* Change layout for different places */

.footer .recent-posts a.recent-posts__title {
    color: #ffffff;
}

.footer .recent-posts a.recent-posts__title:hover,
.footer .recent-posts a.recent-posts__title:focus {
    color: #e2001a;
}

@media screen and (min-width: 1200px) {
    .recent-posts.layout-1 .recent-posts__content {padding: 0 0 0 30px;}
}

@media screen and (min-width: 769px) {
    /* sidebar after header *//* list */
    .sidebar-before-header .recent-posts.layout-1 li,
    .sidebar-after-header .recent-posts.layout-1 li {
        display: inline-block;
        vertical-align: top;
        width: 33.33333333%;
    }
    .sidebar-before-header .recent-posts.layout-1,
    .sidebar-after-header .recent-posts.layout-1 {margin-left: -20px;}
    .sidebar-before-header .recent-posts.layout-1 .recent-posts__inner,
    .sidebar-after-header .recent-posts.layout-1 .recent-posts__inner {margin-left: 20px;}
    /* sidebar after header *//* grid 1 */
    .sidebar-before-header .recent-posts.layout-2 li,
    .sidebar-after-header .recent-posts.layout-2 li {
        display: inline-block;
        vertical-align: top;
        width: 33.33333333%;
    }
    .sidebar-before-header .recent-posts.layout-2,
    .sidebar-after-header .recent-posts.layout-2 {margin-left: -20px;}
    .sidebar-before-header .recent-posts.layout-2 .recent-posts__inner,
    .sidebar-after-header .recent-posts.layout-2 .recent-posts__inner {margin-left: 20px;}
    /* sidebar after header *//* grid 2 */
    .sidebar-before-header .recent-posts.layout-3 li,
    .sidebar-after-header .recent-posts.layout-3 li {
        display: inline-block;
        vertical-align: top;
        width: 25%;
    }
    .sidebar-before-header .recent-posts.layout-3,
    .sidebar-after-header .recent-posts.layout-3 {margin-left: -20px;}
    .sidebar-before-header .recent-posts.layout-3 .recent-posts__inner,
    .sidebar-after-header .recent-posts.layout-3 .recent-posts__inner {margin-left: 20px;}
}