/* Treść frontend + wspólne style dla bloków używanych w Gutenbergu */

.entry-content {
    color: #1d2939;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content .wp-block-group {
    margin: 0 0 24px;
}

.entry-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.78;
    color: #1d2939;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content .wp-block-heading {
    font-family: 'Taviraj', serif;
    font-weight: 400;
    letter-spacing: 0;
    color: #1d2939;
}

.entry-content h2,
.entry-content h3,
.entry-content .wp-block-heading {
    margin: 40px 0 20px;
}

.entry-content h2 {
    font-size: 36px;
    line-height: 1.25;
}

.entry-content h3 {
    font-size: 30px;
    line-height: 1.33;
}

.entry-content h4 {
    font-size: 24px;
    line-height: 1.4;
    margin: 32px 0 16px;
}

.entry-content a {
    color: #185c50;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
    border-radius: 8px;
}

.entry-content figcaption {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
    margin-top: 10px;
}

.entry-content ul:not(.is-style-special-list),
.entry-content ol {
    padding-left: 24px;
}

.entry-content li + li {
    margin-top: 10px;
}

.entry-content .wp-block-list.is-style-special-list,
.entry-content ul.special-list,
.entry-content ul.is-style-special-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
}

@media (min-width: 992px) {
    .entry-content .wp-block-list.is-style-special-list,
    .entry-content ul.special-list,
    .entry-content ul.is-style-special-list {
        width: 83.3333333333%;
    }
}

.entry-content .wp-block-list.is-style-special-list li,
.entry-content ul.special-list li,
.entry-content ul.is-style-special-list li {
    position: relative;
    padding-left: 52px;
    margin-bottom: 0;
}

