/* overall container remains light grey */
#rss-news-grid {
    margin-top: 40px;
    margin-bottom: 40px;
}
/* each row of 4 items */
.rss-section {
    display: flex;
    flex-wrap: wrap;
    background: #e3e3e3;
    overflow: hidden;    /* clearfix */
    margin-bottom: 40px; /* space between the two rows */
    padding: 15px 0px;
}

.next-col {
    border-left: 1px solid #666;
}

/* four columns per section */
.rss-section .col-xs-12 {
    /* take up exactly 25% of the row */
    flex: 0 0 25%;
    max-width: 25%;
    box-sizing: border-box;
    padding: 0;    
}

/* inner white box & padding */
.tx-pits-rssnews {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    background: #fff;
    box-sizing: border-box;
}

.rss_newsitems {
    padding: 0px 15px;
}

/* image styling */
.rss_newsitems .image {
    margin-bottom: 10px;
    overflow: hidden;
}
.rss_newsitems .image img {
    display: block;
    width: 100%;
    height: 164px;       /* uniform height */
    object-fit: cover;
}

/* date */
.rss_newsitems .rss_date {
    color: #B6B6B6;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 3px;
}

/* title */
.rss_newsitems .rss_title {
    margin: 3px 0;
    line-height: 16px;
}
.rss_newsitems .rss_title b {
    color: #000;
    font-size: 12px;
    line-height: 16px;
}

/* snippet */
.rss_newsitems .rss_desc p {
    margin: 4px 0;
    font-size: 12px;
    line-height: 16px;
    color: #333;
}

/* link */
.rss_newsitems .rss_desc a {
    color: #777;
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}
.rss_newsitems .rss_desc a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* Each section becomes a vertical stack */
    .rss-section {
      flex-direction: column;
      background: inherit;
    }

    .rss_newsitems {
        background: #e3e3e3;
        padding: 15px 15px;
    }
  
    /* Make each item take 100% width */
    .rss-section .col-xs-12 {
      flex: 0 0 100%;
      max-width: 100%;
    }

    .next-col {
        border-left: none;
    }
  }