/* Album overview grid */
.albumListItem {
    float: left;
    width: 190px;
    text-align: center;
    margin: 0 10px 20px 0;
}

.albumListItem img {
    border: solid 1px #fcf0b0;
    display: block;
    margin: 0 auto;
}

.albumListItem img:hover {
    border: solid 1px #f34000;
}

p.galleryDetails {
    font-size: 0.9em;
    margin-top: 5px;
}

p.galleryDetails a {
    text-decoration: none;
    color: #333;
}

/* Album image grid */
ul.gallery-layout {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.gallery-layout li {
    float: left;
    padding: 5px;
    list-style: none;
    width: 140px;
    height: 160px;
    text-align: center;
    font-size: 0.85em;
}

.gallery-layout img {
    border: solid 1px #fcf0b0;
}

.gallery-layout img:hover {
    border: solid 1px #f34000;
}

#gallery-list li {
    list-style-type: none;
    margin: 0;
}

/* Clearfix */
.gallery-layout:after,
#Content:after {
    content: '';
    display: block;
    clear: both;
}

/* Album sidebar box (NavigationBox alternative for gallery pages) */
#AlbumBox {
    float: right;
    width: 220px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#AlbumBox li {
    list-style: none;
    margin-bottom: 10px;
    text-align: center;
}

#AlbumBox li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
}

#AlbumBox li a:hover {
    text-decoration: underline;
}

#AlbumBox li img {
    display: block;
    margin: 0 auto;
    border: solid 1px #fcf0b0;
}

#AlbumBox li img:hover {
    border: solid 1px #f34000;
}

#AlbumBox li p {
    margin: 3px 0 0 0;
}

/* Pagination (matching original style) */
#pagination-imagegallery {
    border: 0;
    padding: 30px 0 20px 0;
    clear: left;
}

#pagination-imagegallery li {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
    list-style: none;
    margin-right: 2px;
    display: inline;
}

#pagination-imagegallery a {
    border: solid 1px #9aafe5;
    margin-right: 2px;
}

#pagination-imagegallery .previous-off,
#pagination-imagegallery .next-off {
    border: solid 1px #dedede;
    color: #888;
    display: block;
    float: left;
    font-weight: bold;
    margin-right: 2px;
    padding: 3px 6px;
}

#pagination-imagegallery .next a,
#pagination-imagegallery .previous a {
    font-weight: bold;
}

#pagination-imagegallery .active {
    background: #2e6ab1;
    color: #fff;
    font-weight: bold;
    display: block;
    float: left;
    padding: 3px 6px;
}

#pagination-imagegallery a:link,
#pagination-imagegallery a:visited {
    color: #0e509e;
    display: block;
    float: left;
    padding: 3px 6px;
    text-decoration: none;
}

#pagination-imagegallery a:hover {
    border: solid 1px #0e509e;
}
