:root {
    --items-count: 5;
    --carousel-item-width: 650px;
}

.zc {
    position: relative;
    height: auto;
    width: var(--content-width);
    margin: 53px auto 0;
}

.zc-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.zci {
    display: block;
    position: absolute;
    height: auto;
    left: calc(50% - var(--carousel-item-width)/2);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
}

.zci:after {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    background: #f1f1f1;
    transition: all 1s;
}
.zci.loaded:after {
    background: transparent;
}

.zci img {
    width: var(--carousel-item-width);
    transition: 0.5s;
    border-radius: 8px;
    background: #FFFFFF;
}

.zci:hover img {
    transform: scale(1.1);
}

.zci .title {
    position: absolute;
    left: 0;
    padding: 0 50px;
    color: #FFFFFF;
    text-align: center;
    font-size: 25px;
    line-height: 30px;
    width: calc(var(--carousel-item-width) - 100px);
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
    bottom: 90px;
}

.zci-hidden {
    width: var(--carousel-item-width);
    opacity: 0;
    pointer-events: none;
    height: 450px;
}


.zci-filter {
    display: block;
    content: '';
    background: linear-gradient(transparent,transparent 60%, var(--color-main-dark) 98%) !important;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.zci:hover .zci-filter {
    opacity: 0.5;
}
