img { width: 400px; } #cropper-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); justify-content: center; align-items: center; z-index: 1000; } #cropper-modal.active { display: flex; } #cropper-container { background: white; padding: 20px; border-radius: 8px; max-width: 90%; max-height: 890px; overflow: auto; } #cropper-container img { max-width: 100%; height: auto; } #cropper-actions { margin-top: 10px; text-align: right; } .imageeditor { transition: 300ms ease-in-out; } .imageeditor.selected-img{ filter: saturate(250%); box-sizing: border-box; } /* Background image editor */