/* ==========================================================================
   Widget: Rotating Cylinder
   BEM root: .rotating-cylinder
   ========================================================================== */

.rotating-cylinder {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    --cpx-mask-fade-size: 50px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--cpx-mask-fade-size), #000 calc(100% - var(--cpx-mask-fade-size)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--cpx-mask-fade-size), #000 calc(100% - var(--cpx-mask-fade-size)), transparent 100%);
}

.rotating-cylinder:active {
    cursor: grabbing;
}

.rotating-cylinder__track {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.rotating-cylinder__item {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.25;
    pointer-events: none;
    transform-origin: left center;
    will-change: transform, opacity;
}

.rotating-cylinder__accent {
    font-weight: 800;
}

/* ==========================================================================
   Mobiel: fade-rotator
   ========================================================================== */

.rotating-cylinder__slide {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.rotating-cylinder__slide--active {
    opacity: 1;
}

.rotating-cylinder--mobile {
    overflow: visible;
    cursor: default;
    -webkit-mask-image: none;
    mask-image: none;
}

.rotating-cylinder--mobile .rotating-cylinder__track {
    position: relative;
}