
body {
    /* Make space for #footer */
    margin-bottom: 100px;
}

div {
    /*border: 1px dotted #ccc;*/
}

h2 {
    color: #666;
    font-style: italic;
    border-bottom: 1px solid #ddd;
}

h2 span {
    display: inline-block;
    margin-left: 10px;
    font-weight: normal;
    font-size: 16px;
}

a:hover {
    text-decoration: none;
}

.grey  {
    background-color: #eee;
}

.scroll {
    width: 100%;
    overflow: scroll;
    white-space:nowrap;
    overflow-y:hidden;
}

#images {
    margin-top:20px;
}
#directory-nav {
    margin-top:90px;
}
#mini-directory-nav {
    margin-top:50px;
}

.minidirectory {
    display: inline-block;
    padding: 5px;
    margin:0;
}

.minidirimage {
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 50px;
    height:50px;
    background-size: cover;
    background-position: 50% 0%; /* Left Top */
}
.minidirimage:hover {
    border: 1px solid #298cad;
}

#currentdirname{
    color: #cccccc;
    float:right;
    font-size: 2.5em;
    font-style: italic;
}

.dirimage {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-size: cover; 
    background-position: 50% 50%; /* Left Top */
    width:100%;
    height: 200px;
    overflow:hidden;
    margin-bottom: 50px;
    position: relative;
}

.dirimage h4 {
    margin: 0px;
    color: #FFF;
    background-color: rgba(100,100,100,0.5);
    padding: 6px 4px;
}

.dirimage h5 {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    margin: 0px;
    color: #FFF;
    background-color: rgba(100,100,100,0.5);
    padding: 6px 4px;
}



.greyscale {
    -webkit-filter: grayscale(75%); /* Safari 6.0 - 9.0 */
    filter: grayscale(75%);
    transition: all 0.1s ease;
}

.greyscale.selected,
.greyscale:hover {
    -webkit-filter: none;
    filter: none;
}

.minidirimage.selected:hover {
    cursor:default;
}

#images .image {
    display: inline-block;
    float:left;
    margin-bottom: 20px;
}

#images .image img {
    max-width:100%;
    height: auto;
}
#images .image img:hover {
    cursor: pointer
}




#footer {
    position:fixed;
    width: 100%;
    background-color: #DDD;
    color: #666;
    font-size: 12px;
    padding: 10px 5px;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    border-top: 4px solid #4DACCC;
}

.right {
    float:right;
}
.left {
    float: left;
}


/** 
    ---------------------------------------------
    -- MAGGSWEB LOGO ---------------------------- 
    ---------------------------------------------
    <div id="logo">
        <a href="/" title="MaggsWeb">
        <div id="logoLeft">MaggsWeb</div>
        <div id="logoRight">CMS</div> <!-- OPTIONAL -->
        </a>
    </div>
    ---------------------------------------------
    ---------------------------------------------
*/

#logo {
    position:relative;
    margin-top: 7px;
}

#logo a {
    font: 'Verdana', 'sans-serif';
    font-size: 18px;
    line-height: 32px;
    color: #FFFFFF;
    text-shadow: 0 0 1px #333;
}

#logo #logoLeft {
    position:absolute;
    top:0px;
    left:10px;
    width: 120px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding-left: 9px;
    background: rgb(130,130,130);
    background: -moz-linear-gradient(top,  rgba(130,130,130,1) 0%, rgba(57,55,49,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(130,130,130,1)), color-stop(100%,rgba(57,55,49,1)));
    background: -webkit-linear-gradient(top,  rgba(130,130,130,1) 0%,rgba(57,55,49,1) 100%);
    background: -o-linear-gradient(top,  rgba(130,130,130,1) 0%,rgba(57,55,49,1) 100%);
    background: -ms-linear-gradient(top,  rgba(130,130,130,1) 0%,rgba(57,55,49,1) 100%);
    background: linear-gradient(to bottom,  rgba(130,130,130,1) 0%,rgba(57,55,49,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#828282', endColorstr='#393731',GradientType=0 );
}

#logo #logoRight {
    position:absolute;
    top:0px;
    left: 120px;
    /*width: 70px;*/
    height: 36px;
    border: 1px solid #ccc;
    border-left: none;
    -webkit-border-radius: 0 7px 7px 0;
    border-radius: 0 7px 7px 0;
    padding: 0 6px;
    background: rgb(77,172,204);
    background: -moz-linear-gradient(top,  rgba(77,172,204,1) 0%, rgba(41,140,173,1) 62%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(77,172,204,1)), color-stop(62%,rgba(41,140,173,1)));
    background: -webkit-linear-gradient(top,  rgba(77,172,204,1) 0%,rgba(41,140,173,1) 62%);
    background: -o-linear-gradient(top,  rgba(77,172,204,1) 0%,rgba(41,140,173,1) 62%);
    background: -ms-linear-gradient(top,  rgba(77,172,204,1) 0%,rgba(41,140,173,1) 62%);
    background: linear-gradient(to bottom,  rgba(77,172,204,1) 0%,rgba(41,140,173,1) 62%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4daccc', endColorstr='#298cad',GradientType=0 );
}

/* IE 9 only */
html.ie9 .gradient {
    filter: none;
}