ul#wpgallery{
    margin-left: -140px;
    margin-top: 0;
    width: 700px;

}

ul#wpgallery li{
	list-style: none;
	float:left;
 	margin-bottom: 10px;
    margin-left: 10px;
    background-color: #F4F2E7;
}

ul#wpgallery li .img_container{
	padding: 20px 28px;
}

ul#wpgallery li a img{
	border: 2px solid #DEDDDD;
}

ul#wpgallery li div.text_container{
	background-color: #E7E7E0;
	border-top: 2px solid #C7C9C3;
    font-size: 11px;
    height: 30px;
    text-align: center;
    line-height: 12px;
    padding-top: 2px;
}

ul.window-with-galleries-body{
    padding: 20px 5px 10px;
    height: 150px;
    overflow: auto;
}
.mce-menu.galleries .radio-galleries-btn{
    padding: 0 15px;
    padding: 8px 15px 0;
    margin-top: 0px;
    border-top: 1px solid #999;
}
/* .radio-galleries-btn .radio-galleries-btns input:first-child{
    margin-left: 35px;
}
.radio-galleries-btn .radio-galleries-btns input:last-child{
    margin-left: 35px;
} */
.radio-galleries-btn .radio-galleries-label{
    text-align: center;
}
.radio-galleries-btn .radio-galleries-label label{
    cursor: pointer;
}
/* .radio-galleries-btn .radio-galleries-label label:first-child{
    margin-right: 10px;
} */
.mce-menu.galleries{
    overflow: hidden;
}
.imglist {
    font-size: 0;
}

.imglist a {
    display: inline-block;
    margin: 10px 10px 0 0;
}

.imglist a:last-of-type {
    margin-right: 0;
}

.imglist a img {
    vertical-align: top;
}

i.mce-caret {
    border-top: 6px solid #555d66;
    margin-left: 2px;
    margin-right: 2px;
}
.window-with-galleries{
    display: none;
    top:100%;
    list-style: none;
    margin:0;
    left: -1px;
}
.window-with-galleries-body li:hover{
    background-color: #eeeeee;
}
.window-with-galleries-body li{
    cursor: pointer;
    padding: 5px;
}
.mce-menu.galleries{
    display: none;
}
.mce-menu.galleries {
    position: absolute;
    left: 0;
    top: 100% !important;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    background: transparent;
    z-index: 1000;
    padding: 5px 0 5px 0;
    margin: -1px 0 0;
    min-width: 180px;
    background: white;
    border: 1px solid #c5c9cf;
    border: 1px solid #e2e4e7;
    z-index: 1002;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow: auto;
    overflow-x: hidden;
}
.imglist.compact a:not(:first-child){
    display: none;
}
/*----------------------------------------------------------------------------------*/
.rl-gallery-tab-inside .rl-gallery-content {
    text-align: left;
    border: 1px dashed #aaa;
    padding: 0;
    margin: 16px 0 0 0;
    min-height: 178px;
    line-height: 0;
}
.rl-gallery-images {
    margin: 0 0 14px 14px;
    font-size: 0;
}
.rl-gallery-images .rl-gallery-image {
    display: inline-block;
    width: 150px;
    height: 150px;
    cursor: move;
    margin: 14px 14px 0 0;
    position: relative;
    box-sizing: border;
}
.rl-gallery-images .rl-gallery-image.rl-status-active .rl-gallery-inner {
    opacity: 1;
}
.rl-gallery-images .rl-gallery-image .rl-gallery-inner {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
}
.rl-gallery-images .rl-gallery-image .rl-gallery-actions {
    position: absolute;
    top: -10px;
    right: -10px;
}
.rl-gallery-images .rl-gallery-image.rl-status-inactive .rl-gallery-inner {
    opacity: 0.4;
}
.rl-gallery-images .rl-gallery-image .rl-gallery-inner img {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100%;
    width: auto;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
.rl-gallery-images .rl-gallery-image img {
    width: 150px;
    height: 150px;
}
.rl-gallery-images .rl-gallery-image .rl-gallery-actions a {
    color: #777;
    cursor: pointer;
    overflow: visible;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 16px;
    width: 14px;
    height: 14px;
    padding: 3px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-radius: 50%;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}
.rl-gallery-images .rl-gallery-image:hover .rl-gallery-actions a {
    opacity: 1;
}
.dashicons-marker:before {
    content: "\f159";
}
.dashicons-edit:before {
    content: "\f464";
}
.dashicons-no:before {
    content: "\f158";
}
@media (max-width: 515px) {
    .fancybox-caption__body {
        font-size: 30px;
    }
}

.forsidebilledercontent {
    width: 150px;
    position: relative;
}

.ui-autocomplete {
    z-index: 2000 !important;
}

.radio-galleries-btn .label_input_wp_gall {
    width: 33%;
    display: inline-block;
    text-align: center;
}

#find_shorcode_gallery {
    box-sizing: border-box;
}

/*
.img-gal a{
    position: relative !important;
    display: inline-block !important;
}

.img-gal .forsidebilledercontent a:after, .img-gal.expanded a:after{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    left: 0;
    width: 40px;
    height: 40px;
    background-image: url(./images/fotogallery.png);
    background-size: contain;
    display: block;
    background-repeat: no-repeat;
    filter: invert(1);
    -webkit-transition: -webkit-transform .8s ease-in-out;
    transition: transform .8s ease-in-out;
}

.img-gal a:hover:after {
    transform: rotate(90deg);
}

.flexslider {
    position: relative!important;
}

.flex-control-nav {
    position: absolute!important;
}
.flex-control-nav li {
   
    display: inline-block!important;
}
.flexslider ul {
    padding-left: 0px!important;
    max-height: 600px;

}
.flex-viewport {
    max-height: 600px!important;
}

.img-gal .flex-direction-nav a {
    position: absolute!important;
}

.flex-direction-nav a.flex-prev:before {
    content: '\f001';
}

.flex-direction-nav a.flex-next:before {
    content: '\f002';
}

.flex-control-nav {
    bottom: -20px;
}

.flex-caption {
    text-align: center!important;
    font-size: 14px;
    line-height: 18px;
}

.flexslider ul.slides li {
    position: relative!important;
}
.flexslider ul.slides{
    max-width: initial!important;
}

.flex-caption {
    position: absolute!important;
    width: 100%;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 15px;
    margin: 0px!important;
}

.flex-direction-nav a {
    height: 50px!important;
}


.flexslider ul.slides img{
    max-height: 600px!important;
    height: 100%!important;
    object-fit: contain!important;
}
*/

@media (max-width: 900px) {
    .rl-gallery-images .rl-gallery-image .rl-gallery-actions a { 
        opacity: 1;   
        width: 20px;
        height: 20px;  
        line-height: 20px;   
    }
}
