/* Lightbox avatar comune a WhatsApp Albano e Occhialiweb, touch-friendly. */
.omCustPhotoOverlay.omMobileAvatarLightbox {
  position:fixed; inset:0; z-index:10090;
  display:flex; align-items:center; justify-content:center;
  box-sizing:border-box; overflow:hidden; padding:70px 12px 12px;
  background:rgba(0,0,0,.94); cursor:default; overscroll-behavior:contain;
}
.omMobileAvatarLightbox .omAvatarCloseButton {
  position:fixed;
  top:max(12px,env(safe-area-inset-top,0px));
  right:max(12px,env(safe-area-inset-right,0px));
  z-index:10092;
  min-width:108px; min-height:52px;
  padding:10px 14px; border:2px solid rgba(255,255,255,.5);
  border-radius:28px; background:#fff; color:#111827;
  box-shadow:0 4px 22px rgba(0,0,0,.6);
  font:700 16px/1.1 system-ui,-apple-system,sans-serif;
  display:flex; align-items:center; justify-content:center; gap:8px;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.omMobileAvatarLightbox .omAvatarCloseButton:focus-visible{outline:3px solid #36c5f0;outline-offset:3px}
.omMobileAvatarLightbox .omCustPhotoStage{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:min(96vw,1400px);height:min(80vh,1100px);
  max-height:calc(100vh - 88px);
  box-sizing:border-box; overflow:hidden; border-radius:12px;
  touch-action:none;
}
.omMobileAvatarLightbox .omCustPhotoStage img{
  display:block; max-width:100%; max-height:100%; width:auto; height:auto;
  object-fit:contain; user-select:none; -webkit-user-drag:none; touch-action:none;
}
.omMobileAvatarLightbox .omCustZoomHint{
  max-width:calc(100% - 22px);white-space:normal;text-align:center;
  font-size:13px;bottom:10px;
}
@media(max-width:760px){
  .omCustOverlay .omCustClose{
    position:fixed; top:max(12px,env(safe-area-inset-top,0px));
    right:max(12px,env(safe-area-inset-right,0px));
    width:50px;height:50px;background:#fff;color:#0f172a;
    box-shadow:0 4px 18px rgba(0,0,0,.4);z-index:10062;
    touch-action:manipulation;
  }
  .omCustPhotoOverlay.omMobileAvatarLightbox{padding:72px 6px max(10px,env(safe-area-inset-bottom,0px))}
  .omMobileAvatarLightbox .omCustPhotoStage{
    width:100%;height:calc(100vh - 94px);max-height:none;border-radius:0;
  }
  .omMobileAvatarLightbox .omAvatarCloseButton{min-width:112px;min-height:54px}
}
@supports(height:100dvh){
  .omCustPhotoOverlay.omMobileAvatarLightbox{height:100dvh}
  @media(max-width:760px){
    .omMobileAvatarLightbox .omCustPhotoStage{height:calc(100dvh - 94px)}
  }
}
