// ---------------
// focused image
// ---------------
.js-focused-image:not(.js-lazy-load) {
  visibility: hidden;
}

#acms-preview-area {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: zIndex(preview-area);
}

.js-media-unit {
  position: relative;
  z-index: 1;
  min-height: 300px;
  &.done {
    min-height: 0;
  }
}

.js-drop-area {
  .acms-media-img-file {
    width: 64px;
    height: auto;
  }
}

.flatpickr-calendar.open {
  z-index: zIndex(flatpickr) !important;
}

.js-acms-expand-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  width: 32px;
  height: 32px;
  font-size: 16px;
  text-align: center;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, .2) 0 3px 6px;
	border: 1px solid rgba(0,0,0,0.1);
}

.js-acms-expand-btn .acms-icon {
  padding-right: 0;
}

.js-acms-expand {
  position: relative;
  box-sizing: border-box;
  padding: 0;
  background: #FFF;
}
.js-acms-expand-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-top: 60px;
  overflow-x: hidden;
  overflow-y: auto;
}
.js-acms-expanded {
  height: 100%;
}
.js-acms-expanded .js-acms-expand-btn {
  position: fixed;
}
.js-acms-expanding,
.js-acms-expanded {
  z-index: zIndex(js-ui-expand);
}
.smartblock-tooltip {
  z-index: zIndex(js-ui-expand) !important;
}

.js-acms-expanding,
.js-acms-expanded {
  .js-acms-expand-btn {
    top: 10px;
    right: 10px;
  }
  .js-acms-expand-inner {
    padding-top: 80px;
  }
  .js-acms-expand {
    padding: 10px;
  }
}

.js-acms-expanding .js-smartblock-edit {
  max-width: 780px;
  margin: 0 auto;
}

.cke_panel {
  z-index: zIndex(ckeditor-select) !important;
}

.ProseMirror figure.empty-node .caption {
  position: relative;
}

.ProseMirror figure.empty-node .caption:before {
  pointer-events: none;
  height: 0;
  content: "キャプションを入力してください";
  color: #aaa;
}

.lite-editor-tooltip-wrap {
  z-index: zIndex(lite-editor-bg) !important;
}

.acms-dragging {
  z-index: zIndex(acms-dragging) !important;
}

#emoji-picker .search-emojis {
  width: 100%;
  height: 85%;
  min-height: 23px;
  font-size: 13px;
  color: #555459;
  display: block;
  position: relative;
  outline: none;
  border: none;
  margin-top: 1px;
  box-shadow: none;
  background: transparent;
}
