*{
    box-sizing: border-box;
}

.imgButton{
    position: relative;
    display: grid;
    width: 100%;
    max-height: 20rem;
    overflow: hidden;
}

.imgButton img{
    width: 100%;
}

.imgButton h2{
    width: 100%;
    height: 100%;
    display:grid;
    position: absolute;
    text-align: center;
    align-items: center;
    justify-self: center;
    padding: 0 3rem;
    color: #fff;
    background-color: rgba(0,0,0,0.3);
}

.imgButton a{
    z-index: 1;
}