@charset "utf-8";

.js-windowWrap::before {
    background: rgba(0,0,0,.7);
    content: '';
    cursor: pointer;
    display: block;
    height: 100vh;
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%,-50%);
    width:  100vw;
    z-index: 10000;
}

.js-windowWrap {
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 10001;
}

.js-windowWrap img {
    display: block;
    position: relative;
    max-height: 100%;
    max-width: 100%;
    z-index: 10001;
}

.js-windowWrap::after {
    color: #fff;
    content: '×';
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    right: 0;
    top: -1em;
    z-index: 10002;
}

@media screen and (max-width: 768px){
    .js-windowWrap {
        max-height: 90vh;
        max-width: 90vw;
        width: 100%;
    }
    .js-windowWrap::after {
        font-size: 5vw;
    }
}

@media screen and (min-width: 769px){
    .js-windowWrap {
        max-height: 80vh;
        max-width: 80vw;
    }
    .js-windowWrap::after {
        font-size: 25px;
    }
}
