#magazine {
    width: 800px;
    height: 600px;
    margin: 0 auto;
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {
    opacity: 0.7;
}

.mag_model {
    display: none;
    position: fixed;
    padding-top: 100px;
    left: 0;
    bottom:0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000a1;
}

.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from { -webkit-transform: scale(0); }
    to { -webkit-transform: scale(1); }
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.close {
    position: absolute;
    right: 45px;
    top: 15px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    margin-top: 0px;
    transition: 0.3s;
}

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

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
