/**
 * Grid container
 */

#main {
    margin-top: 9em;
}

#tiles {
    list-style-type: none;
    position: relative;
    /** Needed to ensure items are laid out relative to this container **/
    margin: 0;
    padding: 0;
}

#tiles li:hover img {
    opacity: 0.8;
}


/**
 * Grid items
 */

#tiles li {
    margin: 10px 10px 10px 10px;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid #dedede;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    display: none;
    cursor: pointer;
    border-radius: 0.2em;
}

#single_big_JPG {
    padding: 16px;
    float: left;
    width: 600px;
    height: 600px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #dedede;
    background: #fff;
}

#single_big_JPG img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

#single_big_JPG:hover img {
    opacity: 0.8;
}

#single_metadata {
    padding: 16px;
    float: right;
    width: calc(100% - 690px);
    /* height: 600px; */
    display: table-cell;
    vertical-align: middle;
    border: 1px solid #dedede;
    background: #fff;
}

#single_metadata li {
    list-style-type: none;
    margin-left: 25px;
    margin-bottom: 25px;
    width: 100%;
}

#single_metadata li span {
    position: relative;
    white-space: nowrap;
    word-break: keep-all;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    vertical-align: middle;
    font-size: 0px;
    font-weight: bold;
    width: auto;
    color: rgb(255, 255, 255);
    height: 48px;
    line-height: 40px;
    background: rgb(234, 67, 53);
    border-width: 4px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
    transition: all 0.3s;
    padding: 0px 24px;
    outline: 0px !important;
}

#tiles li img {
    border-top-left-radius: 0.2em;
    border-top-right-radius: 0.2em;
}

#tiles li.inactive {
    visibility: hidden;
    opacity: 0;
}

#tiles li img {
    display: block;
    width: 100%;
}


/**
 * Grid item text
 */

footer {
    text-align: center;
}

footer a {
    color: #435DC5;
    text-decoration: none;
}


/**
 * Progress bar for imagesLoaded
 */

.progress-bar {
    background-color: #0BC20B;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 0;
    box-shadow: 0 1px 3px rgba(11, 194, 11, 0.2);
    -webkit-transition: width 0.3s ease-out;
    -moz-transition: width 0.3s ease-out;
    -o-transition: width 0.3s ease-out;
    transition: width 0.3s ease-out;
}


/**
 * Placerholder css
 */

.wookmark-placeholder {
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    background-color: #eee;
    border: 1px solid #dedede;
    z-index: -1;
}

.example-tiles {
    position: relative;
    /** Needed to ensure items are laid out relative to this container **/
    margin: 0;
    padding: 0;
}

.example-tiles li {
    display: block;
    list-style-type: none;
    float: left;
    margin: 5px;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.example-tiles a,
.example-tiles a:hover {
    color: #555;
    background-color: #eee;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    width: 200px;
    height: 200px;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    padding: 5px 8px;
    border-radius: 3px;
}

.example-tiles a:hover {
    background-color: #ddd;
}


/*--media Quries for 640px-monitors-*/

@media only screen and (max-width:640px) and (min-width:480px) {
    #main {
        margin-top: 7em;
    }
}


/*--media Quries for 480px-monitors-*/

@media only screen and (max-width:480px) and (min-width:320px) {
    #main {
        margin-top: 9.5em;
    }
}


/*--media Quries for 320px-monitors-*/

@media only screen and (max-width:320px) and (min-width:240px) {
    #main {
        margin-top: 9em;
    }
    #tiles li {
        width: 266px;
    }
}