.photo-thumbs{display:flex;gap:8px;overflow-x:auto;padding:6px 0}.photo-thumb{position:relative;flex:0 0 64px;width:64px;height:72px;border:2px solid transparent;border-radius:7px;background:#eee;padding:2px}.photo-thumb.selected{border-color:#0095f6}.photo-thumb img{width:100%;height:100%;object-fit:contain}.photo-thumb span{position:absolute;bottom:2px;right:3px;background:#111;color:white;padding:1px 4px;font-size:10px;border-radius:3px}.photo-tools{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.photo-tools .btn{font-size:12px;padding:9px}.rite-form .rite-preview{width:100%;max-height:420px;object-fit:contain;background:#f5f5f5;cursor:default}.photo-draft .small-note{margin:8px 0}.photo-editor{width:min(960px,calc(100% - 20px));max-height:94dvh;padding:16px;border:0;border-radius:14px;overflow:auto}.photo-editor::backdrop{background:#0009}.photo-editor header{display:flex;justify-content:space-between;align-items:center;gap:12px}.photo-editor h2{font-size:18px;margin:0}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;margin:16px 0}.editor-stage{min-width:0;display:flex;align-items:center;justify-content:center;background:#eaeaea;border-radius:8px;overflow:hidden;min-height:180px}.editor-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:65dvh;touch-action:none}.editor-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin-bottom:12px}.editor-controls select,.editor-controls input:not([type=range]):not([type=color]){width:100%;min-width:0;border:1px solid #ddd;border-radius:6px;padding:8px;font:inherit;background:white}.editor-controls input[type=range]{width:100%;accent-color:#0095f6}.editor-controls input[type=color]{width:100%;height:32px;border:1px solid #ddd;background:white}.photo-editor footer{border-top:1px solid #eee;padding-top:10px}.photo-editor footer .btn{min-width:150px}.photo-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}.photo-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;background:#f5f5f5}.post-gallery .pimg,.tl .entry .post-gallery img{display:block;width:100%;height:auto;max-height:720px;aspect-ratio:auto;object-fit:contain;margin:0}.gallery-nav{display:flex;justify-content:space-between;align-items:center;padding:7px 12px;gap:8px;font-size:12px}.gallery-nav .btn{padding:7px 10px;font-size:12px}.tl .entry{min-width:0;flex:1}.tl .post-gallery{max-width:680px}.post-gallery{min-width:0}.photo-editor [hidden]{display:none!important}
@media(max-width:650px){.editor-layout{grid-template-columns:minmax(0,1fr)}.editor-stage canvas{max-height:45dvh}.editor-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editor-controls>.photo-tools,.editor-controls>.small-note,.editor-controls>#stickerControls{grid-column:1 / -1}.editor-controls label{margin:0}.photo-editor{padding:12px}.photo-editor footer{position:sticky;bottom:-12px;background:white;padding-bottom:10px}.post-gallery .pimg{max-height:650px}}
