/* ==========================================================================
 Document Preview
========================================================================== */

#display, .mfp-counter {
  font-size: 17px !important;
  padding: 2px 0px 0px 2px;
}

div.resourcePopup.pdf .image{
  display: none !important;
}

div.resourcePopup.image img {
  max-height: 751px;
}

div.resourcePopup.image img.zoom {
  max-width: 100% !important;
  height: auto;
}

div.resourcePopup.image .pdf{
  display: none !important;
}

div.resourcePopup.image pdf{
  display: none !important;
}

div.pdfnav {
  display: flex;
	justify-content: flex-start !important;
  align-items: flex-end;
}

div.pdfnav .pdfnavitem {
  margin: 0 5px 0 5px;
}

div.preview-panel {
  display: flex;
	justify-content: center;
}

.mfp-inline-holder .mfp-content{
  width: auto !important;
}

div.float-previewtools {
  display: flex;
  flex-flow: column;
	justify-content: flex-start;
  z-index: 999999;
  padding-top: 50px;
}

div.float-previewtools > * {
  padding: 0 20px 10px 0;
}


div.previewtitle {
  padding: 15px 0 7px;
  font-style: italic;
  color: #fff;
  text-align: center;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* Magnific Popup CSS */

.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8; }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
/*.mfp-arrow,*/
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left:-webkit-calc(50% - 24px);
  left:-moz-calc(50% - 24px);
  left:calc(50% - 24px);
  margin-top: -0.8em;
  z-index: 1044;
}

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close /*,
button.mfp-arrow */
{
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation; }

button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder,
.mfp-iframe-holder {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.resourcePopup:not(.pdf) .pdfonly {
    display: none;
}

.resourcePopup:not(.image) .imgonly {
    display: none;
}

.resourcePopup.video .mfp-bottom-bar {
    visibility: hidden;
}

/* Disables the selection */
.disableselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge*/
   user-select: none;          /* Non-prefixed version, currently
                                  not supported by any browser */
}

/* Disables the drag event
(mostly used for images) */
.grab {
   -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
   user-drag: none;
   cursor: grab;
}

.grabbing {
  cursor: grabbing !important;
}

.mfp-arrow {
  position: absolute;
  height: 40px;
  width: 40px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  border: 0;
  background: rgba(0,0,0,0.75);
  -moz-transition: background .2s,opacity .34s,transform .34s cubic-bezier(0.4,0.0,0.2,1);
  transition: background .2s,opacity .34s,transform .34s cubic-bezier(0.4,0.0,0.2,1);
  opacity: 1;
  top: 50%;
  z-index: 2000;
}

.mfp-arrow:hover {
  background-color: #08C;
}

.mfp-arrow-left {
  left: 12px;
}
.mfp-arrow-right {
  right: 12px;
}
.mfp-arrow:before {
	font-family: FontAwesome;
  content: "\f104";
  font-size: 20px;
  color: #fff;
  position: relative;
}
.mfp-arrow-right:before {
  content: "\f105";
  left: 1px;
}

.mfp-bottom-bar {
  position: fixed;
  left: 50%;
  margin-right: -50%;
  -moz-transform: translate(-50%);
  transform: translate(-50%);
  -moz-border-radius: 3px;
  border-radius: 3px;
  bottom: 12px;
  z-index: 3;
  overflow: hidden;
}

.mfp-title {
  background: rgba(0,0,0,0.75);
  display: inline-block;
  padding: 2px;
  vertical-align: middle;
}
/**
Transition from opaque header background to trasparent
**/

.sticky.bar.fixed.docpreview {
  background: linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,transparent 100%) !important;
  box-shadow: none;
}
.sticky.bar.fixed.docpreview .flush-right {
  background: transparent;
}
.sticky.bar.fixed.docpreview .action-button,
.sticky.bar.fixed.docpreview .action-button::before {
  background: rgba(0,0,0,0.50) !important;
  background-color: rgba(0,0,0,0.50) !important;
}
.sticky.bar.fixed.docpreview .action-button {
  background: rgba(0,0,0,0.50) !important;
}

.sticky.bar.fixed.docpreview .action-button:hover {
  border: .5px solid #08C;
  background: #08C !important;
}

.sticky.bar .flush-left h2 *:not(:first-child){
    display: none;
    color: #ffffff;
    font-weight: 300;
    font-family: 'Open Sans' !important;
    font-size: 96%;
    line-height: 33px;
}

.sticky.bar h2{
  display: flex;
  align-items: flex-start;
  flex-direction: row;
}

.sticky.bar.fixed.docpreview .flush-left h2 *{
    display: initial;
}

span.breadcrumb {
  margin: 0 10px 0 10px;
}

.sticky.bar h2 a{
  transition: color 0.5s ease, text-decoration 0.2s ease;
}

.sticky.bar h2 a:hover{
  color: #08C !important;
  text-decoration: underline !important;
}

#doctitle {
  max-width: calc(100% - 180px);
}

.action-button.docpreview-menu,
.sticky.bar.fixed.docpreview .action-button:not(.docpreview-menu) {
    display: none;
}
.sticky.bar.fixed.docpreview .action-button.docpreview-menu  {
  display: inline-block;
}

.mfp-close {
  display: none;
}

