/* Dopasowanie treści EHDIS do układu nilin.org.pl (ładowane po ehdis-source.css) */

/* pasek .eh-top jest absolutny — pozycjonujemy go względem bloku EHDIS, nie strony */
.ehdis { position: relative; overflow-x: clip; }

/* w oryginale obrazy są inline; nilintheme ustawia globalnie img{display:block} */
.ehdis img { display: inline; }

/* nilintheme ustawia globalnie * {font-family: Lexend} — przywracamy dziedziczenie */
.ehdis button { font-family: inherit; }

/* Okienka biogramów prelegentów — w oryginale style były w <style> w treści strony */
.ehdis .eh-modal {
    display: none;
    position: fixed;
    z-index: 100000; /* nad nagłówkiem nilin.org.pl */
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    overscroll-behavior: contain;
}
.ehdis .eh-modal.eh-is-open { display: block; }
.ehdis .eh-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}
.ehdis .eh-modal .eh-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}
.ehdis .eh-modal .eh-close:hover,
.ehdis .eh-modal .eh-close:focus-visible { color: #000; text-decoration: none; }
.ehdis .eh-modal .eh-close:focus-visible { outline: 2px solid var(--color2); outline-offset: 2px; }
.ehdis .eh-modal-body .eh-wp-block-paragraph:empty { display: none; }
html.eh-modal-open { overflow: hidden; }

@media screen and (max-width: 600px) {
    .ehdis .eh-modal-content { width: auto; margin: 20px 15px; }
    .ehdis .eh-modal-body .eh-row-flex { flex-wrap: wrap; }
    .ehdis .eh-modal-body .eh-col-img { width: 60%; margin: 0 auto 15px; padding: 0; }
    .ehdis .eh-modal-body .eh-col-content { width: 100%; }
    .ehdis .eh-modal-body .eh-col-content h3 { max-width: none; }
}
