@use 'lg-variables' as *;
@use 'lg-mixins' as *;

.lg-progress-bar {
    background-color: $lg-progress-bar-bg;
    height: $lg-progress-bar-height;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: $zindex-progressbar;
    opacity: 0;
    will-change: opacity;
    @include transitionCustom(opacity 0.08s ease 0s);

    .lg-progress {
        background-color: $lg-progress-bar-active-bg;
        height: $lg-progress-bar-height;
        width: 0;
    }

    &.lg-start {
        .lg-progress {
            width: 100%;
        }
    }

    .lg-show-autoplay & {
        opacity: 1;
    }
}

.lg-autoplay-button {
    // Custom pair rides the same lg-show-autoplay state as the glyphs.
    &.lg-icon-custom .lg-ci-autoplay-pause {
        display: none;
    }
    .lg-show-autoplay &.lg-icon-custom {
        .lg-ci-autoplay-play {
            display: none;
        }
        .lg-ci-autoplay-pause {
            display: inline-flex;
        }
    }
    .lg-single-item & {
        opacity: $lg-toolbar-icon-disabled-opacity;
        pointer-events: none;
    }
}
