/*
Theme Name: Twenty Twenty-Four - Jablani
Template: twentytwentyfour
*/
body {
    --wp--style--global--content-size: 768px !important;
}

/* //////// HP SLIDER //////////*/

.hp-slider img {
    width: 100%;
    height: auto;
}
.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
    bottom: 10px !important;
    top: auto !important;
}
.hp-slider .cb-pagination-bullet {
    border: 3px solid white;
}
.wp-block-cb-carousel-v2[data-cb-pagination="true"] .swiper-horizontal {
    margin-bottom: 0 !important;
}

/* //////// NAVIGATION ////////// */

.wp-block-navigation__responsive-container {
    background-color: rgb(177, 197, 164) !important;
}

.wp-block-navigation__responsive-container ul {
    max-width: 100%;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    text-overflow: ellipsis;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item {
    color: seagreen !important;
}

.wp-block-navigation:not(.has-backgroud) .wp-block-navigation__submenu-container {
    background-color: rgb(177, 197, 164) !important;
    min-width: 450px !important;
    position: absolute;
    z-index: 100;
    padding-top: 17px;
    border: 0 !important;

}
.wp-block-navigation:not(.has-backgroud) .wp-block-navigation__submenu-container a:hover {
    text-decoration: none !important;
    background-color: rgba(255, 255, 255, 0.65); !important;
}
.wp-block-navigation .wp-block-navigation-item {
    margin: 5px 0;
    line-height: 1.2 !important;
}

@media (max-width: 767px) {
    .wp-block-navigation:not(.has-backgroud) .wp-block-navigation__submenu-container {
        min-width: 0 !important;
    }

    .wp-block-site-logo.is-default-size img { width: 60px; }

    form.wp-block-search { display: none; }

    header .wp-block-spacer { display: none; }

    header nav { margin-top: 0; }
}


header .wp-block-cover {
    overflow: visible;
}

.donatori-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 768px !important;
}

.donatori-row figure {
    flex-grow: 1 !important;
    justify-content: center;
    display: flex;
}

.donatori-row.align-end { align-items: flex-end; }
.donatori-row.align-start { align-items: flex-start; }
.donatori-row.around{ justify-content: space-around; }

/* BLOCK OVERRIDES */

a:where(:not(.wp-element-button)) {
    color: #0000cc;
    font-weight: 500;
}

h2 a:where(:not(.wp-element-button)),
h1 a:where(:not(.wp-element-button)),
h3 a:where(:not(.wp-element-button)),
.wp-block-post-excerpt__more-link,
a.wp-block-query-pagination-previous,
a.wp-block-query-pagination-next,
.wp-block-post-navigation-link a,
footer a {
    color: inherit;
}



footer {
    margin-top: 30px !important;
}

:root :where(.wp-block-gallery) {
    margin-bottom: 40px !important;
    margin-top: 40px !important;
}

.wp-block-latest-posts__post-title { /* title on HP aggr */
    font-family: var(--wp--preset--font-family--heading);
    font-size: 26px;
    text-decoration: none;
}
.wp-block-latest-posts__post-title:hover { text-decoration: underline; }

.wp-block-latest-posts.wp-block-latest-posts__list li { /* item in HP aggr */
    margin-bottom: 50px;
}

h1.wp-block-post-title { /* actual post title */
}

.wp-block-latest-posts__featured-image.alignleft img {
    width: 150px !important;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
}
.esab__body.esab__active .wp-block-image.alignright { /* Easy Accordion item */
    float: right;
    margin-left: var(--wp--preset--spacing--10);
}
.esab__body.esab__active .wp-block-image.alignleft { /* Easy Accordion item */
    float: left;
    margin-right: var(--wp--preset--spacing--10);
}

.slick-arrow.slick-next,
.slick-arrow.slick-prev {
    width: 40px;
    height: 40px;
}
.slick-arrow.slick-next::before,
.slick-arrow.slick-prev::before {
    font-size: 40px;
}
.slick-next {
    right: -45px;
}
.slick-prev {
    left: -45px;
}
.slick-dots li button::before {
    font-size: 16px;
}

.cb-button-prev.swiper-button-prev,
.cb-button-next.swiper-button-next {
    width: 40px;
    height: 40px;
    background-color: #D8613C;
    color: white;
    border-radius: 50%;
}
.cb-button-prev.swiper-button-prev { left: -50px; }
.cb-button-next.swiper-button-next { right: -50px; }


/* ///////////// BLOCK EDITOR CUSTOM STYLES  ///////////////// */

.is-style-two-columns {
    columns: 2 200px;
}

.is-style-three-columns {
    columns: 3 200px;
}

.footer-data a {
    text-decoration: none !important;
}
.footer-data a:hover {
    text-decoration: underline !important;
}

@media (max-width: 1024px) {
    .is-style-two-columns {
        columns: unset;
    }
    .is-style-three-columns {
        columns: unset;
    }
}

/* ///////////// FB BLOCKS ////////////// */
.facebook-blocks {
    display: flex;
    justify-content: space-between;
}

#fb-grupa-iframe {
    width: 269px;
    height: 500px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}