/* Fix for mobile menu since core doesn't support more than 2 menu wide */
@media only screen and (max-width: 900px) {
  .media-router {
    width: auto;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: auto;
  }
  .media-router > a {
    float: inherit;
    display: inline-block;
  }
  .media-router .active,
  .media-router > a.active:last-child {
    margin: 0 -1px 0 0;
  }
  .media-frame-router, .media-frame:not(.hide-menu) .media-menu {
    top: 39px;
  }
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview {
  height: 100%;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .media-toolbar-secondary h2.backBtn {
  cursor: pointer;
  position: fixed;
  color: #32373c;
  display: block !important;
  visibility: visible !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.3em;
  font-weight: 600;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .media-toolbar-secondary h2.backBtn:hover {
  color: #00a0d2;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .media-toolbar-secondary h2.backBtn:before {
  font-family: 'dashicons';
  content: "\f341";
  font-weight: normal;
  position: relative;
  top: 2px;
  text-rendering: geometricPrecision;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview {
  height: -webkit-calc(90% - 54px);
  height: calc(90% - 54px);
  padding-top: 54px;
  text-align: center;
  margin: 0 auto;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview img {
  max-height: 80%;
  max-width: 100%;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview p.license-details {
  width: 50%;
  margin: 0px auto;
  padding-top: 10px;
}

@media screen and (max-width: 320px) {
  .wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview p.license-details {
    width: 80%;
  }
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview a {
  text-decoration: none;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview a:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview a.license-details {
  display: block;
  padding-top: 10px;
}

.wp-core-ui .media-frame .wpaas-stock-photos.stock-photo-preview .stock-photo-image-preview a.license-details:before {
  font-family: 'dashicons';
  font-size: 16px;
  content: "\f348";
  position: relative;
  top: 4px;
  padding-right: 3px;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachments {
  right: 0;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment-preview:before {
  opacity: 0.7;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment:focus, .wp-core-ui .media-frame .wpaas-stock-photos .attachment.selected:focus, .wp-core-ui .media-frame .wpaas-stock-photos .attachment.details:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment:hover .thumbnail, .wp-core-ui .media-frame .wpaas-stock-photos .attachment:focus .thumbnail {
  opacity: 0.4;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment:hover .import, .wp-core-ui .media-frame .wpaas-stock-photos .attachment:focus .import {
  opacity: 1;
  z-index: 9999;
  word-wrap: break-word;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment .import {
  opacity: 0;
  position: absolute;
  top: 37%;
  right: 25%;
  left: 25%;
  width: 50%;
  color: #fff;
  background: #23282d;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 26px;
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
  padding: 11px 0 8px;
  text-align: center;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: opacity 0.1s ease-in-out;
  transition: opacity 0.1s ease-in-out;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment .import:after {
  font-family: dashicons;
  content: "\f179";
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.importing .import {
  display: none;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.importing .thumbnail {
  opacity: 0.08 !important;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.importing .spinner {
  opacity: 0.8;
  position: absolute;
  top: 42%;
  right: 42%;
  left: 42%;
  visibility: visible;
  z-index: 9999;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.inactive .attachment-preview {
  cursor: wait;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.inactive .import {
  display: none;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.inactive:not(.importing) .attachment-preview:before {
  background-color: black;
}

.wp-core-ui .media-frame .wpaas-stock-photos .attachment.inactive:not(.importing) .thumbnail {
  opacity: 0.4;
}

.wp-core-ui .media-frame .wpaas-stock-photos .media-toolbar-secondary select.attachment-filters,
.wp-core-ui .media-frame .wpaas-stock-photos .media-toolbar-secondary .select2-container {
  max-width: 60%;
  width: 60%;
  float: left;
  margin-top: 11px;
}

.wp-core-ui .media-frame .wpaas-stock-photos .media-toolbar-secondary .spinner {
  float: left;
  margin-left: 10px;
}

.wp-core-ui .media-frame .wpaas-stock-photos.attachments-browser .uploader-inline {
  right: 0;
}

/**
 * Select 2
 */
.select2-container.wpaas-stock-photos {
  z-index: 560001;
}

.select2-container.wpaas-stock-photos .select2-search .select2-search__field,
.select2-container.wpaas-stock-photos .select2-selection {
  width: 100%;
  border: 1px solid #ddd;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  -webkit-transition: .05s border-color ease-in-out;
  transition: .05s border-color ease-in-out;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.select2-container.wpaas-stock-photos .select2-selection {
  -webkit-border-radius: 0;
  border-radius: 0;
}

.select2-container.wpaas-stock-photos .select2-dropdown {
  border-color: #ddd;
}

.select2-container.wpaas-stock-photos .select2-selection--single .select2-selection__rendered,
.select2-container.wpaas-stock-photos .select2-results__option {
  color: #000;
}

.select2-container.wpaas-stock-photos .select2-search .select2-search__field {
  padding: 0 8px;
  font-size: 1em;
  line-height: 2.5em;
  height: 2.5em;
}

.select2-container.wpaas-stock-photos .select2-selection,
.select2-container.wpaas-stock-photos .select2-selection .select2-selection__rendered,
.select2-container.wpaas-stock-photos .select2-selection__arrow {
  font-size: 1em;
  line-height: 2.5em;
  height: 2.5em;
}