div.gallery-container {
    border: 1px solid #ddd;
    position: relative;
    margin: 15px;    
    padding: 15px;
    text-align: center;
    background: #fbfbfb;
}

ul.gallery-image-list {
    display: inline-block;
    /*border: 1px solid #ddd;*/
    padding: 15px 9px 3px;
}

ul.gallery-image-list li {
    position: relative;
    display: inline-block;
    margin: 1px 8px 15px!important;
    border: 1px solid #999;
}

ul.gallery-image-list li:hover {
    border: 2px solid #444;
    margin: 0 7px 14px!important;
}

ul.gallery-image-list li.selected {
    border: 2px solid #EC5A93;
    margin: 0 7px 14px!important;
}

.gallery-image-container {
    width: 850px;
    display: table-cell;
    height: 485px;
    position: relative;
    text-align: center;
    vertical-align: middle;
}

.gallery-caption {
    margin: 12px 15px 18px;
    text-align: center;
    line-height: 1.5em;
    font-size: 1.2em;
}

a.new-gallery-image-btn,
a.edit-gallery-image-btn,
a.delete-gallery-image-btn,
a.move-gallery-image-btn {
    display: none;
    position: absolute;
    width: 18px;
    height: 0px;
    margin: 0px;
    padding: 18px 0px 0px 0px;
    top: 5px;
    background: url(../images/gallery-icons.png) no-repeat;
    overflow: hidden;
    text-indent: 1000em;
}

a.create-gallery {
    display: block;
    width: 165px;
    height: 0;
    padding-top: 25px;
    background: url(../images/create-gallery.png) top right no-repeat;
    text-indent: 1000em;
    color: #fff;
    margin: 15px;
    overflow: hidden;
}

a.create-gallery:hover {
    background-position: top left;
}

.galleries-table, .edit_gallery {
    margin-left: 15px;
}

table.galleries-table th {
    background: url(../images/h1-bg.jpg) top left repeat-x;
    margin: 1px;
    border: 1px solid #FFF;
    text-transform: uppercase;
    color: #FFF;
    font-size: 1.2em;
    padding: 8px 14px;
    font-family: "ITC Avant Garde Gothic", "Century Gothic", "Lucida Sans Unicode", "Lucida Grande", Verdana, sans-serif;
}

table.galleries-table td {
    background: #ffe4ef;
    margin: 1px;
    border: 1px solid #FFF;
    color: #333;
    padding: 8px 14px;
    font-family: "ITC Avant Garde Gothic", "Century Gothic", "Lucida Sans Unicode", "Lucida Grande", Verdana, sans-serif;
    font-size: 1.2em;
}

#new_gallery {
    margin-left: 15px;
}

#new_gallery input#gallery_name {
    width: 200px;
    margin-bottom: 4px;
    padding: 3px 5px;
    font-size: 1.1em;
    border: 1px solid #666;
    background: #EFEFEF;
    color: #555;
}

#new_gallery input#gallery_name:hover {
    border: 1px solid #ec5a93;
}

#new_gallery input#gallery_name:focus {
    border: 1px solid #666;
    background: #FFF;
    color: #222;
}

.input-text-disabled {
    width: 200px;
    margin-bottom: 12px;
    padding: 3px 5px;
    font-size: 1.1em;
    border: 1px solid #ddd;
    background: #EFEFEF;
    color: #555;
}

#gallery_submit {
    width: 103px;
    height: 0;
    background: url(../images/save-btn.png) top right no-repeat;
    padding-top: 27px;
    display: block;
    overflow: hidden;
    border: none;
    float: left;
    cursor: pointer;
    cursor: hand;
    margin-top: 3px;
    color: #666;
    font-size: 0px;
}

#gallery_submit:hover {
    background-position: top left;
    color: #ec5a93;
}
    
a.new-gallery-image-btn {
    display: inline;
    right: 5px;
    background-position: -103px;
}

#new_gallery a, .edit_gallery a {
    float: left;
    margin: 10px;
}

a.edit-gallery-image-btn {
    right: 38px;
    background-position: 0px;
}

a.delete-gallery-image-btn {
    right: 21px;
    background-position: -35px;
}

a.move-gallery-image-btn {
    right: 4px;
    background-position: -69px;
    cursor: crosshair;
}

