/* /public_html/assets/pb19-lock.css
   PB19 Locked Layout v3
   - Desktop (mouse): center + scale shell (lock ON)
   - Touch (phone/tablet): lock OFF (full-bleed frame çalışsın)
*/

body.pb19-lock{
  --pb19-lock-scale: 1;
  overflow:hidden !important;
}

/* ✅ Desktop / mouse: lock aktif */
@media (hover:hover) and (pointer:fine){
  body.pb19-lock .pb19-shell{
    position:fixed !important;
    left:50% !important;
    top:50% !important;
    transform: translate(-50%, -50%) scale(var(--pb19-lock-scale)) !important;
    transform-origin:center center !important;
    will-change: transform;
  }

  /* Reflow lock (conservative) */
  body.pb19-lock.pb19-portal .pb19-grid,
  body.pb19-lock.pb19-portal .pb19-panel-grid,
  body.pb19-lock.pb19-admin  .pb19-grid,
  body.pb19-lock.pb19-admin  .pb19-panel-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.pb19-lock.pb19-contact .pb19-grid,
  body.pb19-lock.pb19-contact .pb19-panel-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ✅ Touch (phone/tablet): lock kapalı => full-bleed frame çalışır */
@media (hover:none) and (pointer:coarse){
  body.pb19-lock{ --pb19-lock-scale: 1; }

  body.pb19-lock .pb19-shell{
    position:fixed !important;
    left:0 !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    transform:none !important;
    width:100% !important;
    height:100% !important;
  }
}
