.img-overlay-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

.img-overlay-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.img-overlay-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.img-overlay-slide.active {
    opacity: 1;
}

.img-overlay-bg-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.img-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.img-overlay-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 40px;
}

.img-overlay-title, .img-overlay-title-link {
    margin-top: 0;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
}

.img-overlay-desc {
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

.img-overlay-container[style*="text-align: left"] .img-overlay-desc {
    margin-left: 0;
}

.img-overlay-container[style*="text-align: right"] .img-overlay-desc {
    margin-right: 0;
}

.img-overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    position: relative;
    z-index: 5;
}

.img-overlay-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-icon-before, .btn-icon-after {
    display: inline-flex;
    align-items: center;
}

.btn-icon-before svg, .btn-icon-after svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}