.image-preview{border:0;padding:0;background:transparent;color:#292825;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;overflow:auto}
.image-preview::backdrop{background:rgba(20,29,25,.86)}
.image-preview[open]{display:flex;align-items:center;justify-content:center}
.image-preview-frame{margin:auto;padding:20px;max-width:100%;box-sizing:border-box}
.image-preview-frame header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 10px;color:#fff;font:14px/1.5 Arial,sans-serif}
.image-preview-frame header p{margin:0;color:#fff}
.image-preview-close{border:1px solid #ffffff80;border-radius:5px;background:#fff;color:#173e35;padding:9px 16px;cursor:pointer;font:inherit;white-space:nowrap}
.image-preview-close:focus-visible{outline:3px solid #e6a57e;outline-offset:3px}
.image-preview-frame img{display:block;max-width:calc(100vw - 40px);max-height:calc(100dvh - 100px);width:auto;height:auto;object-fit:contain;margin:auto;background:#f7f6f1}
@media(max-width:600px){.image-preview-frame{padding:12px}.image-preview-frame img{max-width:calc(100vw - 24px)}.image-preview-frame header{font-size:12px;gap:10px}}

.image-preview-frame img{cursor:zoom-in}.image-preview.is-zoomed{align-items:flex-start}.image-preview.is-zoomed img{max-height:none;cursor:zoom-out;width:1280px}.image-preview.is-zoomed .image-preview-frame header{position:sticky;top:0;background:#26342d;padding:8px;z-index:1}
