/* Custom overrides — Divhunt export hardcodes section min-heights from the builder canvas */

/* Footer wrapper: remove huge empty space under the footer */
body .t6705 {
    min-height: 0 !important;
}

/* Empty CMS article blocks above footer (placeholders without content) */
body .t7418,
body .t7419 {
    min-height: 0 !important;
}

/* Tematy dropdown: 2 columns like live opony.media */
body .t4112 {
    grid-template-columns: 1fr 1fr;
}

body .t4113 {
    grid-template-columns: 1fr;
}

/* Puste sloty banerów — zero wysokości / marginesów (TOP, A1–A5, KO, …) */
#banner-top-root:not(:has(*)),
#banner-a1-root:not(:has(*)),
#banner-a2-root:not(:has(*)),
#banner-a3-root:not(:has(*)),
#banner-a4-root:not(:has(*)),
#banner-a5-root:not(:has(*)),
#banner-ko-root:not(:has(*)),
[id^="banner-"][id$="-root"]:not(:has(*)),
body .t7017:not(:has([dh-source])),
body component.t7018:not(:has([dh-source])),
body .t7018:not(:has([dh-source])) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

/* Sekcja A3 bez banera — nie zostawiaj pustego wrappera */
section.t6276:not(:has([dh-source], .t5433, img)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Baner TOP (collection.547) — nad menu, 1920×100 / tablet / mobile */
body .banner-top {
    position: relative;
    width: 100%;
    background: #fff;
    line-height: 0;
}

body .banner-top__link {
    display: block;
    width: 100%;
}

body .banner-top__img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    display: block;
}

body .banner-top__img--tablet,
body .banner-top__img--mobile {
    display: none;
}

