#galleries-header {
    overflow: hidden;
}

#galleries {
    position: relative;
/*    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #f5f5f5;*/
    min-height: 100px;
    max-height: 242px;
    margin: 10px 0 10px 0;
    padding: 5px;
    overflow: auto;
}

#galleries li {
    position: relative;
    display: block;
    overflow: hidden;
    float: left;
    width: 92px;
    height: 100px;
    cursor: pointer;

    margin-right: 5px;
    background: url('../templates/img/gallery_bg.png') no-repeat top left;
    text-align: center;
}

#galleries li:hover {
    /*background-color: #ddd;*/
}

#galleries li > img {
    margin: 14px 6px 6px 6px;
    width: 80px;
    height: 80px;
    display: block;
    /*background-color: white;*/
}

#galleries li .layer-delete {
    position: absolute;
    left: 0;
    top: 0;
    width: 92px;
    height: 100px;
    display: none;
    z-index: 10;
}

#galleries li:hover .layer-delete {
    display: block;
}

#galleries li .layer-delete img {
    float: right;
}

#galleries li .layer-name {
    position: absolute;
    left: 1px;
    bottom: 3px;
    width: 86px;
    padding: 2px;
    max-height: 50px;
    overflow: hidden;
    background-color: black;
    color: white;
    font-size: 10px;
    font-weight: normal;
    text-align: center;
    opacity: 0.7;
    filter: alpha(opacity = 70);
    z-index: 5;
}

#galleries .placeholder {
    border: 3px dashed black;
    width: 86px;
    height: 94px;
}



#gallery-images {
    padding: 0;
    margin: 10px 0 0 0;
}

#gallery-images li {
    position: relative;
    display: block;
    overflow: hidden;
    float: left;
    width: 100px;
    height: 100px;
    cursor: pointer;
}

#gallery-images li:hover {
    background: url('../templates/img/gallery_image_bg.png') no-repeat top left;
}

#gallery-images li > img {
    position: relative;
    left: 10px;
    top: 10px;

    width: 70px;
    height: 70px;
    display: block;
}

#gallery-images li:hover > img {
    position: relative;
    left: 1px;
    top: 1px;
    width: 88px;
    height: 88px;
    display: block;
    background-color: white;
}

#gallery-images li .layer-delete {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    display: none;
    z-index: 10;
}

#gallery-images li:hover .layer-delete {
    display: block;
}

#gallery-images li .layer-delete img {
    float: right;
}

#gallery-images li .layer-name {
    position: absolute;
    left: 10px;
    bottom: 20px;
    width: 68px;
    padding: 1px;
    max-height: 40px;
    overflow: hidden;
    background-color: black;
    color: white;
    font-size: 8px;
    font-weight: normal;
    text-align: center;
    opacity: 0.7;
    filter: alpha(opacity = 70);
    z-index: 5;
}

#gallery-images li:hover .layer-name {
    left: 1px;
    bottom: 11px;
    width: 86px;
    font-size: 10px;
}

#gallery-images .placeholder {
    border: 3px dashed black;
    width: 94px;
    height: 94px;
}




#image-uploading {
    margin: 0;
    margin-top: 5px;
    padding: 0;
    list-style-type: none
}

#image-uploading li {
    background-image: url('../templates/img/busy.gif');
    background-repeat: no-repeat;
    background-position: left center;
    padding: 2px 0 2px 20px;
}

#gallery-image-editor {
    text-align: center;
}

#gallery-image-editor img {
    max-width: 200px;
    padding: 10px;
}

