.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 1000px;
}
/* The Close Button */
.close {
    position: absolute;
    top: 5%;
    right: 15%;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.image_mobile{
    display:none;
}

.popup_image:hover,
.popup_image:focus {
    cursor: pointer;
}

@media (min-width: 1281px) {
    .close {
        right:5%;
    }
}

@media (min-width: 1500px) {
    .close {
        right:12%;
    }
}

@media (min-width: 1700px) {
    .close {
        right:16%;
    }
}

@media (min-width: 1920px) {
    .close {
        right:20%;
    }
}

@media (min-width: 2400px) {
    .close {
        right:27%;
    }
}

/* Tablet */
@media (max-width: 1280px) {
    .close {
        right:2%;
        top:4%;
    }
    /* Modal Content (image) */
    .modal-content {
        width: 90%;
    }
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 90%;
    }
}

/* Mobile */
@media (max-width: 659px) {
    .image_desktop{
        display:none;
    }

    .image_mobile{
        display:block;
    }

    .close {
        top: 5%;
        right:5%;
    }
}
