.conference-day-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
}


.conference-day-schedule tr{}

.conference-day-schedule th, .conference-day-schedule td {
    padding: 0;
    text-align: center;
    border: none;
    vertical-align: middle;
    line-height: 1.1;
    font-weight: normal;
    letter-spacing: 0;
}
.conference-day-schedule th{width: 10%;font-size: 14px;}
.conference-day-schedule th#pr-godzina{
    min-width: 95px;
}


.conference-day-schedule td{text-align: center;}

.conference-day-schedule td > div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
}


@-moz-document url-prefix() {
    .conference-day-schedule td.wss-nb > div {
        padding: 0px;
        display: inline-table;
    }
}


.conference-day-schedule th, .conference-day-schedule td {
    transition: all 0.3s ease;
    height: 0;
    transform-origin: center center;

}
.conference-day-schedule td { background-color: transparent !important; }

.conference-day-schedule td div:hover, .conference-day-schedule th:hover {
    transform-origin: center center;
    backface-visibility: hidden;
    transform: scale(1.05); /* Lekkie powiększenie elementów przy hover */
}

.conference-day-schedule td[colspan]:hover > div, .conference-day-schedule th:hover {

}
.conference-day-schedule th {
    background-color: #eeeeee;
    border-radius: 8px;
    padding: 4px;
    text-align: -moz-center;
    height: 40px;
}
.conference-day-schedule th.wss-nb, .conference-day-schedule td.wss-nb {background-color: transparent !important;border: none !important;}
.conference-day-schedule th a,.conference-day-schedule td a{
    text-decoration: none;
    vertical-align: middle;
}

@-moz-document url-prefix() {
    .conference-day-schedule th a, .conference-day-schedule td a {
        display: table-cell;
    }
}

.custom-tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Animacja przejścia */
    pointer-events: none;
    max-width: 500px;
    text-wrap: balance;
}

@media (min-width: 1200px) {
    .conference-day-schedule {
        max-width: 1200px;
        width: 100%;
        border-collapse: separate;
        border-spacing: 3px;
    }
}


@media (max-width: 768px) {
    .custom-tooltip {
/*        left: 2% !important;
        right: 2% !important;
        top: 10px !important;
        bottom: 10px !important;*/
        max-width:80%;
        max-height: calc(100% - 20px);
        overflow-y: auto;

        padding: 60px 10px 10px !important;
    }
}

footer.wp-block-template-part{
    overflow-x: hidden;
}


#prelegenci_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
#prelegenci_list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}
#prelegenci_list li .handle {
    cursor: move;
    margin-right: 10px;
}
#prelegenci_list li img {
    margin-right: 10px;
}
#prelegenci_list li .remove-prelegent {
    margin-left: auto;
    color: #d9534f;
    cursor: pointer;
}
.single-session .session-details {
    display: flex;
    flex-direction: column;
}
.single-session .session-speakers ul {
    list-style: none;
    padding: 0;
}
.single-session .session-speakers ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.single-session .session-speakers ul li img {
    margin-right: 20px;
}
.single-session .session-speakers ul li h3 {
    margin: 0;
}
.single-session .session-speakers ul li p {
    margin: 0;
}

.container.single-prelegent {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    gap: 20px;
}

.prelegent-image {
    flex: 1 1 300px;
    max-width: 300px;
}

.prelegent-image img {
    width: 100%;
    height: auto;
}

.prelegent-details {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prelegent-details h1 {
    font-size: 2.5em;
    margin: 0;
}

.prelegent-excerpt {
    font-size: 1.2em;
    color: #666;
}

.prelegent-content {
    font-size: 1em;
    line-height: 1.6;
}

.prelegent-custom-fields,
.prelegent-sessions {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.prelegent-custom-fields h2,
.prelegent-sessions h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.prelegent-custom-fields ul,
.prelegent-sessions ul {
    list-style: none;
    padding: 0;
}

.prelegent-custom-fields li,
.prelegent-sessions li {
    margin-bottom: 10px;
}

.prelegent-sessions a {
    color: #0073aa;
    text-decoration: none;
}

.prelegent-sessions a:hover {
    text-decoration: underline;
}

.container.archive-prelegent {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.prelegent-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.prelegent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    background-color: #fff;
}

.prelegent-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.prelegent-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.prelegent-details h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.prelegent-excerpt {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.prelegent-custom-fields ul {
    list-style: none;
    padding: 0;
}

.prelegent-custom-fields li {
    margin-bottom: 10px;
}

.prelegent-custom-fields strong {
    font-weight: bold;
}

.single-kongres_prezentacja main .wp-block-template-part{display: none;}

.session-content{
    word-break: break-word;
}

.post-type-archive-prelegenci .wp-block-post-excerpt__excerpt{font-size: 22px;line-height: 1.4}
.single-prelegenci .wp-block-post-featured-image img{width: 300px; height: 300px}
.single-prelegenci .wp-block-post-featured-image {text-align: center;}

/* Stylizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    .conference-day-schedule {
        width: 100%;
        border-collapse: collapse;
    }

    .conference-day-schedule thead tr{
        display: none; /* Ukryj nagłówki tabeli */
    }
    .conference-day-schedule thead tr.kongres-day{
        display: block; /* Ukryj nagłówki tabeli */
    }

    .conference-day-schedule thead tr.kongres-day td {text-align: center}

    .conference-day-schedule tbody,
    .conference-day-schedule tr,
    .conference-day-schedule td,
    .conference-day-schedule th {
        display: block;
        width: 100%;
    }

    .conference-day-schedule tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .conference-day-schedule td, .conference-day-schedule th {
        text-align: left;
        height: auto;
        position: relative;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .conference-day-schedule thead tr.kongres-day th{text-align: center;}

    .conference-day-schedule th:first-child, .conference-day-schedule td:first-child {
        /*  display: none;  Ukryj pierwszą kolumnę */
    }

    .conference-day-schedule td::before, .conference-day-schedule th::before {
        content: attr(data-label);
        position: absolute;
        top: 10px;
        left: 10px;
        width: calc(50% - 20px);
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .conference-day-schedule td, .conference-day-schedule th {
    }
}

/* Styl widoczny tylko na urządzeniach mobilnych */
@media only screen and (max-width: 768px) {
    .display-mobile {
        display: block;
        color: #fff !important;
        text-decoration: underline;
    }
    .conference-day-schedule tr.hidden, .conference-day-schedule td.hidden {
        display: none;
    }
}

/* Styl ukrywający elementy na urządzeniach większych niż mobilne */
@media only screen and (min-width: 769px) {
    .display-mobile {
        display: none;
    }
}
