a {
    color: #000;
    text-decoration: none;
}
a:hover {
     color: #3e5a9d;
     transition: 0.25s ease-in-out;
}


h1 {
    font-family: "abril-tiling", serif;
    font-weight: 400 !important;
 
}

ul.byline {
    display: inline;
    display: flex;
}

ul.byline li {
    display: inline;
    font-family: "inter", sans-serif;
    align-items: center;
    padding-top: 10px;
}

ul.byline li span.byline-date {
    padding-left: 0px;
}

ul.byline li p {
    color: #9e9e9e!important;
    margin-top: 10px!important;
    padding-left: 13px;
}

ul.byline li img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    align-items: center;
}

.front-page-left .article-background h1 {
    font-size: 3rem;
    line-height: 3.4rem;
}

.front-page-right .article-background h1 {
    font-family: "inter-bold", sans-serif!important;
    font-size: 1.2rem;
    line-height: 1.75rem;
}

h2 {
   font-family: "inter-bold", sans-serif;
    color: #3e5a9d;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding-bottom: 5px;
}

h3 {
    font-family: "inter", sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.8125rem;
    letter-spacing: 0;
    padding: 10px 0px;
    line-height: 1.5;
    color: #444;
}


.more-articles h2, .more-articles2 h2 {
    font-size: .8rem;  
    color: #444!important;
    text-decoration: underline!important;
    text-decoration-color: #3e5a9d!important;
    text-decoration-thickness: 2px!important;
    text-underline-offset: 5px!important;
    padding: 30px 0px;
    display:block;
    clear:both;
    text-align: center;
    width:100%;
}

.more-articles2 h2 {
    float: right!important;
}

.more-articles h2:hover, .more-articles2 h2:hover  {
    text-decoration-thickness: 3px!important;
}


/* Front Page 
--------------------------------------*/

.newsfeed-header-latest .article-background h1 {
    font-size: 1rem!important;
}

.front-page {
    width: 100%;
    display: flex;
    padding-top: 65px;
    max-width: 1250px;
    margin: 0 auto;
}

.article-image {
    position: relative;
    z-index: 1;
    align-items: center;
}

.article-background {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    width: 82%;
    margin: 0 auto;
    margin-top: -30px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
   
}

.front-page-left {
    width: 75%;
    float: left;
    padding: 0px 30px 20px 20px;
    align-items: center;
}

.front-page-left img {
    width: 100%;
}

.front-page-right {
    width: 25%;
    float: right;
    padding: 0px 0px 30px 30px;
    align-items: center;
    border-left: 1px solid #ccc;
    margin-right: 20px;
    margin-top: 20px;
}

.front-page-right img {
    width: 100%;
}


.front-page-right img {
     padding-top: 20px;
}

.front-page-right img.top-image {
    margin-top: -20px!important;
}
.front-page-right > .front-page-right-item {
    border-bottom: 1px solid #ccc;
    padding: 0px 0px 10px 0px;
}

.front-page-right > .front-page-right-item:first-child {
    padding-top: -20px!important;
}

.front-page-right > .front-page-right-item:last-child {
    border-bottom:  none!important;
    padding-bottom: 0!important;
}

.front-page-right-item .article-background {
    margin: 0;
    padding: 15px 0 0 0;
    width: 100%;
    padding-bottom: 10px;
}

.front-page-right-item .article-background h3 {
    font-size: 1rem!important;
}

.front-page-right .front-page-right-item .article-background h2 {
    font-size: 11.5px;
    color: #3e5a9d;
    /*padding-bottom: 20px;*/
}


/* Section Headers 
---------------------------------------*/

.newsfeed-header-top .right-line {
        width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
        border-bottom: 4px solid #eff0e8;
        text-align: left;  
}


.newsfeed-header-top .right-line, 
.newsfeed-header-latest .right-line, 
.newsfeed-header-digest .right-line, 
.newsfeed-header-obits .right-line,
.newsfeed-header-local .right-line,
.newsfeed-header-communities .right-line,
.newsfeed-header-valley-life .right-line    {
        width: 100%;
        margin-top: 0px;
        margin-bottom: 40px;
        border-bottom: 4px solid #eff0e8;
        text-align: left;    
}