body .banner-top__close {
    position: absolute;
    top: 4px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

body .banner-top__label {
    display: block;
    text-align: center;
    color: #bebebd;
    font-size: 0.575rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0 0;
    line-height: 1.2;
    background: #fff;
}

@media (max-width: 991px) {
    body .banner-top__img--desktop {
        display: none;
    }

    body .banner-top__img--tablet {
        display: block;
        max-height: 90px;
    }
}

@media (max-width: 639px) {
    body .banner-top__img--tablet {
        display: none;
    }

    body .banner-top__img--mobile {
        display: block;
        max-height: 90px;
    }
}

/* Scroll to top — widoczny dopiero po 400px scrolla */
body .t4847 {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body .t4847.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hashtag + nazwa (np. #Pronar Wheels) — wspólna oś pionowa */
body .t7294 {
    display: flex;
    align-items: center;
    column-gap: 0.15rem;
}

body .t7294 .t8439,
body .t7294 .t7119 {
    margin: 0;
    line-height: 1.2;
}

body .t7294 .t8439 {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Horizontal article tiles: cover fills full card height; fixed share of card width
   (same width on every card — not derived from per-card height).
   - categories / artykuly: .t6828 / .t6829 / .t6830
   - autorzy: .t6850 / .t6851 / .t6852
   - tagi: .t6953 / .t6978 / .t6979
   - wydarzenia: .t5626 / .t5627 / .t5628
   - wydarzenia/{slug}: .t5863 / .t5864 / .t5865
   - szukaj: .t6921 / .t6946 / .t6947
   - strefy: .t7244 / .t7269 / .t7270
   (przeczytaj również .t6159 — desktop poziomo, mobile pionowo) */
body .t6828,
body .t6850,
body .t6953,
body .t5626,
body .t5863,
body .t6921,
body .t7244 {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    grid-template-columns: unset;
}

body .t6829,
body .t6851,
body .t6978,
body .t5627,
body .t5864,
body .t6946,
body .t7269 {
    position: relative;
    flex: 0 0 42%;
    align-self: stretch;
    width: 42% !important;
    max-width: 22rem;
    max-height: none !important;
    min-height: 0;
    overflow: hidden;
    border-radius: 0.5rem 0 0 0.5rem;
}

body .t6830,
body .t6852,
body .t6979,
body .t5628,
body .t5865,
body .t6947,
body .t7270 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: auto;
}

body .t6831,
body .t6853,
body .t6954,
body .t5629,
body .t5866,
body .t6922,
body .t7245 {
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    grid-column: unset;
}

@media screen and (max-width: 599px) {
    body .t6828,
    body .t6850,
    body .t6953,
    body .t5626,
    body .t5863,
    body .t6921,
    body .t7244 {
        flex-direction: column;
        height: auto !important;
        align-items: stretch;
    }

    body .t6829,
    body .t6851,
    body .t6978,
    body .t5627,
    body .t5864,
    body .t6946,
    body .t7269 {
        width: 100% !important;
        flex: 0 0 auto !important;
        align-self: auto !important;
        height: auto !important;
        aspect-ratio: 3 / 2;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    body .t6830,
    body .t6852,
    body .t6979,
    body .t5628,
    body .t5865,
    body .t6947,
    body .t7270 {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body .t6831,
    body .t6853,
    body .t6954,
    body .t5629,
    body .t5866,
    body .t6922,
    body .t7245 {
        flex: 0 1 auto !important;
        width: 100%;
        min-width: 0;
    }
}

/* Date bullet — hide when author is missing in horizontal cards */
body .t6171:not(:has(.t6172)) .t6179,
body .t6969:not(:has(.t6972)) .t6977,
body .t6854:not(:has(a)) .t6862,
body .t6912:not(:has(.t6915)) .t6920,
/* Featured / side overlays with empty or no author */
body .t5664 .t5677,
body .t5841:not(:has(img[src]:not([src=""]))) .t5844,
body .t7215:not(:has(img[src]:not([src=""]))) .t7218 {
    display: none;
}

body .t5845:has(img[src=""]),
body .t7219:has(img[src=""]) {
    display: none;
}

/* Article left-column „Polecane produkty” — match Divhunt (2-col, image → logo → title → CTA) */
body .t5492 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
}

body .t5493 {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    min-width: 0;
    box-sizing: border-box;
}

body .t5493 .t5494 {
    width: 100%;
    min-width: 0;
}

body .t5493 .t5495 {
    width: 100%;
    min-width: 0;
}

body .t5493 .t5496 {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

body .t5493 .t7043 {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

body .t5493 .t7044 {
    height: 2rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

body .t5493 .t5498 {
    text-align: center;
    margin: 0;
}

body .t5493 .t5499 {
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: #575755;
    text-align: center;
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    body .t5492 {
        flex-direction: column;
    }

    body .t5493 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* /szukaj — listing width = left column of category layout (2/3), no sidebar */
body .om-search-layout {
    grid-template-columns: 1fr 1fr 1fr;
}

body .om-search-layout > .t8488 {
    grid-column: span 2;
}

/* Space under „Znaleziono N wyników…” before the result cards */
body .t3306 > .t8485 {
    padding-top: 2.5rem;
}

@media screen and (max-width: 991px) {
    body .om-search-layout {
        grid-template-columns: 1fr;
    }

    body .om-search-layout > .t8488 {
        grid-column: span 1;
    }
}

/* /szukaj pagination — same look as Divhunt paginationjs on listing pages */
#om-search-pagination {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

#om-search-pagination .paginationjs .paginationjs-pages ul {
    gap: 1px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    background: #eaeaea;
    border: 1px solid #eaeaea;
    list-style: none;
    margin: 0;
    padding: 0;
}

#om-search-pagination .paginationjs .paginationjs-pages li {
    border: none !important;
}

#om-search-pagination .paginationjs .paginationjs-pages li > a {
    display: block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    padding: 0 0.5rem;
    text-align: center;
    text-decoration: none;
    background: transparent;
    color: #9e9e9d;
    font-weight: 600;
}

#om-search-pagination .paginationjs .paginationjs-pages li.active > a,
#om-search-pagination .paginationjs .paginationjs-pages li > a:hover {
    background: #fbeeed;
    color: #db504a;
}

#om-search-pagination .paginationjs .paginationjs-pages li.paginationjs-next > a,
#om-search-pagination .paginationjs .paginationjs-pages li.paginationjs-prev > a {
    font-size: 18px;
    font-weight: 400;
}

/* Wide B1/B2 banners on category pages (t7007 desktop / t7006 mobile —
   visibility comes from main.css + responsive.css — do not force display) */
body .t7005 {
    width: 100%;
}

body .t7007,
body .t7006 {
    width: 100%;
    height: auto;
}

/* B1/B2: main.css ma padding-bottom: 1rem przy padding-top: 2.5rem —
   wyrównanie odstępu pod banerem (szczególnie B2 → lista/sidebar) */
body .t7002 {
    padding-bottom: 2.5rem;
}

/* Po B2 sekcja z listą ma ten sam odstęp co featured (t3209) nad B2 */
body .t7002 + .t8485 {
    padding-top: 2.5rem;
}

/* /wydarzenia — odstęp pod przyciskami Polska/Świat (t4017)
   jak nad nimi: header pb 2.5 + filters pt 2.5 = 5rem → pb 2.5 + lista pt 2.5 */
body .t4017 + .t8485 {
    padding-top: 2.5rem;
}

/* /wydarzenia/{slug} — header kategorii bez paddingu w main.css */
body .t4034 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* /firmy/{slug} — FAQ panel toggle + gallery grid reuse */
.om-faq-panel[hidden] {
    display: none !important;
}

/* Article gallery under FAQ — match FAQ heading rhythm */
body .om-article-gallery {
    width: 100%;
    margin-top: 0.5rem;
}

body .om-article-gallery > .t7691 {
    margin-bottom: 0.25rem;
}

body .t7534 .t7535,
body .t7534 .om-gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

body .t7534 .om-gallery-media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

body .t7534 .t7536 {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 220ms ease;
}

body .t7534 .om-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(10, 9, 3, 0.45);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

body .t7534 .om-gallery-zoom-icon {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

body .t7534 .om-gallery-trigger:hover .om-gallery-overlay,
body .t7534 .om-gallery-trigger:focus-visible .om-gallery-overlay {
    opacity: 1;
}

body .t7534 .om-gallery-trigger:hover .t7536,
body .t7534 .om-gallery-trigger:focus-visible .t7536 {
    transform: scale(1.02);
}

body .t7534 .om-gallery-trigger:focus-visible {
    outline: 2px solid #db504a;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* /firmy/{slug} — Autostrefa-style gallery lightbox */
.article-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    background: rgba(10, 9, 3, 0.94);
}

.article-gallery-lightbox__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 1.5rem);
    padding: 0.65rem 0 0.5rem;
    overflow: auto;
}

.article-gallery-lightbox__heading {
    position: relative;
    z-index: 2;
    margin: 0 4.5rem 0.85rem;
    max-width: none;
    color: #fff;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.01rem;
    text-align: center;
}

.article-gallery-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 210;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 160ms ease;
}

.article-gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.article-gallery-lightbox__close[data-tooltip]::after,
.article-gallery-lightbox__nav[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 4;
    padding: 0.35rem 0.55rem;
    border-radius: 0.375rem;
    background: rgba(10, 9, 3, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.article-gallery-lightbox__close[data-tooltip]::after {
    top: 50%;
    right: calc(100% + 0.55rem);
    transform: translateY(-50%);
}

.article-gallery-lightbox__nav[data-tooltip]::after {
    top: 50%;
    transform: translateY(-50%);
}

.article-gallery-lightbox__nav--prev[data-tooltip]::after {
    left: calc(100% + 0.55rem);
    right: auto;
}

.article-gallery-lightbox__nav--next[data-tooltip]::after {
    right: calc(100% + 0.55rem);
    left: auto;
}

.article-gallery-lightbox__close[data-tooltip]:hover::after,
.article-gallery-lightbox__close[data-tooltip]:focus-visible::after,
.article-gallery-lightbox__nav[data-tooltip]:hover::after,
.article-gallery-lightbox__nav[data-tooltip]:focus-visible::after {
    opacity: 1;
}

@media (hover: none) {
    .article-gallery-lightbox__close[data-tooltip]::after,
    .article-gallery-lightbox__nav[data-tooltip]::after {
        display: none;
    }
}

.article-gallery-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.article-gallery-lightbox__main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: calc(100% - 7.5rem);
    margin: 0 auto;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    line-height: 0;
}

.article-gallery-lightbox__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.article-gallery-lightbox__main--loading .article-gallery-lightbox__media {
    min-width: min(28rem, 80vw);
    min-height: min(18rem, 42vh);
}

.article-gallery-lightbox__spinner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    pointer-events: none;
}

.article-gallery-lightbox__spinner-ring {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    animation: om-gallery-lightbox-spin 0.7s linear infinite;
}

@keyframes om-gallery-lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.article-gallery-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.article-gallery-lightbox__image--ready {
    opacity: 1;
}

.article-gallery-lightbox__counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    z-index: 2;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 9, 3, 0.55);
    color: #fff;
    font-size: 0.925rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    transform: translateX(-50%);
    pointer-events: none;
}

