.carousel-content {
    overflow: hidden;
    position: relative;
}

.carousel-content:hover .overlay {
    opacity: 1;
}

.carousel-content:hover {
    overflow: visible;
}

.carousel-content img {
    max-width: 100%;
    transition: all .3s ease-in-out;
}

.carousel-content .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgba(0, 0, 0, 0.5);
    left: 0%;
    width: 72%;
}

.carousel-content .overlay .text {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
