/* Inline marks z Lexical (strong/em/…) — parent .t2827 ma font-weight:400,
   więc bolder bywa niewidoczne przy części fontów; wymuś wyraźne wagi. */
body .rich-text-dh-styling strong,
body .rich-text-dh-styling b,
body .rich-text-dh-styling-2 strong,
body .rich-text-dh-styling-2 b,
body .rich-text-dh-styling-3 strong,
body .rich-text-dh-styling-3 b,
body .t2827 strong,
body .t2827 b,
body .t7721 strong,
body .t7721 b,
body .dh-rich-text strong,
body .dh-rich-text b {
    font-weight: 700 !important;
    font-synthesis: weight !important;
}

body .rich-text-dh-styling em,
body .rich-text-dh-styling i,
body .t2827 em,
body .t2827 i,
body .t7721 em,
body .t7721 i {
    font-style: italic !important;
}

body .rich-text-dh-styling u,
body .t2827 u,
body .t7721 u {
    text-decoration: underline;
}

body .rich-text-dh-styling s,
body .t2827 s,
body .t7721 s {
    text-decoration: line-through;
}

body .rich-text-dh-styling code,
body .t2827 code,
body .t7721 code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

/* 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;
}

/*
 * Slot A5 — te same wymiary wrappera co A4 (1200×400).
 * Divhunt: A5 miał max-height 200px (jak A1) i mobile już od 991px.
 */
body .t6786 {
    max-height: 400px;
}

@media screen and (max-width: 991px) {
    body .t6786 {
        display: inline;
    }

    body .t6787 {
        display: none;
    }
}

@media screen and (max-width: 599px) {
    body .t6786 {
        display: none;
    }

    body .t6787 {
        width: 100%;
        display: inline;
        aspect-ratio: auto;
        object-fit: unset;
    }
}

/* 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(*)),
#banner-top-root[hidden],
#banner-a1-root[hidden],
#banner-a2-root[hidden],
#banner-a3-root[hidden],
#banner-a4-root[hidden],
#banner-a5-root[hidden],
#banner-ko-root[hidden],
[id^="banner-"][id$="-root"]:not(:has(*)),
[id^="banner-"][id$="-root"][hidden],
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;
}

/*
 * Bez banera A1: ten sam odstęp menu → sekcja hashtagów
 * (hashtag `.t7115` ma padding-top: 2.5rem; A1 `.t5427` też 2.5rem).
 */
#banner-a1-root:not(:has(*)) + .t7115,
#banner-a1-root[hidden] + .t7115 {
    margin-top: 2.5rem;
}

/* Hashtag homepage: jasnozielone tło analogiczne do opony.media (brand-50 @ 50%) */
body .t7116 {
    background: color-mix(in srgb, var(--brand-1st-50) 50%, transparent);
}

