div.wrapphoto{
    background: none repeat scroll 0 0 #FFFFFF;
    float: right;
    margin: 12px;
    width: 167px;
    text-align: center;
    border:1px solid #e1e1e1;
    box-shadow:0 0 7px 3px #C0C0C0;
    transition: all 0.3s;
    -moz-transition: all 0.3s; /* Firefox 4 */
    -webkit-transition: all 0.3s; /* Safari and Chrome */
    -o-transition: all 0.3s; /* Opera */
    overflow: hidden;
    position: relative;
    height: 155px;
}
div.wrapphoto img{
    background: none repeat scroll 0 0 #FFFFFF;
    margin: 0;
    width: 167px;
    height: 155px;
    position: relative;
}
a#nextgallery,a#backgallery{
    float:left;
    margin:10px 10px 10px 160px;
    font-weight:bold;
    font-size:12px;
    color:#40464b;
    text-decoration:none;
    display:block;
    padding-left:40px;
    height:40px;
    line-height:40px;
    background:url("img/rotate-left.png") no-repeat scroll left 0 transparent;
}
a#backgallery{
    float:right;
    margin:10px 150px 10px 10px;
    padding-left:0;
    padding-right:40px;
    background:url("img/rotate-right.png") no-repeat scroll right 0 transparent;
}
a#backgallery:hover{
    background-position:right -40px;
    color:#681b1b;
}
a#nextgallery:hover{
    background-position:left -40px;
    color:#681b1b;
}
ul#pages{
    margin-right: 21px;
    margin-top: 20px;
}
ul#pages li{
    float:right;
}
ul#pages li {
    background-color: #e6e7e8;
    width: 25px;
    height: 23px;
    margin-right: 10px;
    text-align: center;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
}

ul#pages li.active {
    background-color: #1062ff;
}

ul#pages li.active a {
    color: #fff;
}

ul#pages li a {
    display: block;
    width: 25px;
    height: 23px;
    color: #000;
    line-height: 23px;
    text-decoration: none;
}

ul#pages li:hover {
    background-color: #1062ff;
    color: #564503; 
    transition: all .3s;
    -moz-transition: all .3s; 
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    -ms-transition: all .3s; 
}

ul#pages li:hover a {
    color: #fff;
}

div.wrapphoto .image-overlay-link {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0px;
    position: absolute;
    z-index: 40;
    display: none;
    background-color: #222;
    background: rgba(0, 0, 0, 0.7);
    background-repeat: no-repeat;
    background-position: 50%;
    cursor: pointer;
    overflow: hidden;
}

div.wrapphoto .image-overlay-link {
    background-image: url('/img/zoom.png');
}