/* AI Project Universe V3.8 — reliable iframe viewer scrolling */
.viewer,
.viewer[open] {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.viewer[open] {
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) !important;
  grid-template-columns: minmax(0,1fr) !important;
}
.viewer__bar {
  position: relative;
  z-index: 4;
  min-width: 0;
}
.viewer iframe,
#viewerFrame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  border: 0 !important;
  overflow: auto !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
@media (max-width:760px) {
  .viewer__bar { max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain; }
}
