.simplegallery {
    margin: 0 auto;
    width: 525px;
    /* height: 380px; */
    overflow: hidden;
    text-align: center;
}
.simplegallery .gal-content img {
    /*height: auto;*/
    max-width: 100%;
}
@media (max-width: 520px) {
    .simplegallery .gal-content {
        background: #fff;
        position: relative;
        width: 100% !important;
        /*height: auto !important;*/
        overflow: hidden;
        margin: 0 auto;
        max-height: none;
    }
    .simplegallery .gal-content img {
        width: 100%;
        /* height: auto; */
        margin: 5px 0;
    }
    .simplegallery .gal-thumbnail .thumb {
        width: auto !important;
        height: auto !important;
        margin: 0 0 5px 0 !important;
    }
    .simplegallery {
        height: auto;
    }
    .searchView .col-md-12 {
        width: 100%;
        margin: 0 auto;
        padding: 0 !important;
    }
    .searchView .searchView .col-md-8 {
        padding-left: 0;
        width: 100%;
        padding-right: 0;
        margin: 0 auto;
    }
    .searchView .col-md-8 .row {
        margin-left: 0px;
        margin-right: 0px;
        width: 98%;
        margin: 0 auto !important;
    }
    .ui-widget input, button.prev-tab.btn.btn-sm.btn-primary {
        display: inline-block;
    }
    video {
        height: auto;
        margin-top: 2%;
    }
}

.simplegallery .gal-content {
    background: #fff;
    position: relative;
    width: 418px;
    /*height: 270px;*/
    overflow: hidden;
    margin: 0 auto;
}

.simplegallery .gal-content img {
    /* width: 415px;
    height: 270px; */
    border: 1px solid #9c9c9c;
}

.simplegallery .gal-thumbnail { margin-top: 5px; }

.simplegallery .gal-thumbnail .thumb {
    width: 120px;
    height: 100px;
    margin: 0 5px 5px 0;
    cursor: pointer;
    display: inline-block;
}

.simplegallery .gal-thumbnail .thumb img {
    border: 1px solid #9c9c9c;
    width: 100px;
}

.simplegallery .gal-thumbnail .last { margin: 0; }

.simplegallery .gal-thumbnail .thumb:last-child{
    margin:0px;
}

.clear { clear: both; }

#ramka {
    border-style: solid;
    border-width: 1px;
    border-color: #89764B;
    border-radius: 10px;
    text-align: center;
    padding: 0 10px;
    overflow: hidden;
}
#ramka img {
    height: auto;
    max-width: 100%;
    margin-top: 15px;
    max-height: 200px;
}
#ramka .thumbnail {
    text-align: center;
}

.buy_code_qr {
    background: #2d4be0;
}
.pricing .pricing-plan:first-child {
    background: #cec675;
}
.pricing .pricing-plan:last-child {
    background: #ce9b79;
}
.contact_form_content .col-sm-12 {
    padding-left: 0;
    padding-right: 0;
}
.searchView .row.processing_buy {
    background: #E9E3D9;
}
.searchView .col-md-8 {
    padding-left: 0;
    padding-right: 0;
}
.note-editor.note-frame {
    max-width: 401px;
}
.note-editor.note-frame .note-editing-area .note-editable {
    word-break: break-all !important;
}
video.image_4.gal-content-element {
    display: none;
}