body.scpopshow{overflow: hidden;}
.scpop{
    position: fixed;
    z-index: 1000;
    background-color: rgba(#000000, 0.8);
    width: 100%;
    height: 100vh;
    top: 0px;
    left: 0px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;

    &.show{
        top: 0px;
        visibility: visible;
        opacity: 1;
    }

    &__toolbar{
        position: absolute;
        z-index: 10001;
        width: calc(100% - 20px);
        padding: 10px;
        top: 0px;
        left: 0px;

        a{
            text-decoration: none;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            text-shadow: 0px 0px 10px rgba(#000, 0.6);
            position: absolute;
            z-index: 10002;
        }
        &_close{
            top: 10px;
            right: 15px;
        }
        &_prev{
            top: calc(50vh - 20px);
            left: 15px;
        }
        &_next{
            top: calc(50vh - 20px);
            right: 15px;
        }
    }

    &__inner{
        width: 100%;
        height: 100%;
        display: grid;
        grid-auto-flow: column;
        overflow-y: hidden;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        &::-webkit-scrollbar{
            display: none;
        }
    }
    
    &__item{
        scroll-snap-align: start;
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;

        &_caption{
            position: absolute;
            padding: 10px;
            width: calc(100% - 20px);
            text-align: center;
            color: #fff;
            background-color: rgba(#000000, 0.2);
            bottom: 0px;
            left: 0px;
        }

        & img{
            display: block;
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 100%;
        }

        & iframe{
            display: block;
            width: 90%;
            height: 90%;
        }
    }
}