.newsfeed-header-latest .right-line {
    margin-top:-10px!important;
}


.newsfeed-header-top .right-line .right-text h3, 
.newsfeed-header-latest .right-line .right-text h3, 
.newsfeed-header-digest .right-line .right-text h3, 
.newsfeed-header-obits .right-line .right-text h3,
.newsfeed-header-local .right-line .right-text h3,
.newsfeed-header-communities .right-line .right-text h3,
.newsfeed-header-valley-life .right-line .right-text h3  {
        display: inline;
        padding: 0 12px 0 0;
        background-color: white;
        font-family: "inter-bold", sans-serif;
        font-weight: bold;
        position: relative;
        letter-spacing: -1.5;
        color: #000;
    }    
.newsfeed-header-top .right-line .right-text h3, 
.newsfeed-header-digest .right-line .right-text h3,
.newsfeed-header-obits .right-line .right-text h3,
.newsfeed-header-local .right-line .right-text h3,
.newsfeed-header-communities .right-line .right-text h3,
.newsfeed-header-valley-life .right-line .right-text h3  {
    font-size: 1.8rem;
    top: +18px;
}

.newsfeed-header-latest .right-line .right-text h3 {
    font-size: 1.5rem;
    top: +13px;
}


/* Daily Digest Section 
---------------------------------------*/

.daily-digest {
   padding: 30px;
   max-width: 1200px;
   margin: 0 auto;
}

.daily-digest .article-background {
    margin-bottom: 0px!important;
}

.daily-digest h1 {
    font-family: "abril-tiling", serif;
    font-size: 1.5rem;
    line-height: 1.2;
}

.daily-digest h4 {
    font-size: .85rem;
    font-weight: 200 !important;
    color: #9e9e9e;
    padding-top: 10px;
}

.daily-digest-item-container {
    width: 100%!important;
    display: flex;
}

.daily-digest-item {
    /*width: 25%;*/
    width: 33%;
}

.daily-digest-item:not(:first-child, :last-child) {
    padding:0px 18px; 
}

.daily-digest-item:not(:last-child) {
    border-right: 1px solid #dbdbdb;
}

.daily-digest-item:first-child {
    padding-right:18px;
}
.daily-digest-item:last-child {
    padding-left:18px;
}

.daily-digest-item img {
    width: 100%;
}

.daily-digest-item h3 {
    font-size: 1rem!important;
}

/* In Memoriam 
---------------------------------------*/

.in-memoriam {
    padding: 0px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.in-memoriam-container {
    display: flex;
    width: 100%;
}

.in-memoriam-obit {
    width: 12%;
    padding: 0 15px;
}

.in-memoriam-obit:first-child {
    padding-left:0px;
}
.daily-digest-item:last-child {
    padding-right:0px;
}


.in-memoriam-obit h1 {
    font-family: "inter-bold", sans-serif;
    font-size: 1.2rem;
    padding-top: 15px;
}

.in-memoriam-obit h3 {
    font-size: .8rem;
}

.in-memoriam-container .in-memoriam-obit .in-memoriam-obit-image {
    width: 100%;
    padding-bottom: 90%!important; /* Creates a square based on the width */
    height: 0; /* Ensures only padding contributes to height */
    position: relative; /* For positioning the image inside */
    overflow: hidden; /* To crop image if it overflows */
}

.in-memoriam-container .in-memoriam-obit .in-memoriam-obit-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire square */
}



/* Local News
---------------------------------------*/

.local {
    padding: 0px 20px;
    margin-bottom: 30px;
}

.local-container {
    display: flex;
    width: 100%;
}

.local-left {
    float: left;
    width: 60%;
    padding-right: 20px;
}

.local-left .local-left-img {
    z-index: 1;
}

.local-left .local-left-img img {
    width: 100%;
}

.local-left .local-left-text {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    width:  80%;
    position: relative;
    margin: 0 auto;
    margin-top: -50px;
    z-index: 2;
}

