/*! 
 * medium-editor-insert-plugin v0.3.1 - jQuery insert plugin for MediumEditor
 *
 * https://github.com/orthes/medium-editor-insert-plugin
 * 
 * Copyright (c) 2014 Pavel Linkesch (http://linkesch.sk)
 * Released under the MIT license
 */

.postInsert {
  margin: -1em 0; }
  .postInsert figure {
    margin: 0;
    display: inline-block; }
  .postInsert img {
    max-width: 100%; }
  .postInsert .postInsert-embeds {
    text-align: center;
    padding: 15px 0; }
    .postInsert .postInsert-embeds iframe {
      margin: 0px auto !important; }
    .postInsert .postInsert-embeds div {
      margin: 0px auto !important; }
  .postInsert .postInsert-images {
    margin-right: 10px;
    width: 20%; }
    .postInsert .postInsert-images img {
      margin-top: 1em;
      margin-bottom: 10px;
      vertical-align: top; }
    .postInsert .postInsert-images:first-child {
      margin-right: 0;
      width: 100%; }
      .postInsert .postInsert-images:first-child:after {
        content: "\a";
        white-space: pre; }
  .postInsert .postInsert-maps {
    padding: 10px;
    background: #ccc; }
  .postInsert table.postInsert-table {
    border-top: 2px solid #333;
    border-left: 2px solid #333;
    width: 90%;
    margin: 30px auto; }
    .postInsert table.postInsert-table td {
      border-right: 2px solid #333;
      border-bottom: 2px solid #333;
      padding: 12px; }
  .postInsert.small {
    max-width: 33.33%;
    float: left;
    margin-right: 30px;
    margin-bottom: 20px; }
  .postInsert.postInsert-first {
    margin-top: 0; }

.medium-editor-insert-plugin {
  /* Prevent the text contents of draggable elements from being selectable. */ }
  .medium-editor-insert-plugin .clearfix:before, .medium-editor-insert-plugin:before, .medium-editor-insert-plugin .clearfix:after, .medium-editor-insert-plugin:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */ }
  .medium-editor-insert-plugin .clearfix:after, .medium-editor-insert-plugin:after {
    clear: both; }
  .medium-editor-insert-plugin img {
    max-width: 100%; }
/*   .medium-editor-insert-plugin q, .medium-editor-insert-plugin blockquote, .medium-editor-insert-plugin h6 { */
/*     display: block; */
/*     margin-top: 1em; */
/*     margin-bottom: 1em; */
/*     border-right: 5px solid #efefef; */
/*     padding-left: 20px; */
/*     margin-left: -25px; } */
/* .medium-editor-insert-plugin h6{ */
/*     font-size: 1.6em; */
/*     padding-right: 15px; */
/* } */
  .medium-editor-insert-plugin [draggable] {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none; }
  .medium-editor-insert-plugin[contenteditable], .medium-editor-insert-plugin [contenteditable] {
    outline: 0px solid transparent; }
    .medium-editor-insert-plugin[contenteditable]:focus, .medium-editor-insert-plugin [contenteditable]:focus {
      outline: 0px solid transparent; }
  .medium-editor-insert-plugin * {
    -moz-box-sizing: content-box;
         box-sizing: content-box; }
  /* .medium-editor-insert-plugin p { */
  /*   margin: 1em 0; } */
  .medium-editor-insert-plugin progress {
    display: block;
    margin: 1em auto; }
  .medium-editor-insert-plugin .hide {
    display: none !important; }
  .medium-editor-insert-plugin.hover .postInsert-placeholder {
    min-height: 14px;
    border: 1px dashed #ddd;
    margin-top: -1px;
    margin-bottom: -1px; }

.medium-editor-insert-plugin.medium-editor-placeholder {
  padding-bottom: 0 !important;
  min-height: 58px; }

.medium-editor-insert-plugin.medium-editor-placeholder:after {
  content: attr(data-placeholder) !important;
  top: 1em;
  width: 100%;
  direction: rtl;
}

