﻿.RelatedImages > div {
    display: grid;
    align-items: stretch;
    float: none;
    position: relative;
    padding: 5px;
    column-gap: 10px;
    grid-template-columns: 160px 130px 140px 165px 1fr 90px;
    vertical-align: middle;
    border-bottom: 1px solid #dadce0;
}

    .RelatedImages div.RelatedImage {
        height: 110px;
        border-left: 1px solid #dadce0;
        border-right: 1px solid #dadce0;
    }

    .RelatedImages div.RelatedImageHeader {
        border-top: 1px solid #dadce0;
    }

.RelatedImage:hover {
    background-color: #f8f8f8;
}

.RelatedImage button {
    margin: 0 2px;
}

.RelatedImage div.buttonsPosition,
.RelatedImage div.buttonMainImage,
.RelatedImage div.buttonRemove {
    display: flex;
    align-items: center;
}

.RelatedImages input.hide {
    display: none;
}

.RelatedImages .image {
    text-align: center;
    max-height: 110px;
}

.RelatedImage .image a {
    display: block;
    max-height: 110px;
}

.RelatedImage .image img {
    max-width: 100%;
    max-height: 110px;
    display: block;
}

.RelatedImage .description {
    position: relative;
}

    .RelatedImage .description div {
        height: 1.3em;
        margin-bottom: 5px;
        position: relative;
    }


        .RelatedImage .description div.editable {
            min-width: 100px;
            cursor: pointer;
            height: initial;
        }

            .RelatedImage .description div.editable::after {
                content: '';
                display: inline-block;
                width: 12px;
                padding-left: 15px;
            }


.RelatedImage:hover .description div.editable::after {
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNCAxNCI+CjxwYXRoIHN0eWxlPSJjb2xvcjojM0QzRDNEIiBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0wLDExLjFWMTRoMi45bDguNi04LjZMOC42LDIuNUwwLDExLjF6IE0xMy44LDMuMWMwLjMtMC4zLDAuMy0wLjgsMC0xLjFMMTIsMC4yYy0wLjMtMC4zLTAuOC0wLjMtMS4xLDAgIEw5LjUsMS42bDIuOSwyLjlDMTIuMyw0LjYsMTMuOCwzLjEsMTMuOCwzLjF6Ii8+Cjwvc3ZnPgo=");
    /*  height: 15px;
        display: inline-block;
        padding-right: 5px;*/
}




#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
    z-index: 10;
    display: none;
}

#editProperty {
    position: absolute;
    border: 1px solid #45930b;
    background-color: white;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 20;
    display: none;
    width: 90%;
}

    #editProperty p {
        background: #4ca20b url("/Apollo/Scripts/jquery-ui-1.11.4/images/ui-bg_highlight-soft_60_4ca20b_1x100.png") 50% 50% repeat-x;
        color: white;
        padding: 5px;
        margin: 0;
        margin-bottom: 10px;
    }


    #editProperty.visible {
        display: block;
    }


    #editProperty div.inner {
        height: initial;
        padding: 0 15px;
    }

    #editProperty input {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    #editProperty button {
        float: right;
        margin: 0 0 0 10px;
    }

.removeObjectImageConfirmationDialog img {
    float: left;
    max-height: 110px;
    margin-right:10px;
}

.removeObjectImageConfirmationDialog input.hide{
    display:none;
}