.image-rotate-modal .modal-body {
    text-align: center;
}

.image-rotate-modal__preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: min(60vh, 420px);
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 1rem;
}

.image-rotate-modal__preview {
    display: block;
    max-width: 100%;
    max-height: min(60vh, 420px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.image-rotate-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.image-rotate-modal__actions .btn {
    min-width: 8rem;
}

.image-rotate-modal .btn-outline--primary,
.image-rotate-modal .btn--primary {
    border-radius: 0.375rem;
}

.image-rotate-modal .btn-outline--primary {
    border: 1px solid #b60000;
    color: #b60000;
    background: #fff;
}

.image-rotate-modal .btn-outline--primary:hover {
    background: rgba(182, 0, 0, 0.08);
    color: #b60000;
}

.image-rotate-modal .btn--primary {
    background: #b60000;
    border-color: #b60000;
    color: #fff;
}

.image-rotate-modal .btn--dark {
    background: #334155;
    border-color: #334155;
    color: #fff;
}
