/* _content/Pike.Forms.Shared.Blazor/Components/FileUpload.razor.rz.scp.css */
.custom-image-modal[b-yusclwpxg0] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    height: auto;
    max-height: calc(100% - 4rem); /* Ensure it doesn�t overflow vertically */
    width: auto;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1055; /* higher than PDF viewer but less than real modals if any */
    overflow-y: auto;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.custom-image-modal .modal-header[b-yusclwpxg0] {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #DEE2E6;
    border-top-left-radius: calc(0.5rem - (1px));
    border-top-right-radius: calc(0.5rem - (1px));
}

.custom-image-modal .modal-header .btn-close[b-yusclwpxg0] {
    padding: calc(1rem * 0.5) calc(1rem * 0.5);
    margin: calc(-0.5 * 1rem) calc(-0.5 * 1rem) calc(-0.5 * 1rem) auto;
}

.custom-image-modal .modal-content[b-yusclwpxg0] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-image-modal .modal-body[b-yusclwpxg0] {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}
