.cta {
    margin-bottom: 5px;
}

.cta,
.cta .background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

@media (min-width: 40em) and (max-width: 1024px){
    .cta,
    .cta .background {
        max-height: 198px;
    }
}

.cta .background {
    overflow: hidden;
}

.cta .background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(0,0,0,0.31);

}  

.cta .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    
    display: grid;
    align-items: center;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    padding: 0 19px 0 14px;
    max-width: 309px;
}

.cta.enews .overlay {
    grid-template-columns: 1fr 79px;
    gap: 18px;
    padding: 0 18px 0 12px;
}

.cta .overlay h5 {
    font-family: var(--font-body-heavy-italic);
    font-weight: normal;
    font-size: 14px;
    line-height: 1.353em;
    letter-spacing: 0.06em;
    color: white;
}

.cta.enews .overlay img {
    order: 2;
}

/*Mobile Menu CTAs*/
.panel-header .mobile-nav .cta {
    margin-bottom: 9px;
}
.panel-header .mobile-nav .cta,
.panel-header .mobile-nav .cta .background  {
    height: 125px;
}

.panel-header .mobile-nav .cta .overlay {
    grid-template-columns: 78px 1fr;
    max-width: 500px;
    gap: 22px;
}

.panel-header .mobile-nav .cta.enews .overlay {
    grid-template-columns: 1fr 80px;
    padding-right: 15px;
}

.panel-header .mobile-nav .cta .overlay h5 {
    font-size: 13px;
}
/*****************/

@media (min-width: 500px) {
    .cta .overlay h5 {
        font-size: calc(14px + (20 - 14) * ((100vw - 500px) / (1024 - 500)));
   }
}

@media (min-width: 40em) {
    .cta .overlay {
        grid-template-columns: calc(80px + (100 - 80) * ((100vw - 640px) / (1024 - 640))) 1fr;
        max-width: 500px;
    }

    .cta.enews .overlay {
        grid-template-columns: 1fr calc(80px + (100 - 80) * ((100vw - 640px) / (1024 - 640)));
    }
}

@media (min-width: 64em) {
    .panel-footer .cta-container .cta {
        margin-bottom: 0;
    }

    .cta .background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.2);
        transition: transform ease-out 1s 0s;
    }

    .cta .overlay {
        grid-template-columns: calc(90px + (134 - 90) * ((100vw - 1025px) / (1440 - 1025))) 1fr;
        max-width: 486px;
        gap: calc(30px + (49 - 30) * ((100vw - 1025px) / (1440 - 1025)));
        padding: 0 30px 0 15px;
    }

    .cta.enews .overlay {
        grid-template-columns: 1fr calc(90px + (135 - 90) * ((100vw - 1025px) / (1440 - 1025)));
        gap: calc(30px + (46 - 30) * ((100vw - 1025px) / (1440 - 1025)));
        max-width: 485px;
        padding-right: 16px;
        padding-left: 15px;
    }

    .cta .overlay h5 {
        font-size: 22px;
        line-height: 33px;

    }

    /*Menu CTAs*/
    .panel-header .menu .cta,
    .panel-header .menu .cta .background {
        min-height: 175px;
        margin-bottom: 8px;
    }
    .panel-header .menu .cta .overlay {
        grid-template-columns: calc(70px + (114 - 70) * ((100vw - 1025px) / (1440 - 1025))) 1fr;
        gap: calc(25px + (40 - 25) * ((100vw - 1025px) / (1440 - 1025)));
        padding: 0 30px;
    }

    .panel-header .menu .cta.enews .overlay {
        grid-template-columns: 1fr calc(70px + (115 - 70) * ((100vw - 1025px) / (1440 - 1025)));
        gap: calc(20px + (26 - 20) * ((100vw - 1025px) / (1440 - 1025)));
        padding-right: 30px;
        padding-left: 30px;
    }

    .panel-header .menu .cta .overlay h5 {
        font-size: calc(16px + (19 - 16) * ((100vw - 1025px) / (1440 - 1025)));
        line-height: 1.474em;

    }   

    .panel-header .menu .cta .background img {
        min-height: 175px;
    }

}

@media (min-width: 1440px) {
    .cta .overlay {
        grid-template-columns: 134px 1fr;
        gap: 49px;
        padding: 0 30px 0 3px;
    }

    .cta.enews .overlay {
        grid-template-columns: 1fr 135px;
        gap: 46px;
        padding-right: 16px;
        padding-left: 2px;
    }

    .panel-header .menu .cta .overlay {
        grid-template-columns: 113px 1fr;
        gap: 40px;
        padding: 0 30px 0 40px;
    }

    .panel-header .menu .cta.enews .overlay {
        grid-template-columns: 1fr 115px;
        gap: 25px;
        padding-right: 31px;
        padding-left: 29px;
    }

    .panel-header .menu .cta .overlay h5 {
        font-size: 19px;
        line-height: 28px;
    } 
}

@media (hover: hover) {
    .cta:hover .background img{
        transform: scale(1);
        transition: transform ease-out 5s 0s;
    }

    .cta:hover .overlay h5 {
        text-decoration: underline;
    }
}



