.ma-pm-root[hidden] { display: none !important; }
.ma-pm-root {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    color: #191919;
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
}
.ma-pm-root *, .ma-pm-root *::before, .ma-pm-root *::after { box-sizing: border-box; }
.ma-pm-root .ma-pm-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}
.ma-pm-root .ma-pm-image-wrap { position: relative; margin: 0 auto; padding: 0; display: flex; align-items: center; justify-content: center; }
.ma-pm-root .ma-pm-image {
    display: block !important;
    width: var(--ma-pm-width) !important;
    height: var(--ma-pm-height) !important;
    max-width: 599px !important;
    max-height: 799px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
}
.ma-pm-root .ma-pm-close {
    appearance: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 0 0 0 8px;
    background: #171717;
    color: #fff;
    font: 32px/1 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.ma-pm-root .ma-pm-close:hover { background: #393939; color: #fff; }
.ma-pm-root .ma-pm-close:focus-visible, .ma-pm-root .ma-pm-text:focus-visible { outline: 3px solid #1473e6; outline-offset: 3px; }
.ma-pm-root .ma-pm-text { overflow-y: auto; overflow-wrap: anywhere; white-space: pre-wrap; margin: 0; padding: 12px 16px; text-align: center; background: #fff; color: #191919; }
@media print { .ma-pm-root { display: none !important; } }
