.delete-media {
    cursor: pointer;
}

#edit-image-modal {
    width: 100%;
}

#edit-image-modal .modal-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

#edit-image-modal .modal-header {
    flex-shrink: 0;
}

#edit-image-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow-y: hidden;
}

#edit-image-modal .modal-body .cropper-container {
    flex-grow: 1;
    height: 100%;
}

#edit-image-modal .modal-body cropper-canvas {
    height: 100%;
}

#edit-image-modal .modal-body .sidebar {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow-y: hidden;
}

#edit-image-modal .modal-body .sidebar .ratios {
    flex: 1 1 0%;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
}

#edit-image-modal .modal-body .sidebar .ratios h5 {
    margin-top: 10px;
}

#edit-image-modal .modal-body .sidebar .ratios .btn-list {
    display: flex;
    gap: 5px;
}

#edit-image-modal .modal-body .sidebar .ratios .btn-list.vertical-list {
    flex-direction: column;
}

#edit-image-modal .modal-body .sidebar .ratios .btn-list.vertical-list button {
    width: 100%;
}

#edit-image-modal .modal-body .sidebar .reset button,
#edit-image-modal .modal-body .sidebar .ratios .free-ratio button {
    flex-shrink: 0;
    margin-top: 15px;
    width: 100%;
}

#edit-image-modal .modal-body .sidebar .buttons {
    display: flex;
    justify-content: space-between;
}

#edit-image-modal .modal-body .sidebar .buttons button {
    margin-bottom: 0;
}
