#img {
    position: relative;
    width: 500px;
    height: 400px;
    margin-bottom: 1em;
}

.galleria_wrapper {
	text-align: center;
	margin: auto 0;
}
#img img {
	height: 400px;
	width: 500px;
}
#gallery { height: 84px; }

#img, #gallery li {
    border: 1px solid #223106;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

#gallery li {
    float: left;
    padding: 1px;
    background: transparent url(../images/loading-small.gif) 50% 50% no-repeat;
    border-color: #345;
    cursor: pointer;
}

.caption {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 96%;
    height: 75px;
    padding: 1% 2%;
    line-height: 110%;
    color: #fff;
    background-color: #000;
    opacity: .7;
}