/* モーダルと背景の指定 */
.image_modal {
    display: flex;
    position: fixed;
    background: rgba(0,0,0,50%);
    z-index: 5;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    /* box-sizing: border-box; */
    /*下の2つで中の要素を上下左右中央寄せにする*/
    align-items: center;
    justify-content: center;
}

/* クラスが追加された時の指定 */
.is_active {
    opacity: 1;
    visibility: visible;
}

/* モーダル内側の指定 */
.modal_container {
    position: relative;
    /* background: #fff; */
    color: #555;
    width: 90%;
    height: 90%;
    padding: 0px;
    border-radius: 10px;
    /* position: absolute; */
    /* top: 100px; */
    left: 0;
    right: 0;
    margin:auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* モーダルを閉じるボタンの指定 */
.modal_close {
    position: absolute;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #000000b0;
    border-radius: 50%;
    cursor: pointer;
}

/* モーダルのコンテンツ部分の指定。 */
.modal_content {
    position: relative;
    max-height: 100%;
}

.in_modal_image{
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit: contain;
}

.modal_next{
    position: absolute;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: center;
    right: -15px;
    top:50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    color: #fff;
    background: #000000b0;
    border-radius: 10%;
    cursor: pointer;
}

.modal_prev{
    position: absolute;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: center;
    left: -15px;
    top:50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    color: #fff;
    background: #000000b0;
    border-radius: 10%;
    cursor: pointer;
}
