/* ==========================================================================
   NURSING NEWSFEED FOR CLC PAGE CSS
========================================================================== */

/* Gold background */

.child-news {
  background-color: var(--vcu-gold);
  margin: 2rem auto 0;
  padding: 2rem;
}
.child-news .child-news__heading, 
.child-news .child-news__intro, 
.child-news .newsfeed__teaser, 
.child-news .newsfeed__date, 
.child-news .newsfeed__headline {
    color: var(--vcu-black);
}
.child-news a {
  color: var(--vcu-black) !important;
  border-bottom: 1px solid var(--vcu-white) !important;
}
.child-news a:hover, 
.child-news a:focus {
  border-bottom: none !important;
}

/* Image */

.newsfeed__img {
  display: block;
}
.newsfeed__img img {
  width: 100% !important;
  display: block;
  height: auto;
}

/* Headline */

.newsfeed__headline {
  font-size: 1.2rem;
  line-height: 1.3;
  padding-top: 0;
}

/* Teaser text */

.newsfeed__teaser {
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.5rem;
  max-height: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Deploy grid display at 768px instead of 1024px */

@media (min-width: 768px) {
  .newsfeed.cwf-grid.cwf-grid--3-columns {
    --cwf-grid--columns: 3;
    --cwf-grid--grid-template-columns: repeat(var(--cwf-grid--columns), 1fr);
  }
  .newsfeed {
    padding: 0;
    gap: 1.5rem;
  }
}