.local-left .local-left-text h1 {
    font-size: 2.5rem;
    line-height: 2.75rem;
}

.local-left .local-left-text h4 {
    color: #9e9e9e!important;
    font-weight: 200!important;
    font-size: 1rem;
}

.local-right {
    float: right;
    width: 40%;
    padding-left: 20px;
}


.local-right-container {
    width: 100%;
    display: flex;    
    padding: 20px 0px;
}

.local-right-container:first-child {
    padding-top: 0px;
}

.local-right-container:last-child {
    padding-bottom: 0px;
}

.local-right-container:not(:last-child) {
    border-bottom: 1px solid #dbdbdb;
}

.local-right h1 {
    font-family: "inter-bold", sans-serif;
    font-size: 1.2rem;
}

.local-right h3 {
    color: #9e9e9e !important;
    font-weight: 200 !important;
    font-size: .9rem;
}

.local-right .local-right-container .local-right-img {
    width: 30%;
    float: left;
}

.local-right .local-right-container .local-right-img {
    width: 25%;
    padding-bottom: 25%!important; /* Creates a square based on the width */
    height: 0; /* Ensures only padding contributes to height */
    position: relative; /* For positioning the image inside */
    overflow: hidden; /* To crop image if it overflows */
}

.local-right .local-right-container .local-right-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire square */
}

.local-right-img img {
    width: 100%;
}

.local-right-text {
    width: 70%;
    float: right;
    padding-left: 15px;
} 

/* Communities
---------------------------------------*/

.communities {
    padding: 0px 20px;
}


.communities-container {
    display: flex;
    width: 100%;
}

.communities-left {
    float: left;
    width: 50%;
    padding-right: 20px;
}

.communities-left .communities-left-img {
    z-index: 1;
}

.communities-left .communities-left-img img {
    width: 100%;
}

.communities-left .communities-left-text {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    width:  80%;
    position: relative;
    margin: 0 auto;
    margin-top: -50px;
    z-index: 2;
}

.communities-left .communities-left-text h1 {
    font-size: 2.5rem;
    line-height: 2.75rem;
}

.communities-left .communities-left-text h4 {
    color: #9e9e9e!important;
    font-weight: 200!important;
    font-size: 1rem;
}

.communities-right {
    width: 50%;
    float: right;
    display: flex;
    flex-wrap: wrap;
}

.communities-right-story {
    width: 45%;
    padding: 0px 10px;
}

.communities-right-story h1 {
    font-family: "inter-bold", sans-serif;
    font-size: 1.2rem;
}

.communities-right-story h2 {
    padding-top: 10px;
}

.communities-right-story h4 {
    color: #9e9e9e !important;
    font-weight: 200 !important;
    font-size: .9rem;
    padding: 10px 0px 40px 0px;
}

.communities-right-story-image img {
    width: 100%;
}

/* Valley Life
---------------------------------------*/

.valley-life {
    padding: 0px 20px;
    margin-bottom: 50px;
}

.valley-life .article-background h1 {
    font-size: 1.6rem;
    line-height: 2rem;
}

.valley-life .article-background h3 {
    font-size: 1.1rem !important;
    line-height: 1.5rem!important;
}

.valley-life .article-background h4 {
    color: #9e9e9e !important;
    font-weight: 200 !important;
    font-size: .9rem;
}

.valley-life-container {
    width: 100%!important;
    display: flex;
}

.valley-life-item {
    width: 33.33%;
}

.valley-life-item:not(:first-child, :last-child) {
    padding:0px 18px; 
}

.valley-life-item:not(:last-child) {
    border-right: 1px solid #dbdbdb;
}

.valley-life-item:first-child {
    padding-right:18px;
}
.valley-life-item:last-child {
    padding-left:18px;
}

.valley-life-item img {
    width: 100%;
}

