.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background: rgba(0,0,0,.5);
    overflow-x: hidden;
    overflow-y: auto;
}
@media (min-width: 1200px){
    .modal-dialog {
        width: 1100px;
        max-width: 1100px;
        margin: 50px auto;
    }
}
.modal-content {
    background-color: #f3f0eb;
    padding: 24px;
    position: relative;
}
.GM__img {
    max-width: 100%;
    flex: 0 0 680px;
}
.hide-popup-mosaic-img{
    display: none;
}
.gallery-i-preview.GIP > a {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 4px;
    border: 1px solid;
}
.gallery-i-preview.GIP > a:not(:hover):not(.active) {
    border-color: #c2c2c2;
}
.gallery-i-preview.GIP > a:hover {
    border-color: #498dce;
}
.gallery-i-preview.GIP > a.active {
    border-color: #2d8a52;
}
.GM__img-main {
    padding: 5px;
    border: 1px solid #c2c2c2;
}
.GM__popup-block{
    display: flex;
}
.gallery-i-text {
    padding: 0 20px;
}
#GM__title.h3{
    font-size: 26px;
    margin-bottom: 26px;
}
.mglc-info-props-bl{
    display: flex;
    margin: 10px 0;
    font-size: smaller;
}
.mglc-info-prop-value{
    padding: 0 10px;
    font-weight: 500;
}
.i-want-the-same{
    cursor: pointer;
    padding: 5px 15px;
    border: 2px solid #2d8a52;
    color: #2d8a52;
    position: relative;
    display: inline-block;
    margin-top: 15px;
}
.i-want-the-same:hover{
    background: #2d8a52;
    color: #fff;
}
.i-want-the-same:active{
    top: 1px;
}
.unselectable {
    -webkit-touch-callout: none; 
    -webkit-user-select: none;   
    -khtml-user-select: none;    
    -moz-user-select: none;      
    -ms-user-select: none;       
    user-select: none;
}
div#hidden-want-same-block {
    max-width: 410px;
}
.input-block.error{
    background: #f3c6c6
}
.input-block.error input{
    border-color: #f3c6c6
}
label.error{
    color: red;
}
#hidden-want-same-block .form-popup{
    padding: 20px;
}
@media only screen and (max-width:  767px){
    .GM__popup-block{
        flex-wrap: wrap;
    }
    .gallery-i-preview.GIP > a {
        max-width: 55px;
        margin-right: 8px;
        margin-top: 8px;
    }
    .GM__img {
        margin-bottom: 25px;
    }
    .gallery-i-text{
        padding: 0;
    }
    button.GM-close-small {
        top: 5px;
        right: 5px;
        color: #000;
        font-size: 36px;
    }
    #hidden-want-same-block{
        margin: 15vh auto;
    }
    .jQueryMosaic>.item .mosaic-img {
        box-shadow: 0 0 0px 1px #d0d0d0;
    }
}























