/* =====================================================================
   Canon pages/tz-sofia-20261028.css — the /portfolio/ part only.
   Canon loads this file on 4 pages; the home / corporate-website / rozrobka-sajtiv
   sections are deliberately left out here, because the Czech heroes on those
   pages already differ from canon and would regress.
   Selectors keep canon's `html body` prefix: calc-cta.css loads later (inside
   body) with the same specificity, so the prefix is what wins — not !important.
   ===================================================================== */

/* ---------- Portfolio: 45% scrim over the hero image ---------- */
html body .pfg-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    pointer-events: none;
}

/* ---------- "Vyberte kategorii…" bigger and bolder ---------- */
html body .pfg-hero .pfg-filters__title {
    width: auto;
    max-width: 720px;
    font-size: 22px;
    font-weight: 700;
}
@media (max-width: 767px) {
    html body .pfg-hero .pfg-filters__title {
        width: 100%;
        max-width: 330px;
        font-size: 18px;
        line-height: 1.25;
    }
}

/* Local dimming under the title — it sits on the brightest part of the flame */
html body .pfg-hero .pfg-filters__title {
    position: relative;
    isolation: isolate;
    text-shadow: 0 0 8px rgba(0, 0, 0, .8), 0 1px 14px rgba(0, 0, 0, .6);
}
html body .pfg-hero .pfg-filters__title::before {
    content: '';
    position: absolute;
    inset: -10px -28px;
    z-index: -1;
    background: rgba(0, 0, 0, .5);
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

/* ---------- Portfolio, mobile: "all" bubble full width, the rest 2x2 ---------- */
@media (max-width: 767px) {
    html body .pfg-hero { padding-bottom: 40px; }
    html body .pfg-hero .pfg-hero__intro { gap: 20px; }
    html body .pfg-hero .pfg-filters { margin-top: 28px; gap: 12px; }
    html body .pfg-hero .pfg-filters__bar:not(.is-stuck) .pfg-filters__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    html body .pfg-hero .pfg-filters__bar:not(.is-stuck) .pfg-filter {
        order: 0;
        grid-column: auto;
        height: 44px;
        min-height: 44px;
        border-radius: 14px;
    }
    html body .pfg-hero .pfg-filters__bar:not(.is-stuck) .pfg-filter[data-pf-filter="all"] {
        grid-column: 1 / -1;
    }
    html body .pfg-hero .pfg-filters__bar:not(.is-stuck) .pfg-filter .pfg-filter__label,
    html body .pfg-hero .pfg-filters__bar:not(.is-stuck) .pfg-filter:last-child:nth-child(odd) .pfg-filter__label {
        width: auto;
        font-size: 14px;
        letter-spacing: -0.3px;
        white-space: nowrap;
    }
}
