div.alignImage {
    position: relative;
}

div.alignImage img {
    bottom: 0;
    display: block;
    height: auto;
    left: 0;
    margin: auto;
    max-height: 95%;
    max-width: 95%;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

div.kSimpleGallery {
    margin: 0 auto;
}

div.kSG_galleryContainer.alignImage:hover {
    position: relative;
    top: -5px;
    left: -5px;
}

div.kSG_galleryContainer.alignImage:not(.kSG_selected):hover {
    box-shadow: 4px 4px 4px 0px #bbbbbb);
    -webkit-box-shadow: 4px 4px 4px 0px #bbbbbb;
    -moz-box-shadow:    4px 4px 4px 0px #bbbbbb;
}

div.kSG_galleryContainer.alignImage:selected:hover {
    position: relative;
    top: -5px;
    left: -5px;
    box-shadow: 4px 4px 4px 5px #6ba7e8);
    -webkit-box-shadow: 4px 4px 4px 4px #6ba7e8;
    -moz-box-shadow:    4px 4px 4px 5px #6ba7e8;
}

div.kSG_buttonContainer a.kSG_openButton.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only {
    background: linear-gradient(to top, #515151, #b5b5b5);    
    background-position: 50% 50%;
    border: medium none;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    width: 100px;
    border: 1px solid #727272;
}

div.kSG_buttonContainer a.kSG_openButton.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.ui-state-hover {
    background-color: transparent;
    background-image: url("../../CSS/images/bg-button-taronja.png");
    background-position: 50% 50%;
    border: medium none;
    font-size: 12px;
    font-weight: bold;
    width: 100px;
    border: 1px solid #727272;
    color: #2f2f2f;
}

div.kSG_ImgContainer {
    background-color: #ffffff;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    box-shadow: 1px 2px 2px 0 rgba(204, 204, 204, 1);
    -moz-box-shadow: 1px 2px 2px 0 rgba(204, 204, 204, 1);
    -webkit-box-shadow: 1px 2px 2px 0 rgba(204, 204, 204, 1);
    cursor: pointer;
    float: left;
    margin: 10px 20px 10px 40px;
}

div.kSimpleGallery div.kSG_buttonContainer {
    padding-left: 100px;
    padding-top: 10px;
    float:left;
    clear: both;
}

a.kSG_openButton span {
    padding: 6px;
    width: 100%;
}

div.kSG_galleryContainer {
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    cursor: pointer;
    float: left;
    margin: 10px;
    position: relative;
    background-color: #ffffff;
    -webkit-box-shadow: 1px 2px 2px 0px rgba(204, 204, 204, 1);
    -moz-box-shadow:    1px 2px 2px 0px rgba(204, 204, 204, 1);
    box-shadow:  1px 2px 2px 0px rgba(204, 204, 204, 1);
}

div.kSG_selected {
    box-shadow: 4px 4px 4px 0px #6ba7e8);
    -webkit-box-shadow: 4px 4px 4px 0px #6ba7e8;
    -moz-box-shadow:    4px 4px 4px 0px #6ba7e8;
}

div.kSG_galleryImgDelete {
    background-color: #dedede;
    border: 1px solid #dedede;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    color: #989898;
    content: "x";
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    height: 15px;
    line-height: 11px;
    position: absolute;
    right: -5px;
    text-align: center;
    text-transform: lowercase;
    top: -5px;
    width: 15px;
    z-index: 1;
    -webkit-box-shadow: 2px 1px 1px 0px rgba(109, 109, 109, 0.75);
    -moz-box-shadow:    2px 1px 1px 0px rgba(109, 109, 109, 0.75);
    box-shadow:         2px 1px 1px 0px rgba(109, 109, 109, 0.75);
}
div.kSG_GalleryDialog {
    min-height: 100px !important;
}
img.kSG_galleryImgPreview {
    overflow: auto;
}