.entry-content .wp-block-list.is-style-special-list li:not(:last-child),
.entry-content ul.special-list li:not(:last-child),
.entry-content ul.is-style-special-list li:not(:last-child) {
    border-bottom: 1px solid #ffcc20;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.entry-content .wp-block-list.is-style-special-list li strong,
.entry-content ul.special-list li strong,
.entry-content ul.is-style-special-list li strong {
    font-weight: 700;
}

.entry-content .wp-block-list.is-style-special-list li::before,
.entry-content ul.special-list li::before,
.entry-content ul.is-style-special-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 29px;
    height: 29px;
    background-image: url("data:image/svg+xml,%3csvg%20width='29'%20height='29'%20viewBox='0%200%2029%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2191_2533)'%3e%3cpath%20d='M28.1699%203.96457C27.7433%203.53722%2027.0511%203.53648%2026.6244%203.96276L13.5125%2017.0401L8.78179%2011.902C8.37301%2011.4583%207.68188%2011.4295%207.23742%2011.8382C6.7933%2012.247%206.76487%2012.9385%207.17365%2013.3826L12.6749%2019.3571C12.8764%2019.5761%2013.1584%2019.7032%2013.4557%2019.7094C13.4636%2019.7098%2013.4713%2019.7098%2013.479%2019.7098C13.7679%2019.7098%2014.0459%2019.595%2014.2506%2019.391L28.1677%205.51035C28.5954%205.08413%2028.5961%204.39193%2028.1699%203.96457Z'%20fill='%23185C50'/%3e%3cpath%20d='M27.907%2013.407C27.3033%2013.407%2026.8141%2013.8963%2026.8141%2014.5C26.8141%2021.2902%2021.2902%2026.8141%2014.5%2026.8141C7.71015%2026.8141%202.18593%2021.2902%202.18593%2014.5C2.18593%207.71015%207.71015%202.18593%2014.5%202.18593C15.1037%202.18593%2015.593%201.69667%2015.593%201.09299C15.593%200.489262%2015.1037%200%2014.5%200C6.50461%200%200%206.50461%200%2014.5C0%2022.4951%206.50461%2029%2014.5%2029C22.4951%2029%2029%2022.4951%2029%2014.5C29%2013.8963%2028.5107%2013.407%2027.907%2013.407Z'%20fill='%23185C50'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2191_2533'%3e%3crect%20width='29'%20height='29'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.entry-content .wp-block-group.is-style-block-beige,
.entry-content .block-beige {
    position: relative;
    z-index: 1;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: 40px;
    background: transparent;
}

.entry-content .wp-block-group.is-style-block-beige:first-child,
.entry-content .block-beige:first-child {
    margin-top: 0;
}

@media (min-width: 992px) {
    .entry-content .wp-block-group.is-style-block-beige,
    .entry-content .block-beige {
        margin-top: 80px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.entry-content .wp-block-group.is-style-block-beige::before,
.entry-content .block-beige::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #fff4e5;
    z-index: -1;
}

@media (max-width: 991.98px) {
    .entry-content .wp-block-group.is-style-block-beige::before,
    .entry-content .block-beige::before {
        width: 100vw;
        left: 50%;
        transform: translate(-50%);
    }
}

@media (min-width: 992px) {
    .entry-content .wp-block-group.is-style-block-beige::before,
    .entry-content .block-beige::before {
        left: calc(-10% - var(--bs-gutter-x, 30px) * .6);
        width: calc(120% + var(--bs-gutter-x, 30px) * 1.2);
    }
}

.entry-content .wp-block-group.is-style-block-beige > *:last-child,
.entry-content .block-beige > *:last-child {
    margin-bottom: 0;
}

.entry-content .wp-block-gallery,
.entry-content .gallery {
    padding: 0;
    list-style: none;
    --wp--style--unstable-gallery-gap: 32px;
}

.entry-content .wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-left: 0;
    margin-bottom: 0;
}

.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
    max-width: none;
}

.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image::before {
    display: none;
}

.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image > a {
    display: block;
}

.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image > a img {
    display: block;
    flex: none !important;
    position: static;
    inset: auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 1.49;
    object-fit: cover;
    border-radius: 0;
}

.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image figcaption,
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image .wp-element-caption {
    font-family: 'Taviraj', serif;
    font-size: 20px;
    line-height: 30px;
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    padding: 0;
    margin-top: 16px;
    background: transparent;
    background-image: none;
    text-shadow: none;
    opacity: 1;
    color: #1d2939;
    text-align: left;
}

.entry-content .wp-block-gallery .blocks-gallery-grid,
.entry-content .gallery .blocks-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.entry-content .wp-block-gallery .blocks-gallery-item,
.entry-content .gallery .gallery-item {
    width: calc(50% - 16px);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.entry-content .wp-block-gallery .blocks-gallery-item figure,
.entry-content .gallery .gallery-item {
    margin: 0;
    width: 100%;
}

.entry-content .wp-block-gallery .blocks-gallery-item img,
.entry-content .gallery .gallery-item img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1.49;
    object-fit: cover;
    border-radius: 0;
}

.entry-content .wp-block-gallery .blocks-gallery-item figcaption,
.entry-content .wp-block-gallery .blocks-gallery-item .wp-element-caption,
.entry-content .gallery .gallery-item figcaption {
    font-family: 'Taviraj', serif;
    font-size: 20px;
    line-height: 30px;
    position: static;
    inset: auto;
    display: block;
    padding: 0;
    margin-top: 16px;
    background: transparent;
    background-image: none;
    text-shadow: none;
    opacity: 1;
    color: #1d2939;
    text-align: left;
}

@media (max-width: 991.98px) {
    .entry-content p {
        font-size: 16px;
        line-height: 1.75;
    }

    .entry-content h2 {
        font-size: 30px;
    }

    .entry-content h3 {
        font-size: 24px;
        line-height: 1.35;
    }

    .entry-content .wp-block-list.is-style-special-list li,
    .entry-content ul.special-list li,
    .entry-content ul.is-style-special-list li {
        padding-left: 52px;
    }

    .entry-content .wp-block-gallery,
    .entry-content .gallery {
        --wp--style--unstable-gallery-gap: 16px;
    }

    .entry-content .wp-block-gallery.has-nested-images {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .entry-content .wp-block-gallery .blocks-gallery-grid,
    .entry-content .gallery .blocks-gallery-grid {
        gap: 16px;
    }

    .entry-content .wp-block-gallery .blocks-gallery-item,
    .entry-content .gallery .gallery-item {
        width: 100%;
    }

    .entry-content .wp-block-gallery .blocks-gallery-item img,
    .entry-content .gallery .gallery-item img {
        aspect-ratio: auto;
    }

    .entry-content .wp-block-gallery .blocks-gallery-item figcaption,
    .entry-content .wp-block-gallery .blocks-gallery-item .wp-element-caption,
    .entry-content .gallery .gallery-item figcaption {
        font-size: 18px;
        line-height: 26px;
    }

    .entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image figcaption,
    .entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image .wp-element-caption {
        font-size: 18px;
        line-height: 26px;
    }
}