/* -------------------------------------------
    360 Degree
        - Default Style
---------------------------------------------- */

@import '../../../assets/sass/config';
@import '../../../assets/sass/direction';

// Default Style
.alpha-360-gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;

    .post-div img {
        margin-bottom: 2rem;
    }

    .nav_bar {
        position: absolute;
        display: flex;
        align-items: center;
        left: 50%;
        padding: 0 1.5rem;
        bottom: 15px;
        border-radius: 3rem;
        background: rgba(255, 255, 255, .5);
        transform: translateX(-50%);
        z-index: 11;

        a {
            margin: 0 1rem;
            padding: 1rem;
            font-size: 0;
            text-align: center;
            border: 1px solid transparent;
            color: var(--alpha-dark-color);

            &:hover {
                color: var(--alpha-dark-color-hover);
            }

            &:before {
                line-height: 1;
                font-family: $framework-font;
                font-size: 3rem;
            }
        }

        &+.post-div {
            display: none;
        }

        > :nth-child(2):before {
            content: "\f144";
            font-family: 'Font Awesome 5 Free';
            font-size: 4rem;
        }

        .nav_bar_stop:before {
            content: "\f28b";
        }

        .nav_bar_previous:before {
            content: if_ltr("\e926", "\e928");
        }

        .nav_bar_next:before {
            content: if_ltr("\e928", "\e926");
        }
    }
}

.alpha-360-gallery-wrap {
    position: relative;
    margin: 0 0 2rem;
    cursor: ew-resize;

    &::after {
        content: "";
        position: absolute;
        left: 7rem;
        right: 7rem;
        bottom: 5%;
        height: 50%;
        border-color: rgba(170, 170, 170, 0.05) rgba(170, 170, 170, 0.1) rgba(170, 170, 170, 0.15);
        border-radius: 50%;
        border-style: solid;
        border-width: 2px 2px 3px;
        z-index: 10;
        transition-delay: 0.5s;
    }

    img {
        position: absolute;
        #{$left}: 0;
        top: 0;
    }

    .previous-image {
        visibility: hidden;
    }

    .current-image {
        position: static;
        visibility: visible;
    }

    .not_loaded>& img {
        position: absolute;
        #{$left}: 0;
        opacity: 0;
    }
}