/* ==========================================================================
   HOME PAGE NEWSFEED FOR COMPASS MICROSITES CSS
========================================================================== */

/* Full section wrap */

.homenews {
    border-image: conic-gradient(var(--vcu-gold) 0 0) fill 0 / 0 / 0 100vw;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    color: var(--vcu-black);
}
@media (min-width: 768px) {
    .homenews {
        padding: 3rem 1rem;
    }
}

/* Section heading */

.homenews__heading {
    font-family: 'Merriweather', serif;
    border-left: none;
    padding-left: 0;
    padding-top: 0;
    margin: 1rem auto 2rem;
    text-align: center;
    color: var(--vcu-black);
}
@media (min-width: 768px) {
    .homenews__heading {
        margin: 1rem auto 3rem;
    }
}

/* Newsfeed */

.homenews__feed {
  grid-gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .homenews__feed {
    padding: 0 1rem;
  }
}
@media (min-width: 768px) {
  /* Deploy grid display at 768px instead of 1024px */
  .homenews__feed.cwf-grid.cwf-grid--3-columns {
    --cwf-grid--columns: 3;
    --cwf-grid--grid-template-columns: repeat(var(--cwf-grid--columns), 1fr);
  }
}

/* Button to view more news */

.homenews__more {
  grid-gap: 2.5rem;
}
.homenews__more .t4_button {
  font-size: 1.3rem;
  line-height: 1.95;
}
.homenews__more p.t4_button {
  grid-column: 2;
  text-align: center;
  --cwf-button--background-color: var(--cwf-color--white);
  --cwf-button--border-color: #00a5eb;
  --cwf-button--color: var(--cwf-color--black);
  --cwf-button--active--background-color: #004f70;
  --cwf-button--active--color: #fff;
  --cwf-button--hover-focus--background-color: #00a5eb;
  --cwf-button--hover-focus--color: #333;
}
.homenews__more p.t4_button a {
  box-shadow: 0.25rem 0.25rem var(--vcu-black);
  border: 1px solid var(--vcu-black);
  color: var(--vcu-black) !important;
}
.homenews__more p.t4_button a:hover, 
.homenews__more p.t4_button a:focus {
  background-color: var(--vcu-white) !important;
  box-shadow: 0.25rem 0.25rem var(--vcu-rust) !important;
  color: var(--vcu-rust) !important;
  border: 1px solid var(--vcu-rust);
}

/* --------------------------------------------------------------------------
    News Item Styling
-------------------------------------------------------------------------- */

/* Item */
.homenews__item {
  color: var(--vcu-black);
}

/* Image */

.homenews__img {
  display: block;
}
.homenews__img img {
  width: 100% !important;
  display: block;
  height: auto;
}

/* Date */

.homenews__date {
  font-size: 0.875rem;
  font-weight: 800;
  margin: 0.5rem auto;
  padding-top: 0;
}

/* Headline */

.homenews__title {
  font-size: 1.2rem;
  line-height: 1.5;
  padding-top: 0;
}
.homenews__title a {
  color: #000!important;
  border-bottom: 1px solid white !important;
}
.homenews__title a:hover, 
.homenews__title a:focus {
  border-bottom: none !important;
}

/* Teaser text */

.homenews__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;
}