a.new-gallery-image-btn:hover {
    background-position: -120px;
}

a.edit-gallery-image-btn:hover {
    background-position: -18px;
}

a.delete-gallery-image-btn:hover {
    background-position: -52px;
}

a.move-gallery-image-btn:hover {
    background-position: -86px;
}

ul.gallery-image-list li:hover a.edit-gallery-image-btn,
ul.gallery-image-list li:hover a.delete-gallery-image-btn,
ul.gallery-image-list li:hover a.move-gallery-image-btn {
    display: inline;
}

a.gallery-image-link {
    display: block;
}

.ui-dialog-titlebar {
    background: url(../images/dd-hover-bg.jpg) top left repeat-x;
    text-transform: uppercase;
}

#new_gallery_image label {
    font-size: 1em;
}

input#gallery_image_image {
    margin-bottom: 4px;
    padding: 3px 5px;
    font-size: 1.1em;
    border: 1px solid #666;
    background: #EFEFEF;
    color: #555;
}

.ui-dialog {
    background: #333;
}

input#gallery_image_image:hover {
    border: 1px solid #ec5a93;
}

.ui-dialog-buttonpane {
    -moz-border-radius: 4px; /* FF1+ */
    -webkit-border-radius: 4px; /* Saf3+, Chrome */
    border-radius: 4px; /* Opera 10.5, IE 9 */
    margin: 0 10px 10px!important;
}

.ui-button {
    background: url(../images/btn-bg.png) top left repeat-x #bbb!important;
    text-transform: uppercase;
    height: 24px;
    border: 1px solid #fff;
    color: #fff!important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    -moz-border-radius: 4px; /* FF1+ */
    -webkit-border-radius: 4px; /* Saf3+, Chrome */
    border-radius: 4px; /* Opera 10.5, IE 9 */
}

.ui-button:hover {
    background-position: bottom!important;
}

.ui-button-text {
    padding-top: 2px!important;
}

input#gallery_image_image:focus {
    border: 1px solid #666;
    background: #FFF;
    color: #222;
}

#new_gallery_image .errorExplanation, .new_gallery .errorExplanation {
    padding: 6px;
    -moz-border-radius: 4px; /* FF1+ */
    -webkit-border-radius: 4px; /* Saf3+, Chrome */
    border-radius: 4px; /* Opera 10.5, IE 9 */
    border: 1px solid #aaa;
    background: #FFF;
}

.new_gallery .errorExplanation {
    border: none;
    margin-bottom: 0!important;
}

#new_gallery_image .errorExplanation p, .new_gallery .errorExplanation p {
    background: url("../images/error-icon.gif") no-repeat left top;
    display: block;
    font-size: 1.2em;
    margin: 0;
    color: #999;
    padding: 5px 0 3px 32px;
    margin: 6px 10px 10px!important;
}

#new_gallery_image .errorExplanation h2, .new_gallery .errorExplanation h2 {
    color: #EC5A93;
    margin: 6px 10px 10px!important;
}

#new_gallery_image .errorExplanation ul, .new_gallery .errorExplanation ul {
    margin: 15px 10px 10px!important;
}

.new_gallery .errorExplanation p, .new_gallery .errorExplanation h2, .new_gallery .errorExplanation ul {
    margin-left: 0px!important;
}

.formError {
    text-transform: uppercase;
    color: #fff;
    -moz-border-radius: 4px; /* FF1+ */
    -webkit-border-radius: 4px; /* Saf3+, Chrome */
    border-radius: 4px; /* Opera 10.5, IE 9 */
    padding: 6px 8px 4px 20px;
    margin: 6px 0 10px;
    display: inline-block;
    background: url(../images/up-arrow.png) 6px center no-repeat #f05f89;
}

.edit_gallery label {
    color: #EC5A93!important;
    margin: 15px 0 8px!important;
}

img.gallery-image {
    display: inline;
    border: 1px solid #999;
    background: url(../images/not-available.jpg) 1px 1px no-repeat;
    padding: 1px;
    font-size: 0.5em;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    color: #aeaeae;
}

img.gallery-image-thumbnail {
    
}

div.gallery-caption {
    min-height: 36px;
}



ul.gallery-image-list li div.gallery-caption {
    display: none;
}
