.blog_container
{
    display: block;
    position: relative;
}
@media(min-width: 1000px) {
  
    .blog_container.wydarzenia .blog_header
    {
        width: calc(100% - 420px);
        min-height: 230px;
    }
}
.blog_container .blog_header h2
{
    font-size: calc(var(--font-size) * 3.2);
    font-weight: 500;
}
.blog_container .blog_header .p_def
{
    margin-top: calc(var(--font-size) * 2.8);
}
.blog_container .blog_header .p_def.legenda
{
    font-weight: 500;
}
.blog_container .blog_header .blog_header_kategorie
{
    margin-top: calc(var(--font-size) * 0.6);
}
.blog_container .blog_header .blog_header_kategorie .blog_header_kategorie_content
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.blog_container .blog_header .blog_header_kategorie .blog_header_kategorie_content .blog_header_dostepna_kategoria
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--font-size) * 0.8);
}
.blog_container .blog_header .blog_header_kategorie .blog_header_kategorie_content .blog_header_dostepna_kategoria:not(:last-child)
{
    margin-right: calc(var(--font-size) * 2);
    padding-right: calc(var(--font-size) * 2);
}
.blog_container .blog_header .blog_header_kategorie .blog_header_kategorie_content .blog_header_dostepna_kategoria .dot_kategoria
{
    width: calc(var(--font-size) * 1.4);
    height: calc(var(--font-size) * 1.4);
    border: 1px solid var(--global-text-szary-2);
    border-radius: 50%;
}
.blog_container .blog_header .blog_header_kategorie .blog_header_kategorie_content .blog_header_dostepna_kategoria .s_kategoria
{
    font-family: "Poppins", sans-serif;
    font-size: calc(var(--font-size) * 1.5);
    font-weight: 400;
}
.blog_container .blog_content
{
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.blog_container .blog_content_box
{
    width: 100%;
    margin-top: calc(var(--font-size) * 3);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}
@media(max-width: 720px) {

    .blog_container .blog_content_box
    {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media(min-width: 721px) {

    .blog_container .blog_content_box
    {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(min-width: 1420px) {

    .blog_container .blog_content_box
    {
        grid-template-columns: repeat(4, 1fr);
    }
}




.loader_wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}
.loader {
    border: 6px solid var(--sekcja-formularz-loading-border);
    border-top-color: var(--color-main);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#modal 
{
    top: 0; 
    bottom: 0;
    left: 0; 
    right: 0;
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
#modalContent 
{
    max-width: 600px;
    max-height: 80vh;
    padding: 20px;
    border-radius: 8px;
    background: white;
    overflow-y: auto;
}
#modalClose 
{
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#calendar 
{
    width: 100%;
    height: 360px;
    max-width: 400px;
    top: -130px;
    right: 0;
    padding: 20px;
    display: block;
    position: absolute;
    border-radius: var(--global-border-radius);
    background: var(--global-bg-bialy);
    box-shadow: var(--global-shadow-box-light);
    z-index: 2;
    font-family: sans-serif;
}
@media(max-width: 999px) {

    #calendar
    {
        height: auto;
        top: unset;
        right: unset;
        display: block;
        position: relative;
    }
    #calendar-overlay 
    {
        max-height: 360px;
        padding: 24px;
        display: block;
        border-radius: var(--global-border-radius);
        animation: fadeIn 0.3s ease;
    }
    #calendar .fc-view-harness.fc-view-harness-active
    {
        max-height: 350px;
    }
}
@media(max-width: 450px) {

    #calendar .fc-view-harness.fc-view-harness-active
    {
        min-height: 265px;
    }
    .fc .fc-daygrid-day-top
    {
        margin: auto;
    }
}
@media(min-width: 1000px) {
  
    #calendar-overlay 
    {
        display: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.fc-toolbar-title 
{
    text-align: center;
    width: 100%;
}
.fc-toolbar-chunk:first-child, .fc-toolbar-chunk:last-child 
{
    flex: 0 0 auto;
}
.fc-toolbar-chunk:first-child 
{
    justify-content: flex-start;
}
.fc-toolbar-chunk:last-child 
{
    justify-content: flex-end;
}
.fc .fc-daygrid-day-frame 
{
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fc .fc-daygrid-day-top 
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    margin: 2px 5px;
    border-radius: 50%;
    cursor: pointer;
}
.fc-theme-standard .fc-scrollgrid
{
    border: 0;
}
.fc .fc-daygrid-day.fc-day-today
{
    background-color: transparent;
}
.fc-theme-standard td, .fc-theme-standard th
{
    border: 0;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-top 
{
    border: 2px solid #007bff;
}
.fc-event 
{
    display: none;
}
.fc-daygrid-day-number 
{
    flex: 1;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: calc(var(--font-size) * 1.3);
    font-weight: 600;
    line-height: 1;
}
.fc-daygrid-event-dot 
{
    display: none;
}
.fc .fc-day-other .fc-daygrid-day-top .fc-daygrid-day-number 
{
    font-weight: 400;
}
.fc .fc-toolbar.fc-header-toolbar
{
    margin-bottom: calc(var(--font-size) * 1);
}
.fc .fc-toolbar-title
{
    font-size: calc(var(--font-size) * 1.8);
}
a.fc-col-header-cell-cushion
{
    font-size: calc(var(--font-size) * 1.2);
}
.fc-daygrid-day 
{
  position: relative;
} 
.fc .fc-button-primary
{
    background-color: var(--global-btn-niebieski-bg);
    border-color: var(--global-btn-niebieski-border);
    color: var(--global-btn-niebieski-tekst);
}
.fc .fc-button-primary:hover
{
    background-color: var(--global-btn-niebieski-bg-hover);
    border-color: var(--global-btn-niebieski-border-hover);
    color: var(--global-btn-niebieski-tekst-hover);
}
.fc-daygrid-day-events
{
    display: none;
}


.custom-overlay 
{
    position: absolute;
    width: 350px;
    max-height: 360px;
    background: var(--sekcja-aktualnosci-nakladka-bg);
    box-shadow: var(--sekcja-aktualnosci-nakladka-shadow);
    border: 1px solid var(--sekcja-aktualnosci-nakladka-border);
    border-radius: var(--global-border-radius);
    padding: 20px;
    z-index: 2;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.custom-overlay.show 
{
    opacity: 1;
    transform: scale(1);
}
.custom-overlay .overlay-inner
{
    max-height: 320px;
}
.custom-overlay .close-btn 
{
    position: absolute;
    top: 1px;
    right: 6px;
    cursor: pointer;
    font-family: cursive;
    font-weight: bold;
    font-size: 15px;
    color: #333;

}

@media(max-width: 999px) {
  
    .custom-overlay 
    {
        display: none;
    }
    .kalendarz_container
    {
        margin: 35px 0 20px 0;
        display: grid;
        grid-template-columns: 400px auto;
        gap: 30px;
    }
    #calendar-overlay
    {
        width: 100%;
        padding: 20px;
        border-radius: var(--global-border-radius);
        background: var(--global-bg-bialy);
        box-shadow: var(--global-shadow-box-light);
        box-sizing: border-box;
        z-index: 2;
    }
}
@media(max-width: 820px) {

    .kalendarz_container
    {
        grid-template-columns: repeat(1, 1fr);
    }
    #calendar
    {
        width: 100%;
        max-width: unset;
    }
    .fc .fc-daygrid-day-top
    {
        width: 30px;
        height: 30px;
    }
}

.overlay-inner
{
    height: 100%;
    display: flex;
    flex-direction: column;
}
.overlay-inner p
{
    font-size: calc(var(--font-size) * 1.5);
}
.overlay-inner ul li
{
    width: 100%;
    height: auto;
    margin-top: calc(var(--font-size) * 2);
}
.overlay-inner ul li:first-child
{
    margin: 0;
}
.overlay-inner ul li em
{
    font-family: "Poppins", sans-serif;
    font-size: calc(var(--font-size) * 1.5);
    font-weight: 400;
    font-style: normal;
    text-align: center;   
}
.overlay-inner ul li a
{
    width: 100%;
    height: auto;
    padding: 10px;
    display: block;
    border-radius: var(--global-border-radius);
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: calc(var(--font-size) * 1.4);
    font-weight: 400;
    color: var(--sekcja-aktualnosci-box-text);
}
.overlay-inner ul li a strong
{
    font-size: calc(var(--font-size) * 1.6);
    font-weight: 600;
}
.overlay-inner ul li a span
{
    text-transform: capitalize;
}

@media(max-width: 999px) {

    .overlay-inner .close-btn
    {
        display: none;
    }
}

.ul_box
{
    margin-top: calc(var(--font-size)* 2);
    display: block;
    position: relative;
    overflow-y: auto;
}
.ul_box ul
{
    height: 100%;
    display: block;
    overflow-y: auto;
}

.blog_zaladuj_wiecej_wrapper
{
    display: flex;
}
.blog_zaladuj_wiecej_wrapper .zaladuj_wiecej
{
    margin: 40px auto 0 auto;
    cursor: pointer;
}
