.photo-framing-editor{min-width:0;text-align:left;border:1px solid #d5dcd1;border-radius:12px;padding:14px;background:#fffdf8;color:#334334;margin:12px 0}.photo-framing-stage{width:100%;max-width:340px;max-height:380px;margin:0 auto 14px;overflow:hidden;background:repeating-conic-gradient(#edece4 0% 25%,#f7f6ef 0% 50%) 50% / 16px 16px;border:1px solid #c7cfbf;border-radius:6px}.photo-framing-stage img{display:block;width:100%;height:100%;image-orientation:from-image}.photo-framing-label{display:block;font-size:12px;font-weight:600;margin-bottom:12px}.photo-position-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;font-size:12px;margin-bottom:10px}.photo-position-controls label{display:block}.photo-position-controls input{display:block;width:100%;accent-color:#851b2a;margin-top:10px}.photo-framing-status{display:block;font-size:11px;line-height:1.7;margin-top:8px}.photo-position-controls[hidden]{display:none}.photo-gallery-workbench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cover-template-preview{display:block;border:1px solid #d5dcd1;border-radius:12px;width:100%;height:560px;max-width:420px;margin:16px auto;background:#fffdf8}.photo-framing-error{color:#a42222}@media(max-width:600px){.photo-gallery-workbench{grid-template-columns:1fr}.cover-template-preview{height:480px}}

.story-photo-editor .chapter-photo-well{height:auto;aspect-ratio:4/3}.story-photo-editor .photo-position-controls{grid-template-columns:1fr}.photo-framing-editor:has([name^="SavedGalleryFraming["]){width:250px;max-width:100%}
