.animated-overlay-image-block {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    box-sizing: content-box;

    * {
        box-sizing: content-box;
    }

    .animated-overlay-image-block__image {
        width: 100%;
        max-width: 100% !important;
        height: auto;
        display: block;
    }

    .animated-overlay-image-block__overlay {
        position: absolute;
        width: 100%;
        bottom: 0;
        max-height: 50%;
        left: 0;
        right: 0;
        padding: 7%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        transition: all 0.3s ease-in-out;


        &.overlay-yellow {
            background-color: #ffc720BF;

            .animated-overlay-image-block__overlay-text {
                color: #000000;
            }
        }

        &.overlay-red {
            background-color: #a02d2cBF;
        }

        &.overlay-black {
            background-color: #00000080;
        }

        .animated-overlay-image-block__overlay-text {
            color: white;
            font-family: "Univers Condensed Bold", sans-serif !important;
            font-size: 275%;
            text-wrap: balance;
            text-align: center;
            text-transform: uppercase;
            line-height: 1.2;
            margin: 0;
        }

    }
    .animated-overlay-image-block__link {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .animated-overlay-image-block__cta-button {
        overflow-wrap: break-word;
        word-break: break-word;
        text-align: center;
        align-items: center;
        border-radius: 5px;
        display: flex;
        font-family: Univers Condensed Bold,sans-serif!important;
        height: 40px;
        justify-content: center;
        padding: 0!important;
        width: fit-content;
        font-size: 19px!important;
        font-weight: 400;
        line-height: 1.6;
        text-decoration: none;
        text-transform: uppercase;
        white-space: nowrap;
        padding: 0 20px !important;
        max-height: 0px;
        overflow: hidden;
        margin-top: 0px;
        transition: all 0.3s ease-in-out;
        
        
        &.yellow-button {
            color: #ffc720;
            background-color: #000000;
        }
        &.red-button {
            color: #a02d2c;
            background-color: black;
        }
    }
}

.animated-overlay-image-block:hover {
    
    .animated-overlay-image-block__overlay {
        max-height: 100%;
    }
    .animated-overlay-image-block__link {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .animated-overlay-image-block__cta-button {
        margin-top: 20px;
        max-height: fit-content;

        &.yellow-button {
            color: #ffc720;
            background-color: #000000;
        }
        &.red-button {
            color: #a02d2c;
            background-color: black;
        }
    }
}