.article-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease;
}

.article-gallery-lightbox__nav--prev {
    left: 0.75rem;
}

.article-gallery-lightbox__nav--next {
    right: 0.75rem;
}

.article-gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.article-gallery-lightbox__thumbs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin-top: 1.25rem;
    padding: 0 0.75rem 0.25rem;
    overflow-x: auto;
}

.article-gallery-lightbox__thumb {
    flex: 0 0 auto;
    width: 5.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 160ms ease, border-color 160ms ease;
}

.article-gallery-lightbox__thumb:hover,
.article-gallery-lightbox__thumb--active {
    opacity: 1;
    border-color: #db504a;
}

.article-gallery-lightbox__thumb-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0.25rem;
}

@media (max-width: 767px) {
    .article-gallery-lightbox {
        padding: 0.5rem 0 0.75rem;
    }

    .article-gallery-lightbox__close {
        top: 0.65rem;
        right: 0.65rem;
    }

    .article-gallery-lightbox__heading {
        margin: 0 3.25rem 0.75rem;
        padding: 0 0.65rem;
        font-size: 0.85rem;
    }

    .article-gallery-lightbox__main {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .article-gallery-lightbox__image {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 12rem);
        object-fit: contain;
        border-radius: 0;
    }

    .article-gallery-lightbox__main--loading .article-gallery-lightbox__media {
        min-width: 100%;
        min-height: min(16rem, 40vh);
    }

    .article-gallery-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        background: rgba(10, 9, 3, 0.45);
    }

    .article-gallery-lightbox__nav--prev {
        left: 0.5rem;
    }

    .article-gallery-lightbox__nav--next {
        right: 0.5rem;
    }

    .article-gallery-lightbox__thumb {
        width: 4.5rem;
    }
}

