#set-post-thumbnail {
  margin-right: auto;
  margin-left: auto;
}

.media-uploader {
  display: inline-block;
  position: relative;
  min-height: 20px;
  min-width: 280px;

  &.nb-loading:before {
    content: '';
    background: url(../images/spinner.gif) no-repeat center center;
    background-color: #ffffff;
    opacity: .7;
    filter: alpha(opacity=70);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9;
  }
  .howto {
    color: #bbc8d4;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
  }

  .add_image {
    position: relative;
    display: block;
    max-width: 280px;
    background: #eee;

    .howto {
      color: #bbc8d4;
      font-style: italic;
      line-height: 1.5;
      background: #333;
      padding: 5px;
      font-size: 12px;
      display: block;
    }
    &:hover {
      text-decoration: none;
    }
  }
  .image_preview {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .thumbnail-placeholder {
    border: 3px dashed #ddd;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: block;
    text-align: center;
    color: #999;
    padding: 50px 10px;
    &:before{
      font-family: Dashicons;
      speak: none;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      -webkit-font-smoothing: antialiased;
      margin: 0 0 10px;
      text-indent: 0;
      text-align: center;
      content: "\f128";
      font-size: 50px;
      line-height: normal;
      display: block;
    }
  }
}

#gallery_images_container {
  padding: 0;

  ul{
    margin: 0 -5px 10px;
    padding: 0;
    list-style: none;

    &:after, &:before{
      content:' ';
      display:table;
    }
    &:after{
      clear:both;
    }
    li {
      &.add, &.image, &.sortable-placeholder{
        width: 80px;
        height: 80px;
        float: left;
        cursor: move;
        border: 1px solid #d5d5d5;
        margin: 10px 5px 0;
        background: #f7f7f7;
        border-radius: 2px;
        position: relative;
        box-sizing: border-box;

        img{
          width:100%;
          height:auto;
          display:block;
        }

        &.sortable-placeholder{
          border: 3px dashed #ddd;
          position: relative;
          &:after{
            font-family: Dashicons;
            speak: none;
            font-weight: 400;
            font-variant: normal;
            text-transform: none;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            margin: 0;
            text-indent: 0;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            text-align: center;
            content: "\f128";
            font-size: 2.618em;
            line-height: 72px;
            color: #ddd;
          }
        }
      }

      ul.actions{
        position: absolute;
        top: -8px;
        right: -8px;
        padding: 2px;
        display: none;

        li{
          float:right;
          margin:0 0 0 2px;

          a{
            width: 1em;
            height: 1em;
            margin: 0;
            height: 0;
            display: block;
            overflow: hidden;

            &.tips{
              cursor: pointer;
            }
            &.delete{
              display: block;
              text-indent: -9999px;
              position: relative;
              height: 1em;
              width: 1em;
              font-size: 1.4em;
            }

            &.delete {
              &:before{
                font-family: Dashicons;
                speak: none;
                font-weight: 400;
                font-variant: normal;
                text-transform: none;
                line-height: 1;
                -webkit-font-smoothing: antialiased;
                margin: 0;
                text-indent: 0;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                text-align: center;
                content: "\f153";
                color: #999;
                background: #fff;
                border-radius: 50%;
                height: 1em;
                width: 1em;
                line-height: 1em;
              }
              &:hover::before{
                color: #a00;
              }
            }
          }
        }
      }
      &:hover ul.actions{
        display: block;
      }
    }
  }
}