.imagewithtext {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    color: #fff;
}

.imagewithtext .btn {
    border: 1px solid #fff !important;
    background: transparent !important;
    color: #fff;
}

.imagewithtext .btn:hover {
    background: #fff !important;
    color: #000 !important;
}

.imagewithtext .content-overlay {
    background: rgba(0,0,0,0.5);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 1;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

.imagewithtext:hover .content-overlay{
    opacity: 1;
}

.content-image{
    width: 100%;
}

.content-details {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 1;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.content-details.bottom {
    bottom: 5% !important;
    top: unset;
}

.imagewithtext:hover .content-details{
    top: 49%;
    left: 50%;
    opacity: 1;
}

.imagewithtext:hover .content-details.bottom {
    bottom: 7% !important;
    top: unset;
}

.content-details h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

@media only screen and (max-width:768px) {
    .content-details h3 {
        font-size: 16px;
        font-weight: 400;
    }
}

.content-details h3.textnormal {
    text-transform: none;
}

.content-details p{
    color: #fff;
    font-size: 0.8em;
}