.trn-global {
  --left-nav: 150px;
  --gap: 30px;
  position: relative;
  padding: 30px 80px;
  height: 100%;
  background: #f1f6ff;
}

.trn-add-content {
  padding: 0.25em 0.5em;
  border-radius: 1.5em;
  border: 1px solid #0af;
  background: #fff;
  color: #0af;
  margin: 0px;
}

.trn-add-content img {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

.trn-sort {
  background: transparent;
  border: none;
  padding: 0px;
  margin: 0px;
}

.trn-search {
  border-radius: 1em;
  padding: 0.25em 0.5em;
  border: 1px solid #aaa;
}

.trn-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.trn-media-list {
  display: grid;
  padding: calc(var(--gap) / 2) 0px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: var(--gap);
  overflow: auto;
}

.trn-media-wrapper {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
}

.trn-thumbnail-media {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}

.trn-thumbnail-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #ddd;
  cursor: pointer;
}

.trn-thumbnail {
  position: absolute;
  left: 0px;
  top: 0px;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #ddd;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* left: 0px;
     top: 0px;
     min-width: 100%;
     min-height: 100%;
  */
}

.trn-duration {
  position: absolute;
  display: block;
  padding: 0.15em 0.25em;
  border-radius: 3px;
  bottom: 6px;
  right: 6px;
  min-width: 2.75em;
  background: #333333;
  color: #fff;
  text-align: right;
}

