.carousel {

    overflow: hidden;
    position: relative;
    flex-flow: column;
    display: flex!important;

    .carousel__viewport {
        overflow: hidden;
    }

    .carousel__container {
        display: flex;
        touch-action: pan-y pinch-zoom;
        margin: 0;
        align-items: var(--carousel-slides-valing);
    }

    .carousel__slide {
        min-width: 0;
        min-height: var(--carousel-slide-height, 100%);
        flex: 0 0 var(--carousel-slide-with, 100%);
        margin: 0 calc(var(--carousel-slide-gap, 4rem) /2);
        display: flex;

        .subtitle {
            color: var(--bulma-link);
            font-size: 2em;
            font-weight: 600;
        }
    }

    .carousel__slide__number {
        border-radius: 1.8rem;
        font-size: 4rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        height: var(--slide-height);
        user-select: none;
      }
      .carousel__controls {
        justify-content: center;
        /* gap: 2rem;
        margin-top:0;
        padding: 0 1em; */
        display: flex;
        /* height: 2.5rem; */

        &.carousel__plugin--autoscroll {
          justify-content: end;
        }
      }
      .carousel__buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        align-items: center;
      }

      .carousel__button {
        cursor: pointer;

        &.icon {
            border-radius: 30px;
            transition: all .3s ease-in-out;
            color: var(--bulma-link);
            
            &:hover {
                background-color: #f2f2f2;
            }
        }
      }

      .carousel__button__icon--play {
        display: inline;
      }

      .carousel__button__icon--stop {
        display: none;
      }

      .carousel__autoplay--started {

        .carousel__button__icon--play {
            display: none;
        }

        .carousel__button__icon--stop {
            display: inline;
        }
     }

     .carousel__buttons--inner {

        .carousel__button--prev {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(calc(-50% - 20px));
            border: 2px solid;
            padding: 1em;
            border-radius: 0;
        }

        .carousel__button--next {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(calc(-50% - 20px));
             border: 2px solid;
            padding: 1em;
            border-radius: 0;
        }
    }



      .carousel__button--hidden {
        display: none;
      }

      .carousel__progress {
        border-radius: 1.8rem;
        background-color: var(--bulma-text-90);
        position: relative;
        height: 0.2rem;
        justify-self: flex-end;
        align-self: center;
        width: 13rem;
        max-width: 90%;
        overflow: hidden;
    
      }

      .carousel__progress__wrapper {
        display: flex;
        gap: 2rem;
        align-items: center;
                margin-top: 1em;
      }

      .carousel__progress__bar {
        background-color: var(--bulma-link);
        position: absolute;
        width: 100%;
        top: 0;
        bottom: 0;
        left: -100%;
      }

      .carousel__progress {
        justify-self: center;
        transition: opacity 0.3s ease-in-out;
        width: 8rem;
      }
      .carousel__progress--hidden {
        opacity: 0;
      }
      .carousel__progress__bar {
        animation-name: autoplay-progress;
        animation-timing-function: linear;
        animation-iteration-count: 1;
      }
      .carousel__progress--hidden .carousel__progress__bar {
        animation-play-state: paused;
      }
     
      .carousel__dots {

        --carousel-dot-bottom: 15px;

        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        margin-right: 0;
        position: absolute;
        bottom: var( --carousel-dot-bottom);
        left: 50%;
        transform: translate(-50%, -50%);
        gap: 0.6rem;

        &.carousel__dots--inner {
            --carousel-dot-bottom: 50px;
        }
      }
      
      .carousel__dot {
        -webkit-tap-highlight-color: rgba(49, 49, 49, 0.5);
        -webkit-appearance: none;
        appearance: none;
        background-color: transparent;
        touch-action: manipulation;
        display: inline-flex;
        text-decoration: none;
        cursor: pointer;
        border: 0;
        padding: 0;
        margin: 0;
        width: .8rem;
        height: .8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
      }
      .carousel__dot:after {
        box-shadow: inset 0 0 0 0.08rem rgb(234, 234, 234);
        width: .8rem;
        height: .8rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        content: '';
      }
      .carousel__dot--selected:after {
        box-shadow: inset 0 0 0 0.08rem  var(--bulma-link);
        background: var(--bulma-link);
      }

      .carousel__dots--lines {

        .carousel__dot {
            height: 0;
            background-color: var(--bulma-link);
            transition: padding .3s ease-out;
            border-radius: 5px;
            padding: 2px;
            width: .5rem;
        }

        .carousel__dot::after {
            height: 0;
        }

        .carousel__dot.carousel__dot--selected {
            padding: 2px 1em;
        }
      }
      
}

@keyframes autoplay-progress {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(100%, 0, 0);
    }
  }