
#modal:has(.admin-photo-grid){
 box-sizing:border-box;width:min(760px,calc(100vw - 20px));
 max-width:calc(100vw - 20px)
}
.admin-photo-grid,.admin-photo-grid *{box-sizing:border-box;min-width:0}
.admin-photo-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px
}
.admin-photo-card{
 border:1px solid currentColor;padding:8px;border-radius:8px;
 overflow:hidden;overflow-wrap:anywhere
}
.admin-photo-card label{display:flex;gap:6px;font-size:13px}
.admin-photo-card input[type=checkbox]{
 flex:0 0 20px;width:20px!important;height:20px!important;margin:0
}
.admin-photo-card img{
 display:block;width:100%!important;max-width:100%!important;
 height:100px!important;max-height:100px!important;object-fit:contain
}
.admin-photo-card .button{
 width:100%;min-height:44px;padding:8px;font-size:13px;white-space:normal
}
@media(max-width:600px){
 .admin-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .admin-photo-card img{height:84px!important;max-height:84px!important}
 #modal:has(.admin-photo-grid) #modal-form{padding:12px;overflow-wrap:anywhere}
 #modal:has(.admin-photo-grid) .modal-head{padding:12px}
 #modal:has(.admin-photo-grid) h2{font-size:18px;overflow-wrap:anywhere}
 #modal:has(.admin-photo-grid) .split-actions{display:flex;flex-wrap:wrap;gap:8px}
 #modal:has(.admin-photo-grid) .split-actions .button{
  flex:1 1 90px;min-height:44px;padding:8px;font-size:13px;white-space:normal
 }
}
