/* Dv245: desktop header visible in viewer; mobile header hidden only on mobile;
   no separate viewer background layer; local blur only behind the ship/model. */

/* Keep the viewer from drawing its own repositioned stripe image. */
html body.project-page .modal {
  background: rgba(5, 8, 10, .18) !important;
  overflow: hidden !important;
}
html body.project-page .modal::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Build a local blur field only behind the model/ship area. */
html body.project-page .modal-stage {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
}
html body.project-page .modal-stage::before {
  content: '' !important;
  position: absolute !important;
  left: 8% !important;
  right: 8% !important;
  top: 10% !important;
  bottom: 10% !important;
  border-radius: 40px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: rgba(20, 22, 25, .10) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025) !important;
}
html body.project-page .modal-pan,
html body.project-page .modal-arrow,
html body.project-page .modal-top,
html body.project-page .modal-bottom,
html body.project-page .modal-close {
  position: relative !important;
  z-index: 1 !important;
}

/* On desktop/tablet, keep the site header/tab visible above the viewer. */
@media (min-width: 901px) {
  html body.modal-open #r-header,
  html body.modal-open .site-header {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 5000 !important;
  }
}

/* On mobile only, keep header/tab hidden while viewing images. */
@media (max-width: 900px) {
  html body.modal-open #r-header,
  html body.modal-open .site-header,
  html body.modal-open .mobile-nav,
  html body.modal-open .mobile-tab,
  html body.modal-open .mobile-menu,
  html body.modal-open .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Slightly tighter local blur field on mobile. */
  html body.project-page .modal-stage::before {
    left: 4% !important;
    right: 4% !important;
    top: 12% !important;
    bottom: 12% !important;
    border-radius: 28px !important;
  }
}