.postInsert {
  position: relative;
  margin-left: -40px !important;
  min-height: 18px; }
  .postInsert.small {
    max-width: calc(33.33% + 40px); }
  .postInsert .postInsert-buttonsShow {
    opacity: 0;
    -webkit-transform: scale(0);
        -ms-transform: scale(0);
            transform: scale(0);
    -webkit-transition: all 0.08s cubic-bezier(0.2, 0.3, 0.25, 0.9);
            transition: all 0.08s cubic-bezier(0.2, 0.3, 0.25, 0.9);
    display: block;
    width: 32px;
    height: 32px;
    margin-top: -5px;
    border-radius: 50%;
    border: 1px solid;
    font-size: 38px;
    line-height: 30px;
    text-align: center;
    color: rgba(0,0,0,0.44)!important;
    text-decoration: none !important;}
  .postInsert .postInsert-buttons a:hover{
      color: rgba(0,0,0,0.9)!important;
  }
    .postInsert .postInsert-buttonsShow:after {
      left: auto;
      right: 100%;
      top: 50%;
      margin-top: -4px; }
  .postInsert .postInsert-buttons {
    position: absolute;
    width: 40px;
    bottom: 0;
    right: 0;
    color: #ddd;
    font-size: 0.9em; 
    margin-right: -50px;}
    .postInsert .postInsert-buttons a {
      text-decoration: underline;
      cursor: pointer; }
      .postInsert .postInsert-buttons a.active {
          -webkit-transform: rotate(45deg);
	  -moz-transform: rotate(45deg);
	  -o-transform: rotate(45deg);
	  -ms-transform: rotate(45deg);
	  transform: rotate(45deg); }
  .postInsert ul.postInsert-buttonsOptions {
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
    position: absolute;
    z-index: 2;
    right: 40px;
    top: -5px;
    border-radius: 5px; 
  }
  .postInsert ul.postInsert-buttonsOptions li{
      border: 1px solid rgba(0,0,0,0.3);  
  }
  .postInsert ul.postInsert-buttonsOptions li:first-child{
      border-bottom: none;
  }
    .postInsert ul.postInsert-buttonsOptions button {
      min-height: 50px;
      min-width: 50px;
      height: auto;
      padding: 5px;
      border: none;
      background-color: #FFF;
      color: rgba(0,0,0,0.3);
    }
    .postInsert ul.postInsert-buttonsOptions button:hover{
	background-color: rgba(0,0,0,0.8);
	color: #FFF;
    }
      .postInsert ul.postInsert-buttonsOptions button .fa {
        font-size: 20px; }
  .postInsert .postInsert-placeholder {
    position: relative;
    margin-left: 40px;
    text-align: center; }
  .postInsert .postInsert-images .postInsert-imageIcon {
    position: absolute;
    top: 1em;
    width: 30px;
    height: 30px;
    background-color: #3b3b3b;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer; }
  .postInsert .postInsert-imageRemove {
    right: 0;
    background-image: url(../images/remove.png); }
  .postInsert .postInsert-imageResizeSmaller, .postInsert .postInsert-imageResizeBigger, .postInsert .postInsert-imageResizeBigger {
    right: 31px;
    background-image: url(../images/resize-smaller.png); }
  .postInsert .postInsert-imageResizeBigger {
    background-image: url(../images/resize-bigger.png); }
  .postInsert .postInsert-imageLink, .postInsert .postInsert-imageUnlink {
    right: 62px;
    background-image: url(../images/link.png); }
  .postInsert .postInsert-imageUnlink {
    background-image: url(../images/unlink.png); }
  .postInsert .postInsert-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 15px; }
  .postInsert .postInsert-embedsPlaceholder {
    position: relative;
    padding: 24px;
    height: 160px;
    text-align: center;
    background-color: #fff; }
  .postInsert .postInsert-embedsWire {
    position: absolute;
    right: 50%;
    text-align: center; }
  .postInsert .postInsert-imageLinkWire {
    position: absolute;
    top: -40px;
    right: auto;
    left: 0; }
  .postInsert .postInsert-embedsBox {
    position: relative;
    left: -250px; }
    .postInsert .postInsert-embedsBox input[type="text"] {
      margin: 0 auto;
      padding: 10px;
      width: 330px;
      border: solid 3px #ccc;
      font-size: 1em;
      font-family: Arial, sans-serif;
      color: #aaa; }
      .postInsert .postInsert-embedsBox input[type="text"]:focus {
        border: solid 1px #EEA34A; }
    .postInsert .postInsert-embedsBox input::-webkit-input-placeholder {
      color: #aaa; }
    .postInsert .postInsert-embedsBox button {
      border: solid 1px #2fbbfc;
      padding: 11px 30px;
      font-family: Arial, sans-serif;
      font-size: 1.2em;
      color: #fff;
      cursor: pointer;
      background-color: #2fbbfc; }
  .postInsert .postInsert-embedsImage {
    font-size: 100px;
    color: #999; }
  .postInsert.hover .postInsert-placeholder {
    background: #f0f0f0; }
  .postInsert:hover .postInsert-buttonsShow {
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
    opacity: 1; }
  .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox {
    background-color: #fff;
    border: 2px solid #333;
    display: inline-block;
    z-index: 50;
    position: relative; }
    .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox label, .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox button {
      color: #333;
      text-transform: capitalize; }
    .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox button.postInsert-tableReadyButton {
      background-color: #fff;
      border: 1px solid #333; }
    .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox input.postInsert-tableCols, .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox input.postInsert-tableRows {
      width: 50px;
      display: block;
      height: initial;
      background-color: inherit;
      border: 1px solid #333;
      color: #333;
      margin: 0 auto;
      text-align: center; }
    .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox table {
      margin: 10px; }
      .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox table td {
        text-align: center; }
      .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox table.postInsert-demoTable {
        border-top: 2px solid #333;
        border-left: 2px solid #333;
        height: 100px;
        width: 100px; }
        .postInsert .post-editor-toolbar-form-anchor.postInsert-tableDemoBox table.postInsert-demoTable td {
          border-bottom: 2px solid #333;
          border-right: 2px solid #333; }
