.wp-block-atb-image-card {
    background: #042952;
    text-align: center;
    border-radius: 5px;
    
    background-color: #042952; /* Used if the image is unavailable */
    height: 100%; /* You must set a specified height */
    max-height: 275px;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
    /*opacity: 0.5;*/
    
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    }

div.image-card-content, a.image-card-content {
    transition: all .5s;
    }

/*
div.image-card-content:hover, a.image-card-content:hover {
    top: 0;
    transition: all .5s;
    }
*/

p.image-card-text:hover, p.image-card-text:active, p.image-card-text:focus {
   /* opacity: 1;
    transition: all .5s;*/
    }

.wp-block-atb-image-card .image-card-title {
    color: #fff;
    margin: auto;
    padding: 0;
  /*  font-family: "EncodeSans-Regular"; */
    padding-bottom: 10px;
    font-size: 1em;
    padding: 1em;
    line-height: 1.5em;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    }

p.image-card-text {
    /*opacity: 0;*/
    line-height: 1.5em;
    }

.atb-image-card-content {
    font-family: serif;
    font-size: 24px;
    color: #fff;
    padding-bottom: 30px;
    margin-bottom: 0;
    
    
    position: absolute;
    top: 0px;
    z-index: 3;
    }

.atb-image-card-button {
    background: #000;
    border: 0px;
    border-radius: 5px 5px 0 0;
    padding: 12px 35px;
    color: #fff;
    font-family: sans-serif;
    }

/**
 * Note that these styles are loaded *before* editor styles, so that
 * editor-specific styles using the same selectors will take precedence.
 */
.wp-block-atb-image-card .image-card-bg {
    min-height: 100px;
    text-align: center;
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    max-height: 160px;
    }

.wp-block-atb-image-card .image-card-bg button {
    margin-top: 30px;
    }

.wp-block-atb-image-card .image-card-bg button.image-button {
    margin: 0;
    padding: 0;
    display: block;
    }

.wp-block-atb-image-card .image-card-bg img {
    display: block;
    z-index: 1;
    position: relative;
    
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
    
    object-fit: cover;
    }

.wp-block-atb-image-card:after {
    content:"";
    clear:both;
    display: table;
}
