.pdf-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(66vh, 760px);
  min-height: min(480px, 66vh);
  overflow: hidden;
  border-radius: 12px;
  background: #19211f;
}

.pdf-canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.pdf-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.pdf-status {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  max-width: calc(100% - 100px);
  margin: 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .85rem;
  text-align: center;
  transform: translateX(-50%);
}

.pdf-status[hidden],
.pdf-fallback[hidden] {
  display: none;
}

.pdf-stage.pdf-error .pdf-status {
  bottom: 60px;
}

.pdf-fallback {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: #284f44;
  font-weight: 700;
  transform: translateX(-50%);
}

.horizontal-presentation:fullscreen,
.horizontal-presentation.presentation-expanded {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #101513;
}

.horizontal-presentation:fullscreen .viewer-header,
.horizontal-presentation.presentation-expanded .viewer-header {
  display: none;
}

.horizontal-presentation:fullscreen .pdf-stage,
.horizontal-presentation.presentation-expanded .pdf-stage {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.horizontal-presentation.presentation-expanded {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}

.horizontal-presentation:fullscreen .pdf-stage .pdf-canvas-wrap,
.horizontal-presentation.presentation-expanded .pdf-stage .pdf-canvas-wrap {
  width: 100%;
  height: 100%;
}

.horizontal-presentation:fullscreen .pdf-stage canvas,
.horizontal-presentation.presentation-expanded .pdf-stage canvas {
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 640px) {
  .pdf-stage {
    height: 56vh;
    min-height: 360px;
  }

  .horizontal-presentation {
    padding: 18px;
  }

  .horizontal-presentation:fullscreen,
  .horizontal-presentation.presentation-expanded {
    padding: 0;
  }
}
