/* 실사 입력과 기록 사진에만 적용한다. */
@media screen{
  .count-photo-list{display:flex;flex-wrap:wrap;gap:var(--space-2,8px);margin-top:8px}
  .count-photo-entry{display:grid;grid-template-columns:112px 24px;gap:4px;max-width:140px;align-content:start}
  .count-photo-entry img{grid-column:1/-1;width:136px;height:92px;object-fit:contain;background:var(--ui-surface-subtle);border:1px solid var(--ui-border)}
  .count-photo-entry>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .count-photo-entry>small{grid-column:1/-1;overflow-wrap:anywhere;color:var(--ui-muted)}
  .count-photo-entry>small.bad{color:var(--ui-error)}
  .count-photo-entry>button{grid-column:2;grid-row:2;min-width:24px;padding:0}
  .count-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  #dlgCountPhotos{width:min(900px,96vw);max-height:90dvh}
  #dlgCountPhotos>.dlg{width:100%;max-height:88dvh}
  .count-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:auto}
  .count-photo-gallery figure{margin:0;min-width:0}
  .count-photo-gallery img{width:100%;height:auto;max-height:65dvh;object-fit:contain}
  .count-photo-gallery figcaption{color:var(--ui-muted);font-size:12px;overflow-wrap:anywhere}
  @media(max-width:767px){
    .count-photo-actions>.btn,.count-photo-entry>button{min-height:44px;min-width:44px}
    .count-photo-entry{grid-template-columns:92px 44px}
    .count-photo-gallery{grid-template-columns:minmax(0,1fr)}
  }
}