/* Hashtag menu (header pill): mint + green at rest, solid green + white text on hover */
body a.t4414 {
    background: var(--brand-1st-50, #ebfaf3);
    transition: background 200ms linear;
}
body a.t4414 .t4415 {
    color: var(--brand-1st-500, #09c269);
    transition: color 200ms linear;
}
body a.t4414:hover {
    background: var(--brand-1st-500, #09c269);
}
body a.t4414:hover .t4415 {
    color: #fff;
}

/* Tags / countries listing buttons: mint hover, not leftover red */
body .t3958:hover #tag-button,
body .t3958:hover a.t3946,
body a.t3946:hover {
    background: var(--brand-1st-50, #ebfaf3);
    transition: background 200ms linear;
}

/* Region / Categories dropdowns: 2 columns, like the chrome mock */
body .t4112,
body .t4399 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
}
body .t4113,
body .t4400 {
    display: block;
    grid-template-columns: none;
}
body .t4397 {
    min-width: 550px;
}
body .t4114,
body .t4401 {
    width: 100%;
}

/* Region dropdown icons — Divhunt hides .t4405 */
body .t4405 {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
body .t4115 {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
/* Header region tiles (Africa…World) — icon above label */
body .t4544 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    column-gap: 1rem;
    row-gap: 1rem;
    grid-template-columns: none;
}
body .t4544 > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 0.5rem;
    column-gap: 0;
    min-width: 7.75rem;
    background: #fff;
    box-shadow: 0px 10px 40px 0px rgba(45, 45, 42, 0.04);
    border-radius: 0.5rem;
    padding: 1.15rem 1.35rem 0.95rem;
}
body .t4544 > a:hover {
    box-shadow: 0px 10px 40px 0px rgba(45, 45, 42, 0.15);
}
body .t4544 > a img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}
body .t4544 > a p {
    color: #666668;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

@media screen and (max-width: 991px) {
    body .t4539,
    body .t4842 {
        min-width: 0;
        max-width: 100%;
    }
    body .t4544 {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        scrollbar-width: none;
    }
    body .t4544::-webkit-scrollbar {
        display: none;
    }
    body .t4544 > a {
        flex-shrink: 0;
    }

    /* Belka 5 losowych tagów z kolekcji tagi witryny — widoczna i przesuwana na mobile */
    body .t4129,
    body .t4131 {
        display: flex !important;
        min-width: 0;
        max-width: 100%;
    }
    body .t4130 {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    body .t4132 {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        min-width: 0;
        max-width: 100%;
        scrollbar-width: none;
    }
    body .t4132::-webkit-scrollbar {
        display: none;
    }
    body .t4133 {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Footer: Regions heading like Categories */
body a.t4419 {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    column-gap: 0;
    align-self: flex-start;
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}
body a.t4419:hover {
    background: transparent !important;
    color: inherit;
}
body .t4420 {
    color: inherit !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.5em;
}
body .t4418 {
    display: none !important;
}

/* Desktop nav: Homepage, Regions, Categories, Events, Countries, Companies, Contact */
body .t4084 {
    display: flex;
    align-items: center;
    column-gap: 1.25rem;
}
body .t4084 > a.t4106 { order: 1; }
body .t4084 > .t4394 { order: 2; }
body .t4084 > .t4107 { order: 3; }
body .t4084 > a.tm-nav-events { order: 4; }
body .t4084 > a.t4393:not(.tm-nav-events) { order: 5; }
body .t4084 > a.t7680 { order: 6; }
body .t4084 > a.t4152 { order: 7; }
body .t4084 > .t4085 { order: 99; }

/* Hamburger: same sequence after logo */
body .t4323 {
    flex-direction: column;
}
body .t4323 > .t4343 { order: 2; }
body .t4323 > .t4324 { order: 3; }
body .t4323 > .tm-nav-events-mobile { order: 4; }
body .t4323 > .tm-nav-countries-mobile { order: 5; }
body .t4323 > .t7666:not(.tm-nav-events-mobile):not(.tm-nav-countries-mobile) { order: 6; }
body .t4323 > .t7058 { order: 7; }
body .t4323 > .t5390 { order: 8; }
body .t4323 > .t7068 { order: 9; }
body .t4323 > .t4333 { order: 99; }
body .t3411,
body .t3415 {
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}
body .t3412,
body .t3416 {
    width: auto;
    max-width: 100%;
    flex: 1 1 auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
    grid-template-columns: none !important;
    grid-template-rows: none;
    column-gap: 1rem;
    row-gap: 0;
    white-space: nowrap;
    overflow-x: auto;
}
body .t3412 > a,
body .t3416 > a {
    white-space: nowrap;
    flex-shrink: 0;
}

body .t4114:hover,
body .t4401:hover,
body .t4097:hover,
body .t4091:hover {
    color: var(--brand-1st-500, #09c269);
    background: var(--brand-1st-50, #ebfaf3);
}
body .t4114:hover .t4118,
body .t4401:hover .t4404,
body .t4097:hover .t4100,
body .t4091:hover .t4094 {
    color: var(--brand-1st-500, #09c269);
}

/* Mobile accordion submenu items */
body .t4330:hover,
body .t4346:hover,
body .t4336:hover,
body .t5397:hover {
    color: var(--brand-1st-500, #09c269);
}

/*
 * Bez banera B1: odstęp menu → breadcrumbs jak padding-top B1 (.t7002 = 2.5rem).
 * Gdy B1 jest, stoi między .t3113 a treścią — ta reguła nie wchodzi.
 */
body .t3113 + .t3209,
body .t3113 + .t2820,
body .t3113 + section.t2820 {
    padding-top: 2.5rem;
}

/* Strefy: pusty wrapper B1 nie daje odstępu */
body component.t7165:not(:has([dh-source], .t7002)),
body .t7165:not(:has([dh-source], .t7002)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

body component.t7165:not(:has([dh-source], .t7002)) + .t7136,
body .t7165:not(:has([dh-source], .t7002)) + .t7136,
body .t3113 + .t7136 {
    padding-top: 2.5rem;
}

/* 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__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
   (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 !important;
    flex: 0 0 42% !important;
    align-self: stretch !important;
    width: 42% !important;
    max-width: 22rem;
    max-height: none !important;
    min-height: 10rem !important;
    height: auto !important;
    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 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    aspect-ratio: auto !important;
}

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” — 2 cols: copy+CTA | image */
body .t5492 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

body .t5493 {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: min(100%, 16rem);
    box-sizing: border-box;
}

body .t5493 .t5494,
body .t5493 .t5495 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

body .t5493 .t5497 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    row-gap: 0.5rem;
}

body .t5493 .t5480 {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

body .t5493 .t5496 {
    width: 8.5rem;
    height: 8.5rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

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

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

body .t5493 .t5498,
body .t5493 .t6224 {
    text-align: left;
    margin: 0;
}

body .t5493 .t6224 {
    color: #575755;
}

body .t5493 .t5477 {
    width: 100%;
    margin-top: auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
}

body .t5493 .t5478 {
    width: 100%;
    text-align: center;
}

body .t5493 .t5499 {
    display: none;
}

body .t5473 {
    margin-bottom: 1.5rem;
}

body .t5473 .t5500 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

body .t5473 .t5481 {
    width: 100%;
    max-width: 100%;
    height: 157px;
    object-fit: contain;
    object-position: center;
}

@media screen and (max-width: 767px) {
    body .t5493 {
        flex: 1 1 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: #ebfaf3;
    color: #09c269;
}

#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 #09c269;
    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: #09c269;
}

.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;
    }
}

/* Warsztat — tło full-bleed (nie przycinaj do container) */
body section.t7419 {
    width: 100%;
}

body section.t7419 > .t4553 {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Article in-content banners C1–C4 — TYLKO mobile (≤767) w „Przeczytaj również”.
   Klasy: baner-c1-mobile … baner-c4-mobile. Sidebar t3755 w treści ukryty. */
html body .baner-c1-mobile,
html body .baner-c2-mobile,
html body .baner-c3-mobile,
html body .baner-c4-mobile,
html body [data-banner-placement="in-content"],
html body .t6157 .t3755,
html body .t4062 .t3755,
html body .t2825 > .t3755 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* Banery C mobile — układ 1:1 (widoczność dopiero ≤767) */
body .baner-c1-mobile,
body .baner-c2-mobile,
body .baner-c3-mobile,
body .baner-c4-mobile {
    width: 100%;
    max-width: 41.5rem;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 0;
    overflow: visible;
    flex-direction: column;
    row-gap: 0.5rem;
}

body .baner-c1-mobile > a,
body .baner-c2-mobile > a,
body .baner-c3-mobile > a,
body .baner-c4-mobile > a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 1rem !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

body .baner-c-mobile-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    object-position: center center;
    border-radius: 1rem !important;
}

body .baner-c-mobile-label {
    width: 100%;
    text-align: center;
    margin: 0;
}

body .baner-c-mobile-label .heading-6-xxs {
    color: #bebebd;
    font-size: 0.575rem;
    font-weight: 600;
}

/* CMS embeds — OSOBNE okienka:
   - landscape (16:9): jawny Film poziomy / YouTube / poziomy FB — także gdy href ma /reel/
   - portrait (9:16): jawny Film pionowy lub auto bez landscape
   Zakaz: nadpisywanie video_landscape samym :has(reel) (SUP-33). */
body .dh-rich-text-embed.cms-embed--landscape:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]),
body .cms-video-embed.cms-embed--landscape:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]),
body .cms-embed--landscape:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not(:has(.cms-embed--portrait)),
body [data-embed-layout="video_landscape"]:not(.cms-embed--portrait),
body .cms-embed--map:not(.cms-embed--portrait),
body .dh-rich-text-embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])):not(:has(iframe[src*="tiktok"])):not(:has(iframe[src*="instagram"])):not(:has(iframe[width="267"][height="476"])):not(:has(iframe[width="270"][height="480"])),
body .cms-video-embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])):not(:has(iframe[src*="tiktok"])):not(:has(iframe[src*="instagram"])):not(:has(iframe[width="267"][height="476"])):not(:has(iframe[width="270"][height="480"])),
body .cms-block.form_embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(.cms-embed--portrait)):not(:has(iframe[src*="shorts"])):not(:has(iframe[src*="tiktok"])):not(:has(iframe[src*="instagram"])):not(:has(iframe[width="267"][height="476"])):not(:has(iframe[width="270"][height="480"])),
body figure.cms-block.form_embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(.cms-embed--portrait)):not(:has(iframe[src*="shorts"])):not(:has(iframe[src*="tiktok"])):not(:has(iframe[src*="instagram"])):not(:has(iframe[width="267"][height="476"])):not(:has(iframe[width="270"][height="480"])),
body .cms-block.video_embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])) {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto !important;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    margin: 1.5rem 0;
    overflow: hidden !important;
    border-radius: 0.5rem;
}

