/* Galería de fondos de cámara · V2
   El selector original se mueve entre Ajustes de escritorio, móvil y nativos.
   Visual solamente: no se alteran MediaPipe, LiveKit ni permisos de cámara. */
.camera-background-gallery-head{
 display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:6px;margin:12px 0 2px;
 font-family:var(--font,Manrope),system-ui,sans-serif;
}
.camera-background-gallery-head strong{font-size:0.8125rem;font-weight:800;color:inherit}
.camera-background-gallery-head small{font-size:0.6875rem;color:var(--muted,#a6afa7);font-weight:600}
#cameraBgPresets.camera-background-presets{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));
 gap:10px;min-width:0;width:100%;box-sizing:border-box;overflow:visible;
}
#cameraBgPresets.camera-background-presets>.camera-bg-preset{
 display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
 min-width:0;max-width:none;width:100%;box-sizing:border-box;
 padding:7px;gap:6px;cursor:pointer;text-align:left;
}
#cameraBgPresets .camera-bg-preset img{
 display:block;width:100%;height:auto;aspect-ratio:16/9;
 object-fit:cover;flex:0 0 auto;border-radius:8px;background:#202323;
}
#cameraBgPresets .camera-bg-preset span{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 overflow:hidden;min-width:0;line-height:1.3;overflow-wrap:anywhere;
}
#cameraBgPresets .camera-bg-preset:focus-visible{
 outline:2px solid var(--accent,#9bcb60)!important;outline-offset:2px;
}
@media(max-width:700px){
 body.xm-mkt-ui #xmMobileSettings #cameraBgPresets.camera-background-presets{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;min-width:0!important;overflow:visible!important;
 }
 body.xm-mkt-ui #xmMobileSettings #cameraBgPresets>.camera-bg-preset{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-width:0!important;max-width:none!important;width:100%!important;
  height:auto!important;padding:7px!important;box-sizing:border-box!important;
 }
 body.xm-mkt-ui #xmMobileSettings #cameraBgPresets .camera-bg-preset img{
  display:block!important;width:100%!important;max-width:100%!important;
  height:auto!important;aspect-ratio:16/9;object-fit:cover!important;
 }
 body.xm-mkt-ui #xmMobileSettings .camera-background-gallery-head{margin-top:14px!important}
}
@media(min-width:701px){
 body.xm-mkt-ui #xmMktSettingsModal #cameraBgPresets.camera-background-presets{
  grid-template-columns:repeat(auto-fill,minmax(126px,1fr))!important;
 }
}
