.photo-dialog{box-sizing:border-box;width:min(54rem,calc(100vw - 1.6rem));max-height:90vh;max-height:90dvh;margin:auto;padding:1.1rem 1.25rem;overflow:auto;color:#e4eff9;background:#101e30;border:1px solid #405c75;border-radius:.8rem}
.photo-dialog::backdrop{background:rgba(3,9,17,.77)}
.photo-dialog fieldset{min-width:0;margin:0;padding:0;border:0}.photo-dialog header,.photo-actions,.photo-controls{display:flex;align-items:center;justify-content:space-between;gap:.55rem;flex-wrap:wrap}
.photo-dialog header{padding:0 0 .65rem;border-bottom:1px solid #36485d}
.photo-dialog h2{margin:0;font-size:1.27rem}.photo-dialog h3{margin:.75rem 0 .35rem;font-size:1rem}
.photo-dialog button{width:auto;margin:0}.photo-dialog label{margin:.25rem 0}.photo-dialog p{margin:.55rem 0}
.photo-dialog select,.photo-dialog input{box-sizing:border-box;max-width:100%}
.photo-dialog [hidden],#resolutionHint[hidden]{display:none!important}
.photo-dialog .photo-actions{justify-content:flex-start;margin:.65rem 0}
.photo-comparisons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.photo-sample{min-width:0;display:grid;align-content:start;gap:.35rem}
.photo-sample canvas,.photo-map canvas,.photo-caption-preview canvas{display:block;max-width:100%;background:repeating-conic-gradient(#27384b 0 25%,#33475b 0 50%) 50%/16px 16px}
.photo-sample canvas{width:100%;height:auto;image-rendering:pixelated}
.photo-map,.photo-caption-preview{display:flex;justify-content:center;align-items:center;background:#091321;border-radius:.4rem;padding:.35rem}
.photo-map canvas,.photo-caption-preview canvas{touch-action:none;cursor:crosshair;max-height:32vh;max-width:100%;object-fit:contain;width:auto;height:auto}
.photo-map canvas{max-height:22vh}
.photo-dialog select{width:100%}.photo-controls{justify-content:flex-start}.photo-controls label{min-width:7rem;flex:1}
.photo-fields{display:grid;grid-template-columns:1fr 1fr;gap:.35rem 1rem}
.photo-dialog input:not([type=range]){width:100%}#resolutionHint{margin-top:.4rem}#resolutionHint small{display:block;margin:.3rem 0}
.photo-dialog :focus-visible{outline:2px solid #a6e3ff;outline-offset:2px}
@media(max-width:760px){.photo-comparisons{grid-template-columns:1fr 1fr}.photo-dialog{padding:.8rem}.photo-sample canvas{max-height:28vh;width:auto;max-width:100%}}
@media(max-width:460px){.photo-fields{grid-template-columns:1fr}.photo-dialog select{font-size:.85rem}}
