.picture_element {
  display: inline-block;
  position: relative;
  padding: 5px;
  vertical-align: middle;
  text-align: center;
  background-color: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9em;
  overflow: visible;
  box-sizing: content-box;
}
@media screen and (min-width: 1025px) {
  .picture_element {
    margin-right: 32px;
    margin-bottom: 32px;
    width: 128px;
    max-height: 200px;
  }
  .picture_element img {
    max-width: 128px;
    max-height: 128px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_element {
    margin-right: 22.5px;
    margin-bottom: 22.5px;
    width: 90px;
    max-height: 150px;
  }
  .picture_element img {
    max-width: 90px;
    max-height: 90px;
  }
}
.picture_element:hover {
  background-color: #fefefe;
  color: #000;
  border: 1px solid #0d47a1;
}
@media screen and (min-width: 1025px) {
  .picture_element .picture_draggable {
    visibility: hidden;
  }
}
.picture_element:hover .picture_draggable {
  visibility: visible;
}
@media screen and (min-width: 1025px) {
  .picture_element .picture_delete {
    visibility: hidden;
  }
}
.picture_element:hover .picture_delete {
  visibility: visible;
}
.picture_picture {
  display: inline-block;
  position: relative;
  padding: 5px;
  vertical-align: middle;
  text-align: center;
  background-color: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9em;
  overflow: visible;
  box-sizing: content-box;
}
@media screen and (min-width: 1025px) {
  .picture_picture {
    margin-right: 32px;
    margin-bottom: 32px;
    width: 128px;
    max-height: 200px;
  }
  .picture_picture img {
    max-width: 128px;
    max-height: 128px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_picture {
    margin-right: 22.5px;
    margin-bottom: 22.5px;
    width: 90px;
    max-height: 150px;
  }
  .picture_picture img {
    max-width: 90px;
    max-height: 90px;
  }
}
.picture_picture:hover {
  background-color: #fefefe;
  color: #000;
  border: 1px solid #0d47a1;
}
@media screen and (min-width: 1025px) {
  .picture_picture .picture_draggable {
    visibility: hidden;
  }
}
.picture_picture:hover .picture_draggable {
  visibility: visible;
}
@media screen and (min-width: 1025px) {
  .picture_picture .picture_delete {
    visibility: hidden;
  }
}
.picture_picture:hover .picture_delete {
  visibility: visible;
}
.picture_selected {
  border: 1px solid #0d47a1;
  background-color: #2196f3;
  color: #fff;
}
.picture_selected:hover {
  border: 1px solid #0d47a1;
  background-color: #2196f3;
  color: #fff;
}
.picture_draggable {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ffffff;
  border: 1px solid #0d47a1;
  border-radius: 2px;
}
@media screen and (min-width: 1025px) {
  .picture_draggable {
    cursor: move;
    right: -5px;
    top: -5px;
    padding: 5px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_draggable {
    cursor: move;
    right: -5px;
    top: -5px;
    padding: 5px;
  }
}
.picture_draggable_cursor {
  background-color: #ffffff;
}
@media screen and (min-width: 1025px) {
  .picture_draggable_cursor {
    height: 25px;
    width: 25px;
  }
  .picture_draggable_cursor .material-icons {
    font-size: 25px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_draggable_cursor {
    height: 25px;
    width: 25px;
  }
  .picture_draggable_cursor .material-icons {
    font-size: 25px;
  }
}
.picture_draggable_cursor .material-icons {
  color: #23282d;
}
.picture_content {
  overflow: hidden;
}
.picture_content img {
  background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
@media screen and (min-width: 1025px) {
  .picture_content {
    width: 128px;
    max-height: 200px;
  }
  .picture_content img {
    max-width: 128px;
    max-height: 128px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_content {
    width: 90px;
    max-height: 150px;
  }
  .picture_content img {
    max-width: 90px;
    max-height: 90px;
  }
}
/* Material Icon for Tiny MCE Editor */
i.mce-i-collection:before {
  content: "collections";
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  font-size: 1.3em;
  padding-right: 0.5em;
  position: absolute;
  top: 20%;
  left: 4px;
}
.galleries_gallery {
  margin-bottom: 10px;
  border: 1px solid #23282d;
}
.galleries_gallery .galleries_gallery_title {
  position: relative;
}
.galleries_gallery .galleries_gallery_title .galleries_gallery_title_text {
  margin-right: 20px;
  font-size: 1.3em;
}
.galleries_gallery .galleries_gallery_title .galleries_actions > i {
  cursor: pointer;
}
.galleries_gallery .galleries_gallery_preview {
  padding: 10px;
}
.galleries_gallery .galleries_gallery_preview .galleries_gallery_preview_counter {
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  padding: 5px;
  border: 1px solid #23282d;
}
@media screen and (min-width: 1025px) {
  .galleries_gallery .galleries_gallery_preview {
    min-height: 80px;
    line-height: 80px;
  }
  .galleries_gallery .galleries_gallery_preview img {
    max-width: 100px;
    max-height: 80px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
  }
  .galleries_gallery .galleries_gallery_preview .galleries_gallery_preview_counter {
    min-width: 80px;
    height: 80px;
    line-height: 68px;
    font-size: 17px;
  }
}
@media screen and (max-width: 1024px) {
  .galleries_gallery .galleries_gallery_preview {
    min-height: 50px;
    line-height: 50px;
  }
  .galleries_gallery .galleries_gallery_preview img {
    max-width: 70px;
    max-height: 50px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
  }
  .galleries_gallery .galleries_gallery_preview .galleries_gallery_preview_counter {
    width: 50px;
    height: 50px;
    line-height: 38px;
    font-size: 12px;
  }
}
/*
.galleries_action {
    position: absolute;
    width: @dim_gallery_control_size;
    height: @dim_gallery_control_size;
    background-color: @cl_contrast_font;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    -webkit-mask-size: @dim_gallery_control_mask;
    mask-size: @dim_gallery_control_mask;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-mode: luminance;    

    cursor: pointer;
    top: 10px;
}

.galleries_action_delete {   
    .galleries_action;
    right: 10px;
    mask: url('@{img}action/trash.svg#fullmask');
    -webkit-mask-image: url('@{img}action/trash.svg');    
}

.galleries_action_edit {    
    .galleries_action;
    right: (1.7 * @dim_gallery_control_size);
    mask: url('@{img}action/edit.svg#fullmask');
    -webkit-mask-image: url('@{img}action/edit.svg');

}*/
.galleries_manage_picture {
  display: inline-block;
  position: relative;
  padding: 5px;
  vertical-align: middle;
  text-align: center;
  background-color: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9em;
  overflow: visible;
  box-sizing: content-box;
  cursor: move;
}
@media screen and (min-width: 1025px) {
  .galleries_manage_picture {
    margin-right: 32px;
    margin-bottom: 32px;
    width: 128px;
    max-height: 200px;
  }
  .galleries_manage_picture img {
    max-width: 128px;
    max-height: 128px;
  }
}
@media screen and (max-width: 1024px) {
  .galleries_manage_picture {
    margin-right: 22.5px;
    margin-bottom: 22.5px;
    width: 90px;
    max-height: 150px;
  }
  .galleries_manage_picture img {
    max-width: 90px;
    max-height: 90px;
  }
}
.galleries_manage_picture:hover {
  background-color: #fefefe;
  color: #000;
  border: 1px solid #0d47a1;
}
@media screen and (min-width: 1025px) {
  .galleries_manage_picture .picture_draggable {
    visibility: hidden;
  }
}
.galleries_manage_picture:hover .picture_draggable {
  visibility: visible;
}
@media screen and (min-width: 1025px) {
  .galleries_manage_picture .picture_delete {
    visibility: hidden;
  }
}
.galleries_manage_picture:hover .picture_delete {
  visibility: visible;
}
.picture_delete {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ffffff;
  border: 1px solid #0d47a1;
  border-radius: 2px;
}
@media screen and (min-width: 1025px) {
  .picture_delete {
    cursor: move;
    right: -5px;
    top: -5px;
    padding: 5px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_delete {
    cursor: move;
    right: -5px;
    top: -5px;
    padding: 5px;
  }
}
.picture_delete_cursor {
  background-color: #000000;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-repeat: no-repeat;
  mask-position: center center;
  mask-mode: luminance;
  mask: url('../../../../templates/main/img/action/trash.svg#fullmask');
  -webkit-mask-image: url('../../../../templates/main/img/action/trash.svg');
}
@media screen and (min-width: 1025px) {
  .picture_delete_cursor {
    -webkit-mask-size: 25px;
    mask-size: 25px;
    height: 25px;
    width: 25px;
  }
}
@media screen and (max-width: 1024px) {
  .picture_delete_cursor {
    -webkit-mask-size: 25px;
    mask-size: 25px;
    height: 25px;
    width: 25px;
  }
}
.galleries_manage_picture_zoom {
  width: 256px !important;
  max-height: 400px !important;
}
.galleries_manage_picture_zoom .picture_content {
  width: 256px;
  max-height: 400px;
}
.galleries_manage_picture_zoom .picture_content img {
  max-width: 256px;
  max-height: 256px;
}
