/* Homepage-only informational poster. Accessible controls remain outside the artwork. */


.moje-zdrowie-popup {
    /* Original poster aspect ratio: 1469 / 2048.
       Reserve 3.5rem for controls and 1.5rem for viewport margins. */
    width: min(640px, calc(100vw - 1.5rem), calc(71.7285vh - 3.58643rem));
    width: min(640px, calc(100vw - 1.5rem), calc(71.7285dvh - 3.58643rem));
    min-width: min(180px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 0;
    border: 0;
    border-radius: 12px;
    margin: auto;
    overflow: auto;
    background: #fff;
    box-shadow: 0 16px 55px rgb(0 0 0 / 35%);
}



/* Do not override the browser's display:none when the dialog is closed. */


.moje-zdrowie-popup[open] {
    display: flex;
    flex-direction: column;
}



.moje-zdrowie-popup::backdrop {
    background: rgb(8 22 40 / 78%);
}



.moje-zdrowie-popup__controls {
    box-sizing: border-box;
    min-height: 3.5rem;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #fff;
}



.moje-zdrowie-popup__enlarge {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    color: #173d70;
    
    
    
    text-decoration: underline;
    text-underline-offset: 3px;
}



.moje-zdrowie-popup__enlarge:hover {
    background: #e9f2ff;
}



.moje-zdrowie-popup__poster-link {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 0;
    
}



.moje-zdrowie-popup__poster-link:focus-visible,
.moje-zdrowie-popup__enlarge:focus-visible {
    outline: 3px solid #005fca;
    outline-offset: -3px;
}



.moje-zdrowie-popup__poster {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    object-fit: contain;
}



.moje-zdrowie-popup__close {
    box-sizing: border-box;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #173d70;
    color: #fff;
    
    
    
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 22%);
}



.moje-zdrowie-popup__close:hover {
    background: #0c2b52;
}



.moje-zdrowie-popup__close:focus-visible {
    outline: 3px solid #005fca;
    outline-offset: 3px;
}



.moje-zdrowie-popup__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    
}



html.moje-zdrowie-popup-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