/* Portrait — tylko jawny portrait / wymiary 9:16; NIE nadpisuj landscape przez /reel/ w href */
body .cms-embed--portrait,
body [data-embed-layout="video_portrait"],
body .dh-rich-text-embed.cms-embed--portrait,
body .cms-video-embed.cms-embed--portrait,
body .cms-block.form_embed.cms-embed--portrait,
body figure.cms-block.form_embed.cms-embed--portrait,
body .cms-block.video_embed.cms-embed--portrait,
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="270"][height="480"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="270"][height="480"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="270"][height="480"]),
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="267"][height="476"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="267"][height="476"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[width="267"][height="476"]),
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="shorts"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="shorts"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="shorts"]),
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="tiktok"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="tiktok"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="tiktok"]),
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="instagram"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="instagram"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="instagram"]),
body .dh-rich-text-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="height=476"]),
body .cms-video-embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="height=476"]),
body .cms-block.form_embed:not(.cms-embed--landscape):not([data-embed-layout="video_landscape"]):has(iframe[src*="height=476"]) {
    display: block !important;
    position: relative !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    padding: 0 !important;
    margin: 1.5rem auto !important;
    overflow: hidden !important;
    border-radius: 0.5rem;
}

body figure.cms-block.form_embed:has(.cms-embed--portrait),
body .cms-block.form_embed:has(> .cms-embed--portrait),
body figure.cms-block.form_embed:has(> .dh-rich-text-embed),
body figure.cms-block.form_embed:has(> .cms-video-embed) {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

body .dh-rich-text-embed iframe,
body .cms-video-embed iframe,
body .cms-block.form_embed iframe,
body figure.cms-block.form_embed iframe,
body .cms-block.video_embed iframe,
body .cms-embed--landscape iframe,
body .cms-embed--map iframe,
body .cms-embed--portrait iframe {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0.5rem;
    margin: 0;
}

body .rich-text-dh-styling > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="reel"]):not([src*="shorts"]),
body .rich-text-dh-styling-2 > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="reel"]):not([src*="shorts"]),
body .rich-text-dh-styling-3 > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="reel"]):not([src*="shorts"]) {
    position: relative !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 1.5rem 0 !important;
}

