﻿@import "../../../Styles/functions.scss";

.bit-swp {
    margin: auto;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.bit-swpi {
    flex-shrink: 0;
}

.bit-swp-cnt {
    width: 100%;
    height: 100%;
    cursor: grab;
    display: flex;
    user-select: none;
    transform: translateX(0);
    transition-duration: 300ms;
    transition-timing-function: ease-out;
    transition-property: transform, -webkit-transform;
}

.bit-swp-rbt,
.bit-swp-lbt {
    top: 0;
    bottom: 0;
    border: 0;
    width: 10%;
    padding: 0;
    z-index: 1;
    opacity: .5;
    display: flex;
    cursor: pointer;
    background: 0 0;
    position: absolute;
    text-align: center;
    align-items: center;
    font-size: spacing(3);
    justify-content: center;
    transition: opacity .15s ease;
    color: $clr-fg-pri;

    @media (hover: hover) {
        &:hover {
            outline: 0;
            opacity: .9;
            text-decoration: none;
            color: $clr-fg-pri-hover;
        }
    }
}

.bit-swp-rbt {
    right: 0;
}

.bit-swp-lbt {
    left: 0;
}

.bit-swp-lbi {
    transform: scaleX(-1);
}

.bit-swp-dot {
    text-align: center;
    margin-top: spacing(1.25);

    > div {
        cursor: pointer;
        border-radius: 50%;
        width: spacing(1.25);
        height: spacing(1.25);
        display: inline-block;
        margin: 0 spacing(0.5);
        transition: background-color 0.6s ease;
        background-color: $clr-bg-sec;

        @media (hover: hover) {
            &:hover {
                background-color: $clr-bg-sec-hover;
            }
        }

        &.current {
            background-color: $clr-pri;

            @media (hover: hover) {
                &:hover {
                    background-color: $clr-pri-hover;
                }
            }
        }
    }
}
