/*  "eryk_photos.css"  by  Eryk Wdowiak  */
/*  based on:  http://www.w3schools.com/howto/howto_css_modal_images.asp  */
/*  last updated:  09 July 2016   */

/*  ====================  */

img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0px auto;
    padding: 0px;

    /* style from w3schools example */
    /* border-radius: 5px; */
    cursor: pointer;
    transition: 0.3s;
}

img:hover {opacity: 0.8;}


/*  ====================  */

/* the modal (background) */
.modal {
    display: none;      /* hidden by default */
    position: fixed;    /* stay in place */
    z-index: 1;         /* sit on top */
    padding-top: 60px;  /* 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.9); /* black with opacity */
}

/* modal content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 770px;
}

/* caption of modal image (image text) - same width as the image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 770px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* add animation to zoom in the modal */
.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)}
}

/* the close button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

/* 100% image width on smaller screens */
@media only screen and (max-width: 800px){
    .modal-content {
        width: 95%;
    }
}