.trn-drop {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.trn-modal {
  width: 1100px;
  height: 640px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background: #fff;
  border-radius: 35px;
}

#trn-thumbnail-input,
#trn-cc-input,
#trn-media-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.trn-thumbnail-btn,
.trn-cc-btn,
.trn-playlist-btn,
.trn-media-btn {
  display: flex;
  height: 100%;
  background: linear-gradient(to bottom, #fcfcfc, #eeeeee);
  border: 1px solid #ddd;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0px;
  padding: 0px;
}

.trn-drop-image {
  width: 75px;
  height: 75px;
  margin-bottom: 10px;
}

.trn-thumbnail-image,
.trn-cc-image {
  margin-bottom: 10px;
}

.trn-thumbnail-message,
.trn-cc-message,
.trn-playlist-message,
.trn-media-message {
  color: #aaa;
}

.trn-upload-btns {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: 'tns tns plb .';
  grid-template-rows: 115px;
}

.trn-cc-possible {

  grid-template-areas: 'tns tns ccs plb';
}

.trn-editing {
  grid-template-rows: 115px 115px;
  grid-template-areas: 'mds mds tns tns'
    'plb plb  .   .';
}

.trn-editing.trn-cc-possible {
  grid-template-areas: 'mds mds tns tns'
    'ccs ccs plb plb';
}

.trn-media-section {
  grid-area: mds;
}

.trn-thumbnail-section {
  grid-area: tns;
}

.trn-cc-section {
  grid-area: ccs;
}

.trn-playlist-btn {
  grid-area: plb;
}

.trn-drop-message {
  border: 1px solid #aaa;
  border-radius: 1.5em;
  padding: 0.25em 0.5em;
  color: #aaa;
}

.trn-upload-section {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 45px;
}

.trn-content-section {
  position: relative;
  width: 50%;
  height: 100%;
  border-left: 1px solid #ddd;
}

.trn-cancel {
  position: absolute;
  width: 125px;
  height: 45px;
  left: 45px;
  bottom: 45px;
  margin: 0px;
  padding: 0px;
}

.trn-upload {
  position: absolute;
  width: 125px;
  height: 45px;
  right: 45px;
  bottom: 45px;
  margin: 0px;
  padding: 0px;
}

.trn-cancel {
  background: linear-gradient(to bottom, #fafafa, #eeeeee);
  border: 1px solid #ddd;
  border-radius: 5px;
}

.trn-upload {
  background: #0af;
  color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.trn-upload:disabled {
  background: linear-gradient(to bottom, #fafafa, #eeeeee);
  color: #aaa;
}

.trn-content-heading {
  display: inline-block;
  padding: 5px 5px;
  margin: 10px 10px 5px;
  border-bottom: 3px solid transparent;
  width: 90px;
  text-align: center;
  transition: color 0.25s;
}

.trn-current {
  color: #0af;
}

.trn-content-headings {
  border-bottom: 1px solid #aaa;
  padding: 0px 45px 10px 30px;
  position: relative;
}

.trn-heading-underline {
  position: absolute;
  width: 90px;
  height: 2px;
  background: #0af;
  bottom: 20px;
  transition: left 0.25s;
}

.trn-list-item {
  padding: 1em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trn-list-item:nth-child(odd) {
  background: #00aaff11;
}

.trn-actions {
  float: right;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 150px;
}

.trn-edit,
.trn-delete {
  font-size: 12px;
  cursor: pointer
}

.trn-edit {
  color: #0af;
}

.trn-delete {
  color: #f00;
}

.trn-edit.disabled,
.trn-delete.disabled {
  color: #aaa;
  pointer-events: none;
}

.trn-upload-title {
  border: none;
  border-bottom: 1px solid #aaa;
  width: 100%;
  margin-top: 90px;
  margin-bottom: 35px;
}

.trn-search-wrapper {
  position: relative;
}

.trn-search-wrapper::after {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background-image: url('../img/map-search-icon.png');
  position: absolute;
  top: 0.25em;
  right: 0.5em;
}

.trn-media-upload .mod-close {
  top: 15px;
  right: 15px;
}

.trn-media-upload .mod-close::before,
.trn-media-upload .mod-close::after {
  background: #aaa;
}

.trn-loading-bar-wrapper {
  margin-top: 50px;
}

.trn-uploading-back {
  background: #ddd;
  --bar-height: 10px;
  height: var(--bar-height);
  width: 80%;
  border-radius: var(--bar-height);
  overflow: hidden;
  margin: 0px auto;
}

.trn-uploading-front {
  background: linear-gradient(to right, #06b, #0af);
  height: 100%;
  border-radius: var(--bar-height);
  width: 0%;
}

.trn-percentage {
  text-align: center;
}

.trn-nothing-uploaded {
  margin: 10px;
}

.trn-playlist-modal {
  background: #fff;
  min-width: 225px;
  /* width: 225px; */
  /* min-height: 200px; */
  border-radius: 5px;
  padding: 10px;
}

.trn-playlist-modal-heading {
  margin: 0px -10px 10px;
  border-bottom: 1px solid #aaa;
  padding: 0px 10px 10px;
  color: #aaa;
}

.trn-playlist-list {
  min-height: 110px;
  max-height: 640px;
  overflow: auto;
  margin-bottom: 30px;
}

.trn-playlist-label {
  font-weight: normal;
  font-size: 14px;
  margin: 5px;
}

.trn-sort {
  color: #aaa;
  padding-bottom: 0.5em;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0s 0.25s linear;
  text-align: left;
  width: 150px;
  font-family: "Futura PT Book";
}

.trn-sort-open {
  border-bottom: 1px solid #ddd;
  transition: border-bottom 0s 0s linear;
}

.trn-sort-tray {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.25s linear;
}

.trn-sort-tray.trn-tray-open {
  max-height: 74px;
  /* transition: max-height 0.5s; */
}

.trn-sort-option {
  position: relative;
  margin-top: 0.75em;
  width: 100%;
  padding-right: 2em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
}

.trn-sort-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  margin-right: 1em;
}

.trn-sort-column:last-child {
  margin-right: 0px;
}

.trn-clear-sort {
  position: absolute;
  top: 0px;
  right: 0px;
  display: inline-block;
  width: 1em;
  height: 1em;
  cursor: pointer;
}

.trn-clear-sort::before,
.trn-clear-sort::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8em;
  height: 1px;
  background: #000;
}

.trn-clear-sort::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.trn-clear-sort::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Not Here */
.trn-create-playlist {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid #aaa;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding: 10px;
}

.trn-create-btn {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

.trn-playlist-input {
  border: 0px;
  width: 100%;
}

.trn-hidden-input {
  width: 0px;
  height: 0px;
  opacity: 0;
}

.trn-podcast-wrapper {
  position: relative;
  display: inline-block;
}

.trn-podcast-grid {
  width: 100%;
}

.trn-podcast::-webkit-media-controls-panel {
  background: #fff;
}

.trn-podcast-title {
  position: absolute;
  display: block;
  left: 45px;
  width: calc(100% - 45px);
  top: 50%;
  transform: translate(0px, -50%);
  background: #fff;
}

.trn-manual-thumbnail {
  z-index: 2;
}

.trn-media-wrapper .pdfjs .toolbar {
  z-index: 1;
}

.trn-media-wrapper .pdfjs {
  height: 100% !important;
}

.trn-media-wrapper .pdfjs #errorWrapper,
.trn-media-wrapper .pdfjs #sidebarContainer,
.trn-media-wrapper .pdfjs #overlayContainer,
.trn-media-wrapper .pdfjs #loadingBar,
.trn-media-wrapper .pdfjs #toolbarViewerLeft,
.trn-media-wrapper .pdfjs #toolbarViewerMiddle,
.trn-media-wrapper .pdfjs #openFile,
.trn-media-wrapper .pdfjs #print,
.trn-media-wrapper .pdfjs #download,
.trn-media-wrapper .pdfjs #viewBookmark,
.trn-media-wrapper .pdfjs #secondaryToolbarToggle,
.trn-media-wrapper .pdfjs .verticalToolbarSeparator {
  display: none;
}

.trn-media-wrapper .pdfjs .page,
.trn-media-wrapper .pdfjs .canvasWrapper,
.trn-media-wrapper .pdfjs .textLayer,
.trn-media-wrapper .pdfjs canvas {
  width: 100% !important;
  height: 100% !important;
  /* margin: 0px; */
  /* border: none; */
}

.trn-manual-wrapper {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
}

.trn-playlist-wrapper {
  background: #fff;
  border-radius: 5px;
  width: 300px;
  height: 200px;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
}

.fullscreen, .exit-fullscreen {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: #00000055;
  border: none;
  margin: 0px;
}

.fullscreen::after {
  content: "";
  display: block;
  position: absolute;
  border: 2px solid #ffffff;
  border-style: dashed;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}

.exit-fullscreen::after {
  content: "";
  display: block;
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: linear-gradient(to right, transparent 30%, white 30% 40%, transparent 40% 60%, white 60% 75%, transparent 75%),
  linear-gradient(to right, white 40%, transparent 40% 60%, white 60%),
  linear-gradient(to right, transparent 30%, white 30% 40%, transparent 40% 60%, white 60% 75%, transparent 75%),
  linear-gradient(to right, white 40%, transparent 40% 60%, white 60%);
  background-repeat: no-repeat;
  background-position-y: top, 30%, bottom, 70%;
  background-size: 100% 40%, 100% 15%, 100% 40%, 100% 15%;

}


.pdfjs #viewerContainer.pdfPresentationMode:fullscreen,
.pdfjs #viewerContainer.pdfPresentationMode:-webkit-full-screen {
	overflow: auto
}

.pdfjs .pdfPresentationMode:fullscreen .pdfViewer .page,
.pdfjs .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
	margin-bottom: unset;
}

@media screen and (max-width: 1700px) {
  .trn-media-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1200px) {
  .trn-media-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
