#viewer-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: rgba(0, 0, 0, 0.6);
    z-index: 110;
    display: none;
  
    #media-cont {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  
      #image-cont {
        min-width: 40%;
        min-height: 40%;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow: hidden;
  
        #image-inside-cont {
          flex: 1 1 auto;
          display: flex;
          align-items: center;
          justify-content: center;
          max-height: 100%;
          max-width: 100%;
          position: relative;
          overflow: auto;
          box-sizing: border-box;
  
          #image {
            z-index: 3;
          }
  
          #preview-thumbnail {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0px;
            left: 0;
            z-index: 2;
            filter: blur(4px);
          }
        }
  
        .close {
          position: absolute;
          right: 0;
          top: 0;
          font-size: 20px;
          padding: 12px;
          display: block;
          cursor: pointer;
          z-index: 4;
          text-shadow: 0px 0px 2px black;
        }
  
        #file-menu {
          width: 100%;
          background-color: rgba(0, 0, 0, 0.8);
          padding: 6px 12px;
          color: white;
          display: flex;
          justify-content: space-between;
          align-items: center;
          box-sizing: border-box;
          z-index: 4;
        }
  
        img {
          max-width: 100%;
          max-height: 100%;
          display: block;
        }

        pdf-viewer, object, iframe{
            width: 90vw;
            height: 90vh;
            display: block;
        }
      }
    }
  }
  
  .opened {
    display: block !important;
  }
  
  /* TODO(mdc-migration): The following rule targets internal classes of progress-bar that may no longer apply for the MDC version. */
  mat-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
  }
  
  .error-window {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  