/*
 Theme Name:   GeneratePress Child - TheSoFar.com
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.home.page-id-546 .inside-article {
    padding-top: 0;
}


/*****     Styling For Custom Articles    *****/

.postsbycategory {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.postsbycategory .inside-article, .custom_archive .inside-article {
    position:  relative;
    padding-bottom :0 !important;
    padding-top: 0 !important;
    background: #000000;
}

.postsbycategory .post-image, .custom_archive .post-image{
    margin-top: 0 !important;
    margin-bottom: -5px !important;
}

.postsbycategory .post-image + .entry-header, .custom_archive .post-image + .entry-header {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #000000;
    opacity: 0.8;
    width: 100%;
}

.postsbycategory .post-image + .entry-header{
    text-align: center;
}

.postsbycategory .post-image + .entry-header a, .custom_archive .post-image + .entry-header a {
    color: #ffffff;
}

.postsbycategory .post-image + .entry-header h4, .custom_archive .post-image + .entry-header h2 {
    padding: 20px;
    margin: 0px !important;
}

.read-more-link{
    text-align: right;
    display: inline-block;
    width: 100%;
}

.home .postsbycategory .inside-article {
    padding: 0px;
}
.home .postsbycategory article:nth-child(1) > .inside-article {
    margin-right: 30px;
}
.home .postsbycategory article:nth-child(2) > .inside-article {
    margin-left: 30px;
    margin-right: 30px;
}
.home .postsbycategory article:nth-child(3) > .inside-article {
    margin-left: 30px;
}

@media (max-width: 768px) {
    .home .postsbycategory article > .inside-article {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}
