.hero-block {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
     /* height: 605px; */
     aspect-ratio: 1920 / 600;
}


.hero-overlay {
   display: block;
    background-color: rgba(255, 233, 95, .8);
    position: absolute;
    right: 252px;
    bottom: 115px;
    text-align: center;
    padding: 30px;
}

.hero-overlay h1 {
    font-size: 54px;
    font-weight: 700;
    margin: 0;
    font-family: "Inter", Arial, Helvetica, Sans-serif;
    line-height: 64.8px;
    color: #000;
}


.hero-overlay .banner-subhead{
    margin-top: 10px;
    font-size: 22px;
    margin-bottom: 0px;
}

.hero-section-block {
    max-width: 100vw;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    width: auto;
    position: relative;
    text-align: center;
    margin-bottom: 0;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
}


@media (min-width: 1400px) {
.subfooter-container{
    width: 1320px;
    margin: 0 auto;
}

.hero-overlay {
   display: block;
    background-color: rgba(255, 233, 95, .8);
    position: absolute;
    right: 252px;
    bottom: 115px;
    text-align: center;
    padding: 30px;
}

.hero-section-block .hero-block {
    /* height: 605px; */
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
} 

}

@media (min-width: 1399px) {
.hero-section-block .hero-block {
    height: 605px;
    width: 100%;
} 

}

@media (max-width: 767px) {
     .hero-overlay{
        padding: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    right: 0;
    bottom: 0;
    background-color: #ffe95f;
    }

    .hero-overlay h1{
        font-size: 24px;
    }
    .hero-section-block .hero-block {
    height: auto;
    width: 100%;
    /*aspect-ratio: 16/9;*/
} 

.hero-overlay .banner-subhead {
    margin-top: 0px;
    font-size: 16px;
    margin-bottom: 0px;
}


.entry-content:has(.banner-subhead)> .hero-section-block .hero-block .hero-overlay h1 {
   line-height:34px
}
 

}


@media screen and (min-width: 768px) and (max-width: 1024px) {
   .hero-overlay {
   padding: 18px;
   position: relative;
   width: auto;
   max-width: 100%;
   left: 0;
   bottom: 0;   
   right: 0;
   background-color: #ffe95f;
    }
    
    .subfooter-container {
        max-width: 960px;
    }
    .hero-overlay h1{
        font-size: 36px;
        line-height: 34px;
    }

    .hero-section-block .hero-block {
    /*height: 100%;*/
    width: 100%;
    /*aspect-ratio: 16/9;*/
} 

.entry-content:has(.banner-subhead)> .hero-section-block .hero-block .hero-overlay h1 {
   line-height:34px
}
 
}


