/* full-height side decorations */
.side-decor {
  position: fixed;
  top: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.decor-left {
  left: 0;
  width: 20%;
}

.decor-right {
  right: 0;
  width: 20%;
}

.side-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(90%) blur(0.3px);
}

/* keep content readable above decorations */
.page-content {
  position: relative;
  z-index: 1;
  max-width: 50%;
  margin: 0 auto;
  padding: 2em 0;
}

@media (max-width: 1200px) {
  .page-content {
    max-width: 60%;
  }
}

@media (max-width: 900px) {
  .page-content {
    max-width: 80%;
  }
}

/* program page sits above background decorations */
.program-page {
  position: relative;
  z-index: 1;
  padding: 1em 0;
}

/* flex column with zero gap so pages butt up against each other */
.program-page .pdf-scroll-viewer {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: 40vh;
}

/* wrapper adds no space of its own */
.program-page .svg-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0; /* removes residual inline whitespace */
}

/*
  img reads the SVG viewBox to compute intrinsic dimensions,
  so height:auto works correctly and leaves no gaps.
  This was the core fix: <object> cannot reliably do this.
*/
.program-page img.svg-page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}