.image-buttons {
    z-index: 2;
    position: relative;
    background-color: transparent;
}

.masthead + .image-buttons {
    padding-top: 0;
    margin-top: -10px;
}

@media (max-width: 767px) {
    .masthead + .image-buttons {
        padding-top: 0;
        margin-top: 5px;
    }
}

.image-button-item {
    margin-top: 20px;
}

.image-button {
    position: relative;
    display: block;
    width: 100%;
    height: 174px;
    border: none;
    border-radius: 5px;
    transition: none;
}

.image-button__img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.image-button__hover:after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.46) 100%);
    border-radius: 5px;
}

.image-button--link:after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, #000 100%);
    opacity: 0.5;
    border-radius: 5px;
}

.image-button__hover {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 22px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 4;
}

.image-button__title,
.image-button__hidden {
    position: relative;
    z-index: 3;
}

.image-button__description,
.image-button__cta {
    display: block;
}

.image-button__title {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 54px 0 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.image-button__title::after {
    content: '\e912';
    font-family: 'icomoon';
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #1D51A4;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    font-size: 13px;
    color: #fff;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-button__cta {
    position: relative;
    background-color: #1D51A4;
    border-radius: 5px;
    border: none;
    color: #fff;
    padding: 14px 36px 14px;
    left: -50px;
    z-index: 3;
    opacity: 1;
    font-size: 16px;
    font-weight: 700;
    margin-top: auto;
    text-align: left;
}

.image-button__cta::after {
    content: '\e912';
    font-family: 'icomoon';
    position: relative;
    right: 0;
    margin-left: 20px;
    transform: translate(0, -50%);
    font-size: 13px;
    color: #fff;
    font-weight: normal;
}

.image-buttons__row {
    justify-content: center;
}

.image-button__background .image-button__title {
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.image-button__background .image-button__title:after {
    position: relative;
}

.image-button__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.image-button__description {
    position: relative;
    z-index: 3;
    color: #fff;
}

.image-buttons--homepage {
    background-color: transparent;
}

.image-buttons--homepage .read-more__content {
    -webkit-line-clamp: 4;
}

.image-buttons--homepage .row {
    --bs-gutter-x: 15px;
}

@media (min-width: 768px) {
    
    .image-button-item {
        margin-top: 20px;
    }

    .image-button {
        min-height: 238px;
    }

    .image-button--big {
        min-height: 288px;
    }

    .image-button__hover {
        padding: 11px 12px;
    }

    .image-button--big .image-button__hover {
        padding: 15px 19px;
    }

    .image-button__hover:after {
        height: 174px;
    }

    .image-button--big .image-button__hover:after {
        height: 210px;
    }

    .image-buttons--homepage .image-button__hover {
        padding-bottom: 32px;
    }

    .image-button__background .image-button__title {
        padding: 20px 15px;
    }

    .image-button__cta--home {
        padding: 14px 42px 14px 27px;
        left: 13px;
        bottom: -26px;
        opacity: 1;
    }

    .image-buttons--homepage .image-button__title::after {
        display: none;
    }

    .image-buttons--homepage .image-button__hover {
        min-height: 410px;
        height: 410px;
    }
    
}

 
@media (min-width: 1200px) {

    .image-button-item {
        margin-top: 15px;
    }

    .image-button,
    .image-button--big {
        min-height: 100%;
        height: 100%;
    }

    .image-button .image-button__hover,
    .image-button--big .image-button__hover {
        min-height: 450px;
    }

    .image-button__hover,
    .image-button--big .image-button__hover {
        padding: 20px 15px;
    }

    .image-button__hover:after,
    .image-button--big .image-button__hover:after {
        height: 328px;
    }

    .image-button__title {
        font-size: 30px;
        padding: 0;
    }

    .image-button__background .image-button__title {
        padding: 30px 40px 36px 32px;
    }

    .image-button__title::after {
        display: none;
    }

    .image-button__hidden {
        opacity: 0;
        height: 0;
        transition: all 0.5s ease-in-out;
    }

    .image-button:hover .image-button__hover:after {
        height: 100%;
        background: linear-gradient(135deg,  rgba(0,23,75,1) 0%,rgba(9,75,144,1) 100%); 
        opacity: 0.76;
    }

    .image-button:hover .image-button__hover {
        opacity: 1;
    }

    .image-button__description {
        font-weight: normal;
        font-size: 15px;
        padding-bottom: 20px;
    }

    .image-button--big .image-button__description {
        font-size: 17px;
    }

    .image-button:hover .image-button__cta {
        opacity: 1;
    }

    .image-button__cta {
        padding: 14px 30px 14px 50px;
    }

    .image-button--big .image-button__cta {
        max-width: calc(100% - 95px);
    }

    .image-button:hover .image-button__img {
        transform: scale(1);
    }

    .image-button__img {
        transform: scale(1.05);
        transition: transform 0.3s ease-in-out;
    }

    .image-buttons--homepage .image-button__hover {
        min-height: 410px;
        height: 410px;
    }
}

@media (min-width: 1366px) {   
    .image-button__hover,
    .image-button--big .image-button__hover {
        padding: 30px 40px 36px 32px;
    }

    .image-button__cta {
        padding: 14px 30px 14px 50px;
    }

    .image-button--big .image-button__cta {
        left: -55px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .image-buttons--homepage .image-button__background > .image-button__title {
        display: none;
    }

    .image-button__background {
        overflow: initial;
    }

    .image-button__img {
        border-radius: 5px;
    }

    .image-button__background__bottom .image-button__title {
        position: relative;
        padding: 0 0 8px;
    }

    .image-button__background__bottom {
        position: absolute;
        bottom: -20px;
        left: 0;
        width: 100%;
        padding-inline: 10px;
    }

    .image-button__background__bottom .image-button__cta--home {
        bottom: 0;
        left: 0;
        padding: 14px 20px;
        width: 100%;    
    }
}