/*
 * PDF Graphic Page Flow V1
 *
 * Materiał PDF jest już renderowany jako zestaw grafik (canvas).
 * Starsze reguły natywnego viewer-a nadal narzucały na .pdf-viewer stałą
 * wysokość 64–76vh oraz overflow:hidden. Na telefonie ucinało to wszystkie
 * strony poza pierwszą. Ten arkusz wyłącza wyłącznie stare ograniczenie
 * wysokości dla graficznego wariantu materiału.
 */

.pdf-material,
.lesson-main .pdf-material,
.pdf-material.card {
  max-height: none !important;
  overflow: visible !important;
}

.pdf-material .pdf-viewer.pdf-graphic-viewer,
.lesson-main .pdf-material .pdf-viewer.pdf-graphic-viewer {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 320px !important;
  max-height: none !important;
  overflow: visible !important;
}

.pdf-material .pdf-graphic-document,
.pdf-material .pdf-graphic-pages {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.pdf-material .pdf-graphic-page {
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 900px) {
  .pdf-material .pdf-viewer.pdf-graphic-viewer,
  .lesson-main .pdf-material .pdf-viewer.pdf-graphic-viewer {
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .pdf-material .pdf-graphic-document,
  .pdf-material .pdf-graphic-pages {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 600px) {
  .pdf-material .pdf-viewer.pdf-graphic-viewer,
  .lesson-main .pdf-material .pdf-viewer.pdf-graphic-viewer {
    height: auto !important;
    min-height: 220px !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