/* KO/MKO banner on /produkty (t7016 desktop / t7015 mobile) */
body .t7014 {
    width: 100%;
}

body .t7016,
body .t7015 {
    width: 100%;
    height: auto;
}

/* Article in-content banners C1–C4 — match C1 column layout on mobile */
body .t5507 {
    width: 100%;
    max-width: 41.5rem;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 0;
    overflow: visible;
}

body .t5507 > a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

body .t5507 .t5510,
body .t5507 .t5511,
body .t5507 .t5516 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 1rem !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

/* Code Sample / iframe embeds from CMS (Facebook Reels, YouTube, …)
   Override Divhunt’s 16:9 padding hack (.dh-rich-text-embed { height:0; padding-bottom:56.25% }
   + iframe { position:absolute; left:0; width/height:100% }) which crops vertical Reels
   and pins the player to the left. */
body .dh-rich-text-embed,
body .cms-video-embed {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: auto !important;
    padding: 0 !important;
    margin: 1.5rem auto;
    overflow: visible;
    border-radius: 0.5rem;
}

body .dh-rich-text-embed > iframe,
body .cms-video-embed > iframe,
body .dh-rich-text-embed iframe,
body .cms-video-embed iframe {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Embeds without size attrs — default 16:9 full column width */
body .dh-rich-text-embed iframe:not([width]):not([height]),
body .cms-video-embed iframe:not([width]):not([height]) {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* YouTube / landscape players — match in-article image width */
body .dh-rich-text-embed iframe[src*="youtube"],
body .dh-rich-text-embed iframe[src*="youtu.be"],
body .cms-video-embed iframe[src*="youtube"],
body .cms-video-embed iframe[src*="youtu.be"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

/*
 * Article grid: don't stretch the left column to sidebar height
 * (that created a huge white gap under tags / before share + read-also).
 */
body .t2822 {
    align-items: start;
}

body .t2825 {
    justify-content: flex-start;
}

body .t6154 {
    justify-content: flex-start;
}

/*
 * Article body images — full width of the content column.
 * Divhunt sets `.dh-rich-text-image > img:not(.stretched) { width: auto }`,
 * which leaves photos narrower than the text / looks “cut” in the field.
 */
body .rich-text-dh-styling,
body .rich-text-dh-styling-2,
body .rich-text-dh-styling-3,
body .rich-text-dh-styling-interview {
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
}

body .rich-text-dh-styling figure,
body .rich-text-dh-styling .dh-rich-text-image,
body .rich-text-dh-styling .cms-block.gallery,
body .rich-text-dh-styling .cms-block.image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body .rich-text-dh-styling figure > img,
body .rich-text-dh-styling .dh-rich-text-image > img,
body .rich-text-dh-styling .cms-block > img,
body .rich-text-dh-styling img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body .rich-text-dh-styling figcaption,
body .rich-text-dh-styling-2 figcaption,
body .rich-text-dh-styling-3 figcaption,
body .rich-text-dh-styling-interview figcaption,
body .rich-text-dh-styling .cms-block figcaption,
body .rich-text-dh-styling figure > figcaption {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    /* Clear gap between photo and caption (was flush / ~0) */
    margin-top: 0.875rem;
    padding-top: 0.125rem;
}

/* Hero / cover in article header — full column, no crop */
body .t3106 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

/* Bottom gallery tiles (button field) — fill the trigger, no crop */
body .t7534 .om-gallery-media,
body .t7534 .om-gallery-trigger {
    width: 100%;
}

body .t7534 .t7536 {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media screen and (max-width: 767px) {
    body .t2822 {
        grid-template-columns: 1fr !important;
    }

    body .t2823 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    body .t2826,
    body .t4062,
    body .rich-text-dh-styling,
    body .rich-text-dh-styling-2,
    body .rich-text-dh-styling-3,
    body .rich-text-dh-styling-interview {
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
    }

    body .t6153,
    body .t2825 > .t6153 {
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }
}

/*
 * Przeczytaj również under the article body, full left-column width.
 * Lives inside .t2825 (same column as the article).
 */
body .t2825 > .t6153 {
    width: 100%;
    max-width: 100%;
    grid-column: auto;
    margin-top: 2.5rem;
    flex-grow: 0;
}

/* C2/C3/C4 — same box as C1 (max 41.5rem, centered, no side bleed/margins) */
body .t6157 > .t5507 {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 41.5rem;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Divhunt bleed at ≤767px — override; keep C1/C2 identical */
@media screen and (max-width: 767px) {
    body .t5507,
    body .t6157 > .t5507 {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        align-self: center;
        justify-self: center;
        width: 100% !important;
        max-width: 41.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
        border-radius: 0;
        overflow: visible;
    }

    body .t5508 {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    body .t5507 > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 1rem !important;
        overflow: hidden !important;
    }

    body .t5507 .t5510,
    body .t5507 .t5511,
    body .t5507 .t5516 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 1rem !important;
        border-top-left-radius: 1rem !important;
        border-top-right-radius: 1rem !important;
        border-bottom-left-radius: 1rem !important;
        border-bottom-right-radius: 1rem !important;
        object-fit: contain;
    }
}

/* Przeczytaj również — desktop: karta pozioma (okładka | treść), mobile: pionowa */
body .t6157 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 1.25rem;
}

body .t6157 > .t6158 {
    grid-column: 1 / -1 !important;
    width: 100%;
    height: auto !important;
    display: block;
}

body .t6157 .t6159 {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    grid-template-columns: unset !important;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0px 10px 40px 3px rgba(0, 0, 0, 0.08);
}

body .t6157 .t6160 {
    position: relative !important;
    order: 0;
    flex: 0 0 42% !important;
    align-self: stretch !important;
    width: 42% !important;
    max-width: 22rem;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0.5rem 0 0 0.5rem !important;
}

body .t6157 .t6161 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

body .t6157 .t6162 {
    flex: 1 1 0 !important;
    align-self: stretch !important;
    width: auto !important;
    min-width: 0;
    grid-column: unset !important;
}

/* Autor + data pod kartą — poziomo na desktopie */
body .t6157 .t6171 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media screen and (max-width: 599px) {
    body .t6157 .t6159 {
        flex-direction: column !important;
        height: auto !important;
        align-items: stretch !important;
    }

    body .t6157 .t6160 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 3 / 2;
        border-radius: 0.5rem 0.5rem 0 0 !important;
    }

    body .t6157 .t6162 {
        flex: 0 1 auto !important;
        width: 100% !important;
    }

    body .t6157 .t6171 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/*
 * Mobile article: long breadcrumbs must swipe horizontally inside their
 * own strip — never expand the page width (Divhunt ≤480px sets
 * .t5798 { overflow: visible }, which pushed the whole article off-screen).
 */
@media screen and (max-width: 767px) {
    html,
    body {
        overflow-x: clip;
        max-width: 100%;
    }

    #dh-website,
    #dh-website > main,
    body .dh-body,
    body .t2820,
    body .t2821,
    body .t2822,
    body .t2823,
    body .t2824,
    body .t3103,
    body .t3107 {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Scroll container for the crumb trail */
    body .t5798 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    body .t5793 {
        overflow: visible !important;
        max-width: 100%;
    }

    /* Inner row grows with title text; parent clips + scrolls */
    body .t5794 {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center;
        width: max-content !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body .t5795,
    body .t5796,
    body .t5797 {
        flex-shrink: 0;
        white-space: nowrap;
    }

    body .t5797 {
        min-width: max-content;
    }
}