/* TAB STYLING */
.tab-container {
    max-width: 1250px;
    margin: 0 auto;
}


  .tabs {
    display: flex;
    border-bottom: 1px solid #000;
    cursor: pointer;
    padding: 0px 8px;
    font-family: "inter-bold", sans-serif;
    margin: 20px 20px 0px 20px;
  }

  .tab {
    padding: 10px 20px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f1f1f1;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s;
  }

  .tab.active {
    background-color: #3e5a9d;
    color: white;
    font-weight: 200;
    /*border-bottom: 2px solid #fff;*/
  }

  .tab-content {
    padding-top: 20px 0px;
    display: none;
    border-radius: 0 5px 5px 5px;
    background-color: #fff;
  }

  .tab-content.active {
    display: block;
  }




/* Responsive Code
------------------------------------------------*/
@media screen and (max-width: 950px) {
  .daily-digest .article-background {margin-top:0!important;}
  .in-memoriam-container {flex-direction: row; flex-wrap:wrap; }
  .in-memoriam-obit {width:22.5%; padding:7px!important; margin: 0!important; }
}


@media screen and (max-width: 770px) {
    * { box-sizing: border-box; }
    .front-page {flex-direction: column; padding-top:40px!important; padding-left:0px!important; padding-right: 0px!important; padding-bottom: 0px!important;}
    .front-page-left {width: 100%; border:none!important; padding:18px!important;}
    .front-page-left .article-background {width: 92%!important;}
    .front-page-left .article-background h1 {font-size:2rem; line-height: 2.25rem;}
    .front-page-left .article-background h3 {font-size:1.2rem; line-height: 1.7rem;}
    ul.byline li img {width:30px!important; height:30px!important;}
    ul.byline li p {font-size: 15px; margin-top:5px!important;}
    ul.byline li span.byline-date {display:none;}
    .front-page-right {width: 100%; padding:18!important;}
    .front-page-right-item .article-background {width: 90%!important;}
    .daily-digest {padding:0px 18px!important; margin-top: 0px!important;}
    .daily-digest-item-container {flex-direction: row; flex-wrap:wrap; }
    .daily-digest-item {width: 48%; padding: 0px 10px!important; margin:0px!important; border:none!important;}
    .daily-digest-item .article-background {width:90%!important; margin-top:-30px!important; margin-bottom: 15px!important;}
    .local-container {flex-direction: column;}
    .local {padding:18px!important;}
    .local-left {width: 100%; margin-bottom: 40px; padding: 0!important;}
    .local-left .local-left-text {width:92%!important;}
    .local-left .local-left-text h1 {font-size:1.8rem; line-height: 2.1rem;}
    .local-left .local-left-text h3 {font-size:1.2rem; line-height: 1.5rem;}
    .local-right {width: 100%; padding: 0!important;}
    .local-right-container {padding-left:0!important; margin-left:0!important;}
    .communities {padding:18px!important; margin-top: 40px;}
    .communities-container {flex-direction:column;}
    .communities-left {width: 100%; padding: 0px!important; margin:0!important; border:none!important;}
    .communities-left .communities-left-text {width:92%!important;}
    .communities-left .communities-left-text h1 {font-size:1.8rem; line-height: 2.1rem;}
    .communities-left .communities-left-text h3 {font-size:1.2rem; line-height: 1.5rem;}
    .communities-left .communities-left-text h4 {padding-bottom:30px;}
    .communities-right {width: 100%; padding: 0px!important; margin:0!important; border:none!important;}
    .communities-right-story {width: 100%; padding:0!important;}
    .valley-life {padding:18px!important; margin-bottom:15px!important;}
    .valley-life-container {flex-direction:column;}
    .valley-life-item {width: 100%; padding: 0px!important; margin:0!important; border:none!important;}
    .valley-life-item .article-background {width:92%!important;}
}

@media screen and (max-width: 500px) {
    .daily-digest-item-container {flex-direction: column;}
    .daily-digest-item {width: 100%; padding: 0px!important; margin:0px!important; border:none!important;}
    .daily-digest-item .article-background {width:92%!important; margin-top:-30px!important; margin-bottom: 15px!important;}
    .in-memoriam {padding:10px!important;}
    .in-memoriam-container {flex-direction: row; flex-wrap:wrap; }
    .in-memoriam-obit {width:50%; padding:7px!important; margin: 0!important; }
}