@charset "UTF-8";

.js-modal-img{
    cursor: pointer;
}

.modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.modal.is-show{
    display: block;
}
.modal__bg{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.modal__wrapper{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px 10px 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-radius: 3px;
}
.modal__content img{
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    margin: 0 auto;
}
.modal__close{
    padding: 0;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;

    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    font-weight: 500;
}
.modal__close:focus{outline: none;}

@media screen and (max-width: 480px){
    .modal__wrapper{
        width: 90%;
    }
}