.mfp-action-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 13px;
  color: #fff;
  line-height: 44px;
  height: 44px;
  vertical-align: middle;
  background: rgba(0,0,0,0.75);
}
.mfp-action-group:not(:last-child){
  border-right: 1px solid rgba(255,255,255,0.2);
}

.mfp-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width:auto;
  flex-grow: 1;
}
.mfp-pagecounter {
  width: 40px;
  text-align: center;
}

.mfp-action:first-child {
  margin-left: 12px;
}

.mfp-next, .mfp-zoom-lvlout, .mfp-rotate-right {
  margin-right: 12px;
}

.mfp-filenav {
  padding: 8px 11px 8px 11px;
  cursor: pointer;
}

.mfp-filenav::before {
  font-family: FontAwesome;
  font-size: 24px;
  color: #fff;
  position: relative;
}
.mfp-filenav.mfp-disabled, .mfp-filenav.mfp-disabled::before {
  color: #666;
  cursor: default;
}

.mfp-previous::before {
  content: "\f106";
  top: -9px;
}

.mfp-next::before {
  content: "\f107";
  top: -7px;
}

.mfp-zoom-lvlin::before {
  content: "\f067";
  font-size: 12px;
  top: -7px;
}

.mfp-zoom-lvlout::before {
  content: "\f068";
  font-size: 12px;
  top: -7px;
}

.mfp-file::before {
  content: "\f15c";
  top: -9px;
}

.mfp-zoomin::before {
  content: "\f00e";
  top: -9px;
}

.mfp-zoomout::before {
  content: "\f010";
  top: -9px;
}

.mfp-rotate-left::before {
  content: "\f0e2";
  font-size: 14px;
  top: -7px;
}

.mfp-reset::before {
  content: "\f03e";
  top: -9px;
}

.mfp-rotate-right::before {
  content: "\f01e";
  font-size: 14px;
  top: -7px;
}
/* .rotate90 {
  -webkit-transform-origin: left top;
  transform: rotate(90deg) translateY(-100%);
  -webkit-transform: rotate(90deg) translateY(-100%);
  -ms-transform: rotate(90deg) translateY(-100%);
}
.rotate180 {
  -webkit-transform-origin: left top;
  transform: rotate(180deg) translate(-100%, -100%);
  -webkit-transform: rotate(180deg) translate(-100%, -100%);
  -ms-transform: rotate(180deg) translateX(-100%, -100%);
}
.rotate270 {
  -webkit-transform-origin: left top;
  transform: rotate(270deg) translateX(-100%);
  -webkit-transform: rotate(270deg) translateX(-100%);
  -ms-transform: rotate(270deg) translateX(-100%);
} */

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; } }

  i.icon-download {
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") !important;
  /* SVG encoded with https://cdpn.io/rrOZQQ */
  }

  li:not(:hover) > a.download > i.icon-download {
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") !important;
  }

  i.icon-close {
    display: inline-block;
    width: 20px;
    height: 20px;
    top: 3px !important;
    float: left;
    background-size: 18px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
  }

  li:not(:hover) > a.download > i.icon-print {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18%2C3H6V7H18M19%2C12A1%2C1 0 0%2C1 18%2C11A1%2C1 0 0%2C1 19%2C10A1%2C1 0 0%2C1 20%2C11A1%2C1 0 0%2C1 19%2C12M16%2C19H8V14H16M19%2C8H5A3%2C3 0 0%2C0 2%2C11V17H6V21H18V17H22V11A3%2C3 0 0%2C0 19%2C8Z' /%3E%3C/svg%3E") !important;
  }

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; }
}

.icon-filetype {
  background-size: 16px !important;
  background-repeat: no-repeat !important;
  margin: 0 !important;
  top: 0 !important;
}

.icon-filetype::before {
  position: relative;
  content: '';
}

.icon-pdf {
  background-image: url(../../osta/icons/icon_pdf_x16.png);
}

.icon-image {
  background-image: url(../../osta/icons/icon_image_x16.png);
}

.icon-word {
  background-image: url(../../osta/icons/icon_word_x16.png);
}

.icon-excel {
  background-image: url(../../osta/icons/icon_excel_x16.png);
}

.icon-powerpoint {
  background-image: url(../../osta/icons/icon_powerpoint_x16.png);
}

.icon-audio {
  background-image: url(../../osta/icons/icon_audio_x16.png);
}

.icon-video {
  background-image: url(../../osta/icons/icon_video_x16.png);
}

.icon-text {
  background-image: url(../../osta/icons/icon_text_x16.png);
}

.icon-archive {
  background-image: url(../../osta/icons/icon_archive_x16.png);
}

/* PDF Text Layer Styles */
.preview-panel {
    position: relative;
}

.pdf.canvas-pdf {
    display: block;
    position: relative;
    z-index: 1;
}

.pdf.text-layer {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    opacity: 1;
    line-height: 1.0;
    z-index: 2;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

/* Text layer creates span or div elements */
.pdf.text-layer > span,
.pdf.text-layer > div {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

/* Bright blue highlight for selected text */
.pdf.text-layer ::selection {
    background: rgba(0, 120, 255, 0.4);
    color: transparent;
}

.pdf.text-layer ::-moz-selection {
    background: rgba(0, 120, 255, 0.4);
    color: transparent;
}
