
@keyframes kenBurns {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.3);
    }
  }

body {
    font-family: Arial, sans-serif;
}

.aronda-swiper.custom {
    height: 300px;
    position: static; 
    overflow: hidden;

    .swiper-pagination-bullet.aronda {
        background: 0;
        opacity: 1;
        height: max-content;
        width: max-content;
        caret-color: transparent;

        &:hover.hover-effect {
            transform:scale(1.15);
        }
    }

    .arrows {
        position: absolute;
        width: 100%;
        z-index: 1;
        --arrows-horizontal-offset: 0;
        --arrows-vertical-offset: 0;
        
        .growbox{
            position: absolute;
            justify-content: space-between;
            display: flex;
            min-width: max-content;

            .arrow {
                position: relative;
                margin-left: 0;
                margin-right: 0;
                left: 0;
            }

            &.unit-px  { gap: var(--grow); }
            &.unit-pct { width: var(--grow); }

        }

        &.center {
            top: calc(50% + var(--arrows-vertical-offset));
            .growbox {
                left: calc(50% + var(--arrows-horizontal-offset));
                transform: translateY(-50%) translateX(-50%);
                top:0;
            }            
        }
        
        &.center-left { 
            top: calc(50% + var(--arrows-vertical-offset));
            left: var(--arrows-horizontal-offset); 

            .growbox { 
                left:0;
                transform: translateY(-50%) translateX(-50%) rotate(90deg) translateY(-50%);
                &.unit-pct {
                    width:calc(var(--slider-height) * (var(--grow-num) / 100));
                }
            }
        }

        &.center-right {
            top: calc(50% + var(--arrows-vertical-offset));
            right: calc((-1) * var(--arrows-horizontal-offset));

            .growbox { 
                right:0;
                transform: translateY(-50%) translateX(50%) rotate(90deg) translateY(50%);
                &.unit-pct {
                    width:calc(var(--slider-height) * (var(--grow-num) / 100));
                }
            }
        }

        &.top-left {
            top: var(--arrows-vertical-offset);
            left: var(--arrows-horizontal-offset);

            .growbox {
                top:0;
                left:0;
            }
        }

        &.top-center {
            top: var(--arrows-vertical-offset);
            
            .growbox {
                left: calc(50% + var(--arrows-horizontal-offset));
                transform: translateX(-50%);
                top:0;
            }
        }

        &.top-right {
            top: var(--arrows-vertical-offset);
            right:calc((-1) * var(--arrows-horizontal-offset));

            .growbox {
                top:0;
                right:0;
            }
        }

        &.bottom-left {
            bottom: calc((-1) * var(--arrows-vertical-offset));
            left: var(--arrows-horizontal-offset);

            .growbox {
                bottom:0;
                left:0;
            }
        }

        &.bottom-center {
            bottom: calc((-1) * var(--arrows-vertical-offset));

            .growbox {
                left: calc(50% + var(--arrows-horizontal-offset));
                transform: translateX(-50%);
                bottom:0;
            }
        }

        &.bottom-right {
            bottom: calc((-1) * var(--arrows-vertical-offset));
            right: calc((-1) * var(--arrows-horizontal-offset));

            .growbox {
                bottom:0;
                right:0;
            }
        }
    }

    .arrow {
        display: flex;
        color:white;
        height:max-content;
        width:max-content;
        bottom:100%;
        margin-bottom: auto;
        margin-top: auto; 
        caret-color: transparent;
        background-image: none;

        &::after {
            content: "";
        }

        &:hover.hover-effect {
            transform:scale(1.15);
        }

        &.hide-on-mobile { 
            @media (max-width: 767px) {
                visibility: hidden;
            }
        }
    }
    .color-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0%;
    }

    .button-wrapper .button{
        color: white;
        background-color: var(--e-global-color-secondary);
        padding: 5px 10px;
        border-radius: 10px;
        line-height: 1;
        z-index: 5;
    }

    .title { 
        line-height: 1;
        margin: 0;
        display: table-cell;
    }

    .description {
        line-height: 1;
        display: table-cell;
    }

    .text-overlay {
        color:white;
        position: absolute;
        justify-content: center;
        display: table;
        align-items: center;
        flex-direction: column;
        width: max-content;
        max-width: calc(100% - var(--margin-left) - var(--margin-right));
        padding: 10px;
        z-index: 4;
        hyphens: auto;

        --margin-left: 0px;
        --margin-top: 0px;

        .overlay-item {
            display: flex;
            justify-content: center;
            vertical-align: middle;

            &.arrange-horizontal {
                display:table-cell;
            }
 
            .button-wrapper {
                display: flex;
                justify-content: center;
            }
        }

        &.top {
             top: 0;
        }

        &.middle {
            transform: translateY(-50%);
            top: calc(50% - var(--margin-top));

            &.center {
                transform: translateX(-50%) translateY(-50%);
            }
        }
        
        &.bottom {
            bottom: 0;
        }

        &.left {
            left: 0;
        }

        &.center {
            transform: translateX(-50%);
            left: calc(50% - var(--margin-left));
        }

        &.right {
            right: 0;
        }

        &.text-center {
            .overlay-item{
                justify-content: center;
                text-align: center;
            }
        }

        &.text-left { 
            .overlay-item{
                justify-content: left;
                text-align: left;
            }
        }

        &.text-right {
            .overlay-item{
                justify-content: right;
                text-align: right;
            }
        }
    }

    .swiper-pagination-clickable.custom {
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: max-content;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px;
        bottom: 0;

        &.outside {
            transform: translateX(-50%) translateY(100%);
        }
    }

    .pagination-icon-container {
        display: none;
    }

    .btn-content {
        display: flex;
        align-items: center;
        
        &.after-text {
            flex-direction: row-reverse;
        }
    }

    .btn-icon.svg {
        height: 1.2em;
    }

    .btn-text {
        margin-bottom: 0;
    } 

    .background-media{
        width: 100%;
        height: 100%;
        object-fit: cover;
        vertical-align: middle;
        &.ken-burns.ken-burns--active.zoom-out {
            transform: scale(1.3);
        }
        filter:opacity( calc( (100 - var( --opacity )) / 100 ));
    }
    .swiper-slide {
        .background-media.ken-burns.ken-burns--active.zoom-in {
            animation: kenBurns 20s linear forwards;
        }
        .background-media.ken-burns.ken-burns--active.zoom-out {
            animation: kenBurns 20s linear forwards reverse;
        }
        &.swiper-slide-active {
            z-index: 2;
        }
    }

    .video-error {
        width: 100%;
        height: 100%;
        background-color: white;
        p {
            padding: 10px;
            color:red;
        }
    }

    .video-wrapper {
        height: 100%;
        img {
            position: absolute;
            z-index: 2;
        }
        video {
            height: 100%;
            position: absolute;
            z-index: 1;
            &.is-ready {
                z-index: 3;
            }
        }
    }

}

.video-big-notice {
    color: red;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3px;
}

.custom-svg-container {
    display: none;
}