@media screen and (max-width: 767px) {
    body .dh-rich-text-embed.cms-embed--landscape:not(.cms-embed--portrait),
    body .cms-video-embed.cms-embed--landscape:not(.cms-embed--portrait),
    body .cms-embed--landscape:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]),
    body [data-embed-layout="video_landscape"]:not(.cms-embed--portrait),
    body .cms-embed--map:not(.cms-embed--portrait),
    body .dh-rich-text-embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])),
    body .cms-video-embed:not(.cms-embed--portrait):not([data-embed-layout="video_portrait"]):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])),
    body .cms-block.form_embed:not(.cms-embed--portrait):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(.cms-embed--portrait)):not(:has(iframe[src*="shorts"])),
    body figure.cms-block.form_embed:not(.cms-embed--portrait):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(.cms-embed--portrait)):not(:has(iframe[src*="shorts"])),
    body .cms-block.video_embed:not(.cms-embed--portrait):not([data-embed-layout="video_landscape"]):not(.cms-embed--landscape):not(:has(iframe[src*="shorts"])) {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body .rich-text-dh-styling > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="shorts"]),
    body .rich-text-dh-styling-2 > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="shorts"]),
    body .rich-text-dh-styling-3 > iframe.rich-text-embed-iframe:not([src*="instagram"]):not([src*="tiktok"]):not([src*="shorts"]) {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/*
 * 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:not(.form_embed):not(.video_embed),
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:not(.t8447) {
    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,
body .rich-text-dh-styling .rich-text-image-caption,
body .rich-text-dh-styling-2 .rich-text-image-caption,
body .rich-text-dh-styling-3 .rich-text-image-caption,
body .rich-text-dh-styling-interview .rich-text-image-caption,
body .rich-text-dh-styling .rich-text-embed-caption,
body .rich-text-dh-styling .cms-block-caption {
    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;
}

/*
 * Podpisy pod zdjęciami w treści — CMS publikuje <p class="rich-text-image-caption">,
 * nie <figcaption>, więc reguły figcaption z main.css ich nie łapały.
 * Wymuszamy Inter Tight + kursywę figcaption. Cover (.om-cover-caption) ma własny LOCKED styl.
 */
body .rich-text-dh-styling .rich-text-image-caption:not(.om-cover-caption),
body .rich-text-dh-styling-2 .rich-text-image-caption:not(.om-cover-caption),
body .rich-text-dh-styling-3 .rich-text-image-caption:not(.om-cover-caption),
body .rich-text-dh-styling-interview .rich-text-image-caption:not(.om-cover-caption),
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,
body .rich-text-dh-styling .rich-text-embed-caption,
body .rich-text-dh-styling .cms-block-caption {
    font-family: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 120%;
    text-align: center;
    color: var(--grey-1st-400, #6b7280);
}

/* 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;
}

/*
 * LOCKED — podpis zdjęcia głównego artykułu (.om-cover-caption).
 * Nie scalać z figcaption / .rich-text-image-caption (kursywa bez belki).
 * Duplikat wstrzykiwany też jako <style id="om-cover-caption-locked"> w HTML artykułu.
 */
html body .t4049 > .om-cover-caption,
html body .t4049 > figcaption,
html body .t4049 > p,
html body p.om-cover-caption,
html body .om-cover-caption {
    display: block !important;
    box-sizing: border-box !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0.75rem auto 1.05rem !important;
    padding: 0 0.15rem 0.5rem !important;
    text-align: center !important;
    font-family: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-style: normal !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    color: #8f8f8e !important;
    position: relative !important;
}

html body .t4049 > .om-cover-caption::after,
html body .t4049 > figcaption::after,
html body .t4049 > p::after,
html body p.om-cover-caption::after,
html body .om-cover-caption::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 1px !important;
    margin: 0 !important;
    border: 0 !important;
    background-image: none !important;
    background-color: #d5d5d4 !important;
}

/* Grubsza czerwona kreska — środek na osi cienkiej linii. */
html body .t4049 > .om-cover-caption::before,
html body .t4049 > figcaption::before,
html body .t4049 > p::before,
html body p.om-cover-caption::before,
html body .om-cover-caption::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translate(-50%, calc(50% - 0.5px)) !important;
    display: block !important;
    width: 22% !important;
    min-width: 2.4rem !important;
    height: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 1px !important;
    background: var(--brand-1st-500, #09c269) !important;
    z-index: 1 !important;
    pointer-events: none !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 > .baner-c1-mobile,
body .t6157 > .baner-c2-mobile,
body .t6157 > .baner-c3-mobile,
body .t6157 > .baner-c4-mobile {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 41.5rem;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile only: pokaż C1–C4 wyłącznie w siatce „Przeczytaj również” */
@media screen and (max-width: 767px) {
    html body .t6157 > .baner-c1-mobile,
    html body .t6157 > .baner-c2-mobile,
    html body .t6157 > .baner-c3-mobile,
    html body .t6157 > .baner-c4-mobile,
    html body .t6157 .baner-c1-mobile,
    html body .t6157 .baner-c2-mobile,
    html body .t6157 .baner-c3-mobile,
    html body .t6157 .baner-c4-mobile,
    html body .t6157 [data-banner-placement="in-content"].baner-c1-mobile,
    html body .t6157 [data-banner-placement="in-content"].baner-c2-mobile,
    html body .t6157 [data-banner-placement="in-content"].baner-c3-mobile,
    html body .t6157 [data-banner-placement="in-content"].baner-c4-mobile {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: column;
        align-items: stretch;
        align-self: center;
        justify-self: center;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
        border-radius: 0;
        pointer-events: auto !important;
    }

    /* Zły markup t3755 w t6157 — trzymaj ukryty */
    html body .t6157 .t3755,
    html body .t4062 .t3755 {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    html body .t6157 .baner-c-mobile-label {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    html body .t6157 .baner-c1-mobile > a,
    html body .t6157 .baner-c2-mobile > a,
    html body .t6157 .baner-c3-mobile > a,
    html body .t6157 .baner-c4-mobile > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1;
        border-radius: 1rem !important;
        overflow: hidden !important;
    }

    html body .t6157 .baner-c-mobile-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1;
        border-radius: 1rem !important;
        object-fit: cover !important;
        object-position: center center;
    }
}

/* 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;
    }
}

/* Typografia kart „Przeczytaj również” = listingi (homepage .t5615/.t5616) */
@media screen and (max-width: 767px) {
    body .t6157 .t6164 {
        font-size: 1rem !important;
        line-height: 135% !important;
    }

    body .t6157 .t6170 {
        font-size: 0.9rem !important;
        line-height: 1.5rem !important;
        color: #575755 !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/*
 * 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;
    }
}

/*
 * Tabele w treści artykułu — na mobile nie rozpychają strony;
 * przewijanie w poziomie w kontenerze .dh-rich-text-table.
 */
body .rich-text-dh-styling .dh-rich-text-table,
body .rich-text-dh-styling-2 .dh-rich-text-table,
body .rich-text-dh-styling-3 .dh-rich-text-table,
body .rich-text-dh-styling-interview .dh-rich-text-table,
body .t2827 .dh-rich-text-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

body .rich-text-dh-styling .dh-rich-text-table > table,
body .rich-text-dh-styling-2 .dh-rich-text-table > table,
body .rich-text-dh-styling-3 .dh-rich-text-table > table,
body .rich-text-dh-styling-interview .dh-rich-text-table > table,
body .t2827 .dh-rich-text-table > table,
body .rich-text-dh-styling table.rich-text-editor-table,
body .t2827 table.rich-text-editor-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
}

/*
 * LOCKED — karta „Szczegóły wydarzenia” nad treścią artykułu
 * (kalendarium_wydarzen === true). Duplikat w HTML: #om-event-details-locked.
 * Nie scalać z kartami homepage t5713.
 */
html body .om-event-details {
    display: block;
    width: 100%;
    margin: 1.15rem 0 1.5rem;
    padding: 0;
}

html body .om-event-details__heading {
    margin: 0 0 0.75rem;
    padding: 0;
    font-family: "Inter Tight", Inter, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1b1b1e;
}

html body .om-event-details__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1.15rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 32px rgba(45, 45, 42, 0.1);
}

html body .om-event-details__logo {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    display: block;
}

html body .om-event-details__copy {
    flex: 1 1 auto;
    min-width: 0;
}

html body .om-event-details__title {
    margin: 0;
    font-family: "Inter Tight", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1b1b1e;
}

html body .om-event-details__place {
    margin: 0.3rem 0 0;
    font-family: "Inter Tight", Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    color: #575755;
}

html body .om-event-details__date {
    flex: 0 0 auto;
    margin: 0;
    padding-left: 0.5rem;
    font-family: "Inter Tight", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-1st-500, #09c269);
    white-space: nowrap;
}

@media screen and (max-width: 640px) {
    html body .om-event-details__card {
        flex-wrap: wrap;
    }

    html body .om-event-details__date {
        width: 100%;
        padding-left: 0;
        padding-top: 0.15rem;
    }
}

/* Kalendarium: ten sam kwadrat logo na każdej karcie (Divhunt t6994 1/1).
   contain — bez rozciągania grafiki; bez aspect-ratio:auto, bo wtedy krótki logotyp
   zsuwa tytuł/datę na środek karty. */
html body img.t6994 {
    object-fit: contain !important;
    object-position: center center;
    width: 100%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Prawa kolumna: „Nadchodzące wydarzenia” — wysokie logo (np. AGRO SHOW)
   nie może rozpychać 3. kafelka; 1. i 2. zostają zwarte. */
html body img.t6993,
html body .om-upcoming-event-logo {
    width: auto !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: 3.25rem !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    align-self: center !important;
    flex: 0 0 auto !important;
}

/* Cytat z edytora CMS — szare okienko jak dawniej na artykule. */
body .t2827 blockquote,
body .rich-text-dh-styling blockquote,
body .dh-rich-text blockquote,
body blockquote.dh-rich-text-quote,
body blockquote.rich-text-editor-blockquote {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0.85rem 0 1.15rem !important;
    padding: 15px !important;
    background: #f3f3f2 !important;
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
    color: #2d2d2a !important;
    font-style: normal !important;
}

body .t2827 blockquote p,
body .rich-text-dh-styling blockquote p,
body blockquote.dh-rich-text-quote p,
body blockquote.rich-text-editor-blockquote p {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    font-style: normal !important;
}

/* Hero 3 artykuły (listing .t5799 + homepage .t6715): 3:2, bez rozciągania prawej kolumny */
body .t5799,
body .t6715 {
    grid-template-rows: auto auto;
}

body .t5805,
body .t5833,
body .t6721,
body .t6745,
body .t5653,
body .t7127 {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    object-position: center;
}

body .t2827 blockquote cite,
body .rich-text-dh-styling blockquote cite,
body blockquote.dh-rich-text-quote cite,
body blockquote.rich-text-editor-blockquote cite {
    display: block !important;
    margin: 0.65rem 0 0 !important;
    padding: 0 !important;
    color: #8b8b8b !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    font-style: italic !important;
}

