/* Story Gallery — a pages/partials/story-gallery.php kinézete (2026-11-09: a partial inline <style>-jából költözött ide, hogy a böngésző
   gyorsítótárazza — eddig minden brand-oldal HTML-jében ~32 KB-tal ment ki). A pages/learning-modern.php a fej UTOLSÓ stíluslapjaként tölti:
   a cascade-ban ugyanott áll, ahol a body-beli <style> állt (minden fejbeli lap után). */
.dgal{background:var(--bg-secondary,#f6f8fb);border-top:1px solid var(--border-light,#e6eaf0)}
.dgal-group{margin-top:clamp(38px,5vw,64px);padding-top:clamp(22px,3vw,32px);border-top:1px solid rgba(16,30,54,.09)}
.dgal-group:first-of-type{border-top:none;padding-top:0}
/* category name + a manager-question subtitle — the block's theme, not the module name */
.dgal-group-head{margin:0 0 22px;max-width:60ch}
.dgal-group-name{font-size:clamp(1.25rem,1.9vw,1.4rem);font-weight:600;margin:0;color:var(--text-primary,#16202e);line-height:1.2}
.dgal-group-sub{font-size:clamp(.95rem,1.3vw,1rem);color:var(--text-secondary,#5a6678);margin:5px 0 0;line-height:1.5}
.dgal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:clamp(16px,2.2vw,26px);align-items:start}
/* featured cards break the monotony: span two columns where there's room */
.dgal-card[hidden],.dgal-group[hidden]{display:none!important}
.dgal-card.is-featured{grid-column:span 2}
@media(max-width:719px){.dgal-card.is-featured{grid-column:span 1}}
/* Card = one interactive unit (App Store / Apple News feel): preview + title-with-arrow + one-line value prop */
.dgal-card{position:relative;display:flex;flex-direction:column;background:var(--bg-primary,#fff);border:var(--proof-border);border-radius:var(--proof-radius);overflow:hidden;box-shadow:var(--proof-shadow);cursor:pointer;text-align:left;padding:0;font:inherit;color:inherit;width:100%;
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.dgal-card:hover{transform:translateY(-2px);box-shadow:var(--proof-shadow-hover)}
.dgal-card-shot{position:relative;overflow:hidden;background:#eef2f7;aspect-ratio:16/10}
.dgal-card.is-featured .dgal-card-shot{aspect-ratio:16/9}
.dgal-card-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .3s ease}
.dgal-card:hover .dgal-card-shot img{transform:scale(1.025)}
/* footer reads as a continuation of the screenshot; hover tints it very slightly */
.dgal-card-body{position:relative;padding:14px 16px 15px;display:flex;flex-direction:column;gap:4px;transition:background .18s ease}
.dgal-card:hover .dgal-card-body{background:rgba(16,30,54,.02)}
/* per-section glow — a faint coloured light bleeding in from the corners; footer stays ~95% white */
.dgal-card-body::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;border-radius:inherit;
    background:radial-gradient(circle at 6% 108%, rgba(var(--section-accent,63,74,86),.10), transparent 44%),
               radial-gradient(circle at 96% -8%, rgba(var(--section-accent,63,74,86),.055), transparent 38%);
    filter:blur(16px);opacity:.5;transition:opacity .2s ease-out}
/* hairline accent stripe at the top of the footer — ties the card body to its screenshot */
.dgal-card-body::after{content:'';position:absolute;top:0;left:0;right:0;height:2px;z-index:2;pointer-events:none;
    background:linear-gradient(90deg, transparent, rgba(var(--section-accent,63,74,86),.55) 20%, rgba(var(--section-accent,63,74,86),.55) 80%, transparent);
    opacity:.7;transition:opacity .2s ease-out}
.dgal-card:hover .dgal-card-body::after{opacity:1}
.dgal-card:hover .dgal-card-body::before{opacity:.78}
.dgal-card.is-featured .dgal-card-body::before{opacity:.9}
.dgal-card.is-featured:hover .dgal-card-body::before{opacity:1}
/* mobile: one gradient + smaller blur — keep GPU load low */
@media(max-width:760px){.dgal-card-body::before{background:radial-gradient(circle at 6% 108%, rgba(var(--section-accent,63,74,86),.10), transparent 46%);filter:blur(12px)}}
.dgal-card-titlerow,.dgal-card-story{position:relative;z-index:1}
.dgal-card-titlerow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dgal-card-title{font-size:18px;font-weight:600;color:var(--text-primary,#16202e);line-height:1.25}
.dgal-card-arrow{flex:none;width:15px;height:15px;margin-top:3px;color:var(--text-secondary,#b3bcc9);transition:transform .18s ease,color .18s ease}
.dgal-card:hover .dgal-card-arrow{transform:translateX(2px);color:rgb(var(--section-accent,63,74,86))}
.dgal-card-story{font-size:15px;color:var(--text-muted);line-height:1.5}
/* hero card — a quiet "start here" emphasis, not a banner */
.dgal-card.is-featured .dgal-card-title{font-size:20px}
.dgal-card.is-featured .dgal-card-arrow{color:rgb(var(--section-accent,63,74,86))}
.dgal-card.is-featured:hover{transform:translateY(-2px);box-shadow:0 32px 60px -24px rgba(16,30,54,.5)}
.dgal-note{text-align:center;margin-top:34px;font-family:var(--font-mono);font-size:.7rem;color:var(--text-secondary,#8a97a8)}

/* Lightbox: inline modal, blurred page behind, header stays sharp (header z-index 1000) */
/* Fixed top clearance (88px) keeps the modal below the sticky header with a gap, always */
/* light frosted backdrop — the page itself (hero mesh included) glows through the blur,
   so the scrim "rhymes" with each brand's own palette instead of a flat grey */
.dgal-lb{position:fixed;inset:0;z-index:999;display:none;align-items:center;justify-content:center;padding:88px clamp(12px,3vw,40px) 24px;
    background:rgba(243,246,251,.72);backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);opacity:0;transition:opacity .25s ease}
.dgal-lb.is-open{display:flex;opacity:1}
.dgal-lb-dialog{position:relative;display:flex;flex-direction:column;width:min(92vw,1240px);height:min(90vh,calc(100dvh - 124px));background:var(--bg-primary,#fff);border-radius:var(--radius-panel);overflow:hidden;border:1px solid rgba(16,30,54,.08);box-shadow:0 44px 100px -30px rgba(16,30,54,.38);
    transform:scale(.97);transition:transform .28s cubic-bezier(.2,.8,.2,1),width .3s ease}
/* very flat screenshots (aspect > ~1.85, toggled by JS) get a wider stage so the image renders larger */
.dgal-lb-dialog.is-wide{width:min(96vw,1560px)}
.dgal-lb.is-open .dgal-lb-dialog{transform:none}
/* body = the swappable unit (image + panel move together between reports); fills the dialog height */
.dgal-lb-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);
    transition:opacity .24s ease,transform .24s ease}
.dgal-lb-figure,.dgal-lb-panel{min-height:0}
.dgal-lb-body.is-swapping{opacity:0;transform:translateX(var(--dgal-sx,10px))}
/* BAL = MONITOR (2026-11-07, Gábor: „mintha egy monitor lenne, de nagyon enyhén”): sötét képernyőház, a jobb hasáb marad a világos
   dokumentáció. A jelleget a ház adja (káva, hajszálnyi türkiz él, halk fény, sorkép a HÁZON); a képre nem kerül semmi, olvasható marad.
   A rövid képernyő középen áll. A margó a görgethető hasábé: a .dgal-co jelölők a figinner %-ában állnak, ott nem lehet padding. */
.dgal-lb-figure{--dgal-figbar-h:36px;--mon-bg:#0c1219;--mon-ink:#c5d2dd;position:relative;overflow:hidden;background-color:var(--mon-bg);
    background-image:repeating-linear-gradient(0deg,rgba(127,209,232,.022) 0 1px,transparent 1px 4px)}
.dgal-lb-figscroll{position:absolute;inset:0;overflow:auto;display:flex;flex-direction:column;box-sizing:border-box;padding:calc(var(--dgal-figbar-h) + 22px) 26px 26px;
    box-shadow:inset 0 0 90px rgba(0,0,0,.45);scrollbar-color:rgba(127,209,232,.3) transparent}
.dgal-lb-figinner{position:relative;flex:none;width:100%;margin:auto 0}
.dgal-lb-figinner img{display:block;width:100%;height:auto;border-radius:6px;
    box-shadow:0 0 0 1px rgba(127,209,232,.34),0 0 0 6px #141b24,0 0 0 7px rgba(127,209,232,.12),0 0 40px rgba(127,209,232,.08)}
/* a ház sávja: ugyanaz a sötét, nem a lap fehére */
.dgal-lb-figbar{position:absolute;top:0;left:0;right:0;z-index:3;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 10px;
    background:var(--mon-bg);border-bottom:1px solid rgba(127,209,232,.16)}
.dgal-lb-figbar-btn{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;font:inherit;font-size:.76rem;font-weight:600;color:var(--mon-ink);padding:4px 6px;transition:color .2s,background .2s}
.dgal-lb-figbar-btn:hover{color:#fff;background:rgba(127,209,232,.1)}
.dgal-lb-figbar-btn:disabled{opacity:.4;cursor:default;color:var(--mon-ink);background:none}
.dgal-lb-figbar :focus-visible,.dgal-lb-figscroll:focus-visible{outline:2px solid #7fd1e8;outline-offset:2px}
.dgal-lb-figscroll:focus-visible{outline-offset:-2px}
.dgal-lb-figbar-btn svg{width:15px;height:15px;flex:none}
.dgal-lb-figbar-mid{display:flex;align-items:baseline;gap:8px;min-width:0;overflow:hidden}
.dgal-lb-figbar-label{display:inline-flex;align-items:center;gap:9px;font-family:var(--font-mono);font-size:.64rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--mon-ink);white-space:nowrap;transition:color .2s ease}
.dgal-lb-figbar-label::before{content:'';width:6px;height:6px;border-radius:50%;background:#FFB15C;flex:none}
.dgal-lb-figbar-count{font-size:.72rem;font-variant-numeric:tabular-nums;color:#9fb0bf;white-space:nowrap}
.dgal-lb-figbar .dgal-lb-jumptrig{color:var(--mon-ink)}
.dgal-lb-figbar .dgal-lb-jumptrig:hover,.dgal-lb-figbar .dgal-lb-jumptrig.is-open{color:#fff;background:rgba(127,209,232,.1)}
/* brand context — shown only on full-screen (mobile/short) where the site header is covered */
.dgal-lb-figbar-brand{display:none;align-items:center;gap:7px;min-width:0;color:var(--mon-ink)}
.dgal-lb-figbar-brand img,.dgal-lb-figbar-brand .logo-mark{width:18px;height:18px;flex:none;color:currentColor}
.dgal-lb-figbar-brand-txt{font-size:.78rem;color:var(--mon-ink);white-space:nowrap}
.dgal-lb-figbar-brand-txt b{font-weight:800}
.dgal-lb-figbar-brand-eyebrow{font-family:var(--font-mono);font-size:.6rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--mon-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:9px;border-left:1px solid rgba(127,209,232,.22)}
/* RIGHT — interpretive space: fixed header / scrollable body / fixed footer */
.dgal-lb-panel{display:flex;flex-direction:column;overflow:hidden;border-left:1px solid var(--border-light,#e6eaf0);min-height:0}
.dgal-lb-phead{flex:none;padding:clamp(20px,2.3vw,28px) clamp(22px,2.4vw,32px) 13px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--border-light,#eef2f7)}
.dgal-lb-pscroll{flex:1;min-height:0;overflow-y:auto;padding:18px clamp(22px,2.4vw,32px);display:flex;flex-direction:column;gap:18px}
.dgal-lb-pfoot{position:relative;flex:none;padding:12px clamp(22px,2.4vw,32px) clamp(14px,2vw,18px);display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border-light,#e6eaf0);background:var(--bg-primary,#fff)}
/* scroll affordance — a soft fade floating above the footer while there's more text below the fold (JS toggles) */
.dgal-lb-pfoot::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:34px;background:linear-gradient(to bottom,rgba(255,255,255,0),var(--bg-primary,#fff));pointer-events:none;opacity:0;transition:opacity .25s ease}
.dgal-lb-pfoot.has-more::before{opacity:1}
.dgal-lb-eyebrow{font-family:var(--font-mono);font-size:.68rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary,#5a6678);margin-bottom:-8px}
/* LEVEL 1 — the strongest block: title + question + "what do I see first" */
.dgal-lb-title{font-size:clamp(1.3rem,2.2vw,1.6rem);margin:0;color:var(--text-primary,#16202e);line-height:1.2}
@media(min-width:761px){.dgal-lb-title{padding-right:34px}}
/* the manager-question is a dek under the title, not a second title — quieter weight + colour */
.dgal-lb-q{font-size:.92rem;font-weight:500;color:var(--text-secondary,#5a6678);margin:0;line-height:1.45}
.dgal-lb-sec{margin:0}
/* Hello 2027 (ipari csend): a fejezetcím mono címke hajszálvonal fölött — ikon és szekciószín nélkül */
.dgal-lb-sec h4{display:block;margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid var(--f-hair,#e6eaf0);font-family:var(--font-mono);font-size:.66rem;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--text-secondary,#5a6678)}
.dgal-lb-sec h4 svg{display:none}
.dgal-lb-sec p{margin:0;font-size:.94rem;line-height:1.6;color:var(--text-secondary,#5a6678)}
.dgal-lb-sec ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.dgal-lb-sec ul li{position:relative;padding-left:20px;font-size:.9rem;line-height:1.45;color:var(--text-primary,#16202e)}
.dgal-lb-sec ul li.is-lead{font-weight:700;font-size:1rem;margin-bottom:2px}
.dgal-lb-sec ul li::before{content:'';position:absolute;left:0;top:.72em;width:9px;height:1.5px;background:color-mix(in srgb,var(--text-primary,#16202e) 45%,transparent)}
.dgal-lb-sec ul li.is-lead::before{background:rgb(var(--section-accent,63,74,86))}
/* LEVEL 2 — for those who read on: quieter type, muted heading */
.dgal-lb-sec--l2 h4{color:var(--text-secondary,#5a6678)}
.dgal-lb-sec--l2 p{font-size:.88rem}
.dgal-lb-sec--l2 ul li{font-size:.86rem;color:var(--text-secondary,#5a6678)}
/* LEVEL 3 — meta: one compact, faint row (like a product spec sheet) */
.dgal-lb-meta{display:grid;grid-template-columns:max-content 1fr;column-gap:14px;row-gap:6px;align-items:baseline;padding-top:12px;border-top:1px solid var(--f-hair,#eef2f7)}
.dgal-lb-meta-row{display:contents;font-size:.8rem;color:var(--text-secondary,#8a97a8)}
.dgal-lb-meta-row>span:last-child{font-size:.8rem;color:var(--text-secondary,#8a97a8)}
.dgal-lb-meta-k{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary,#8a97a8);opacity:.85}
/* Takeaway — the report's headline, the strongest element, the line to remember */
/* light radiates from the accent bar: stronger wash on the left fading right + hairline outline —
   reads as a "glowing card", clearly distinct from the flat tinted CTA below */
.dgal-lb-punch{--tk:rgb(var(--section-accent,63,74,86));margin:0;padding:16px 20px;border-radius:0;font-size:1.1rem;font-weight:600;line-height:1.45;letter-spacing:-.012em;color:var(--text-primary,#16202e);font-family:var(--font-display,inherit);text-wrap:balance}
/* Storyteller navigation — always visible in the fixed footer */
.dgal-lb-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dgal-lb-nav-btn{display:inline-flex;align-items:center;gap:5px;background:none;border:none;cursor:pointer;font:inherit;font-size:.82rem;font-weight:600;color:var(--text-secondary,#5a6678);padding:5px 9px;transition:color .2s ease,background .2s ease}
.dgal-lb-nav-btn:hover{color:var(--text-primary,#16202e);background:color-mix(in srgb,var(--text-primary,#16202e) 6%,transparent)}
.dgal-lb-nav-btn svg{width:16px;height:16px;flex:none;transition:transform .2s ease}
#dgalNavPrev:hover svg{transform:translateX(-2px)}
#dgalNavNext:hover svg{transform:translateX(2px)}
.dgal-lb-nav-btn:disabled{opacity:.32;cursor:default;color:var(--text-secondary,#5a6678)}
.dgal-lb-nav-btn:disabled:hover{background:none}
.dgal-lb-nav-btn:disabled:hover svg{transform:none}
.dgal-lb-counter{font-variant-numeric:tabular-nums;font-size:.78rem;color:var(--text-secondary,#8a97a8);text-align:center;flex:1;white-space:nowrap}
/* Jump menu — hover the counter for a flat mini-index of all reports (brand-selector style).
   The menus are rendered at dialog level and positioned by JS so they always sit above the screenshot. */
.dgal-lb-jumptrig{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;font:inherit;font-family:var(--font-mono);font-size:.7rem;font-variant-numeric:tabular-nums;color:var(--text-secondary,#8a97a8);padding:3px 8px;white-space:nowrap;transition:background .14s ease,color .14s ease,opacity .14s ease}
.dgal-lb-jumptrig:hover,.dgal-lb-jumptrig.is-open{background:color-mix(in srgb,var(--text-primary,#16202e) 6%,transparent);color:var(--text-primary,#16202e)}
.dgal-lb-nav .dgal-lb-jumptrig--foot{flex:1;justify-content:center}
.dgal-lb-jumptrig::after{content:'';width:11px;height:11px;flex:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");opacity:.6;transition:transform .16s ease-out,opacity .16s ease}
.dgal-lb-jumptrig--foot::after{transform:rotate(180deg)}
.dgal-lb-jumptrig:hover::after{opacity:.9}
/* on open the chevron gently flips to point back at the trigger */
.dgal-lb-jumptrig.is-open::after{opacity:1;transform:rotate(180deg)}
.dgal-lb-jumptrig--foot.is-open::after{transform:rotate(0deg)}
/* pops up softly (opacity + scale from the trigger edge), not a hard appear */
.dgal-lb-jump{position:absolute;width:min(284px,72vw);z-index:40;transform:translateX(-50%) scale(.98);
    background:var(--bg-primary,#fff);
    border:1px solid var(--f-hair,rgba(16,30,54,.09));border-radius:var(--radius-panel);box-shadow:0 24px 60px -22px rgba(16,30,54,.4);
    padding:6px 6px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease-out,transform .14s ease-out;max-height:min(82vh,548px);overflow-y:auto;overscroll-behavior:contain}
.dgal-lb-jump--down{transform-origin:top center}
.dgal-lb-jump--up{transform-origin:bottom center}
.dgal-lb-jump.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) scale(1)}
/* grouped ToC — iOS-style section headers, each in its own section colour */
.dgal-lb-jump-group{break-inside:avoid}
.dgal-lb-jump-group+.dgal-lb-jump-group{margin-top:2px}
.dgal-lb-jump-cat{font-family:var(--font-mono);font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:rgb(var(--section-accent,63,74,86));padding:7px 12px 3px 30px}
/* navigation, not a bullet list — item text stays neutral dark grey; only current gets the section colour + check */
.dgal-lb-jump-item{display:block;width:100%;text-align:left;background:none;border:none;cursor:pointer;font:inherit;font-size:.85rem;color:var(--text-primary,#16202e);padding:6px 12px 6px 30px;transition:background .14s ease,color .14s ease;position:relative}
.dgal-lb-jump-item::before{content:'';position:absolute;left:10px;top:50%;transform:translateY(-50%);width:13px;height:13px;opacity:0;transition:opacity .15s ease;background:rgb(var(--section-accent,63,74,86));
    -webkit-mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.dgal-lb-jump-item:hover{background:rgba(var(--section-accent,63,74,86),.07)}
/* nagy kontrasztú mód: a pipa festéke (háttérszín) a lap hátterére cserélődne — a rendszer szövegszínét kapja (2026-11-08) */
@media (forced-colors:active){.dgal-lb-jump-item::before{forced-color-adjust:none;background:CanvasText}}
.dgal-lb-jump-item.is-current{background:rgba(var(--section-accent,63,74,86),.1);color:rgb(var(--section-accent,63,74,86));color:color-mix(in srgb,rgb(var(--section-accent,63,74,86)) 82%,var(--text-primary,#16202e));font-weight:600}
.dgal-lb-jump-item.is-current::before{opacity:1}
.dgal-lb-jump-ttl{line-height:1.35}
@media(max-width:760px){.dgal-lb-jump{width:min(260px,80vw)}}
.dgal-lb-esc{margin-top:8px;text-align:center;font-size:.68rem;letter-spacing:.04em;color:var(--text-secondary,#aab4c2);opacity:.7}
@media(max-width:760px){.dgal-lb-nav-txt,.dgal-lb-figbar-txt,.dgal-lb-figbar-label,.dgal-lb-esc{display:none}}
/* End-of-gallery screen */
/* Persistent primary CTA — same spot in the footer on every report, follows the section accent.
   Deliberately compact: every pixel here is stolen from the scrollable text above it. */
/* tinted secondary — the takeaway above stays the loudest element in the footer;
   the CTA reads as a button without a solid fill stealing the eye */
.dgal-lb-cta{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;padding:7px 13px;background:none;border:1px solid var(--f-hair,#e6eaf0);color:var(--text-primary,#16202e);font-weight:600;font-size:.84rem;letter-spacing:-.01em;text-decoration:none;transition:border-color .18s ease}
.dgal-lb-cta:hover{border-color:color-mix(in srgb,rgb(var(--section-accent,63,74,86)) 60%,var(--f-hair,#e6eaf0))}
.dgal-lb-cta svg{width:13px;height:13px;flex:none;transition:transform .18s ease}
.dgal-lb-cta:hover svg{transform:translate(2px,-2px)}
.dgal-lb-close{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;border:none;background:rgba(13,22,38,.55);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .2s}
.dgal-lb-close:hover{background:rgba(13,22,38,.85)}
/* callouts on the enlarged image */
.dgal-co{position:absolute;transform:translate(-50%,-50%);z-index:2;opacity:0;animation:dgalCo .5s ease forwards}
.dgal-co-dot{width:16px;height:16px;border-radius:50%;background:var(--sig,#5CC3DE);box-shadow:0 0 0 6px rgba(92,195,222,.28);cursor:default}
.dgal-co-dot::after{content:'';position:absolute;inset:0;border-radius:50%;animation:dgalPing 2.4s ease-out infinite}
.dgal-co-label{position:absolute;left:50%;top:50%;transform:translate(22px,-50%);width:max-content;max-width:min(46vw,300px);background:rgba(13,22,38,.92);color:#fff;font-size:.76rem;line-height:1.4;padding:7px 11px;border-radius:2px;box-shadow:0 10px 30px -12px rgba(0,0,0,.6);pointer-events:none;white-space:normal}
.dgal-co.flip .dgal-co-label{transform:translate(calc(-100% - 22px),-50%)}
/* thin, faint leader line from the bubble to the dot on the element — Figma/keynote feel */
.dgal-co-label::before{content:'';position:absolute;top:50%;right:100%;width:22px;height:1px;background:linear-gradient(to left,rgba(92,195,222,.75),rgba(92,195,222,.1))}
.dgal-co.flip .dgal-co-label::before{right:auto;left:100%;background:linear-gradient(to right,rgba(92,195,222,.75),rgba(92,195,222,.1))}
@keyframes dgalCo{from{opacity:0;transform:translate(-50%,-40%)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes dgalPing{0%{box-shadow:0 0 0 0 rgba(92,195,222,.5)}100%{box-shadow:0 0 0 14px rgba(92,195,222,0)}}
/* MOBILE PORTRAIT — the gallery is a full-screen sheet, not a floating modal:
   no grey frame, covers the site header (z above it), app-like takeover. */
@media(max-width:760px){
    .dgal-lb{padding:0;z-index:1001}
    .dgal-lb-dialog{width:100%;max-width:none;height:100dvh;border-radius:0;box-shadow:none}
    /* image zone sizes itself to the screenshot (capped) — no mesh gap below short shots,
       and a short shot hands its leftover space to the text below */
    .dgal-lb-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
    .dgal-lb-figure{min-height:120px}
    .dgal-lb-figure{--dgal-figbar-h:40px}
    .dgal-lb-figscroll{position:static;max-height:40dvh;overflow-y:auto;padding:calc(var(--dgal-figbar-h) + 13px) 14px 15px}
    .dgal-lb-figinner img{border-radius:4px;box-shadow:0 0 0 1px rgba(127,209,232,.34),0 0 24px rgba(127,209,232,.08)}
    /* one nav only (the thumb-zone footer); top bar = brand context + close
       (the site header is covered, so a shared screenshot still says where it's from) */
    .dgal-lb-figbar{justify-content:flex-start;padding:5px 46px 5px 12px;min-height:40px}
    .dgal-lb-figbar-btn{display:none}
    .dgal-lb-figbar .dgal-lb-jumptrig{display:none}
    .dgal-lb-figbar-brand{display:flex}
    .dgal-lb-close{top:6px;right:8px;width:30px;height:30px;z-index:6}
    .dgal-lb-panel{border-left:none;border-top:1px solid var(--border-light,#e6eaf0)}
    /* tighter interpretive zone — more content per screen */
    .dgal-lb-phead{padding:14px 18px 10px;gap:3px}
    .dgal-lb-title{font-size:1.15rem}
    .dgal-lb-q{font-size:.85rem}
    .dgal-lb-pscroll{padding:14px 18px;gap:14px}
    .dgal-lb-sec p{font-size:.88rem}
    .dgal-lb-sec--l2 p{font-size:.85rem}
    .dgal-lb-sec ul li{font-size:.84rem}
    .dgal-lb-pfoot{padding:10px 18px 12px;gap:8px}
    .dgal-lb-punch{font-size:.95rem;padding:12px 14px}
    .dgal-lb-cta{display:none}
}
/* SHORT SCREENS (landscape phones, squat windows) — same full-screen takeover,
   the two-column layout stays; compact type so the panel fits */
@media(max-height:600px){
    .dgal-lb{padding:0;z-index:1001}
    .dgal-lb-dialog{width:100%;max-width:none;height:100dvh;border-radius:0;box-shadow:none}
    /* top bar: brand context replaces the duplicated counter (nav + jump live in the footer) */
    .dgal-lb-figure{--dgal-figbar-h:40px}
    .dgal-lb-figbar{justify-content:flex-start;padding:5px 46px 5px 12px;min-height:40px}
    .dgal-lb-figbar-btn,.dgal-lb-figbar-label,.dgal-lb-esc{display:none}
    .dgal-lb-figbar .dgal-lb-jumptrig{display:none}
    .dgal-lb-figbar-brand{display:flex}
    .dgal-lb-close{top:6px;right:8px;width:30px;height:30px;z-index:6}
    /* compact ToC; JS flips to two columns only when one wouldn't fit the height */
    .dgal-lb-jump{max-height:calc(100dvh - 84px)}
    .dgal-lb-jump-cat{font-size:11px;padding:5px 10px 2px 26px}
    .dgal-lb-jump-item{padding:4px 10px 4px 26px;font-size:.8rem}
    .dgal-lb-jump-item::before{left:8px;width:12px;height:12px}
    .dgal-lb-jump.is-twocol{width:min(600px,94vw);column-count:2;column-gap:4px}
    .dgal-lb-phead{padding:12px 18px 9px;gap:3px}
    .dgal-lb-title{font-size:1.1rem}
    .dgal-lb-q{font-size:.84rem}
    .dgal-lb-pscroll{padding:12px 18px;gap:12px}
    .dgal-lb-sec p{font-size:.88rem}
    .dgal-lb-sec ul li{font-size:.84rem}
    .dgal-lb-pfoot{padding:8px 18px 10px;gap:7px}
    .dgal-lb-punch{font-size:.9rem;padding:10px 13px}
    .dgal-lb-cta{display:none}
}
/* FEKVŐ TELEFON, 760 px alatt (2026-11-06): az álló elrendezés (kép fölül, szöveg alul) itt 320 px magasan kicsúszott, a lapozó
   a képernyő alá került. Két hasáb, mint a szélesebb fekvő nézetben: a kép balra a teljes magasságban, a szöveg és a lapozó jobbra. */
@media(orientation:landscape) and (max-height:600px) and (max-width:760px){
    .dgal-lb-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
    .dgal-lb-figscroll{position:absolute;max-height:none}
    
    .dgal-lb-panel{border-left:1px solid var(--border-light,#e6eaf0);border-top:none}
    .dgal-lb-phead{padding:10px 44px 6px 14px}
    .dgal-lb-title{font-size:1rem}
    .dgal-lb-q{font-size:.8rem}
    .dgal-lb-pscroll{padding:8px 14px;gap:10px}
    .dgal-lb-pfoot{padding:6px 14px 6px;gap:4px}
    .dgal-lb-punch{font-size:.82rem;padding:6px 10px}
    .dgal-lb-all{padding:0}
}
@media(prefers-reduced-motion:reduce){
    .dgal-card{transition:box-shadow .2s,border-color .2s}
    .dgal-card:hover{transform:none}
    .dgal-co{animation:none;opacity:1}
    .dgal-co-dot::after{animation:none}
    .dgal-lb-body{transition:opacity .12s ease}
    .dgal-lb-body.is-swapping{transform:none}
}
.dgal-lb-all{align-self:center;padding:4px 0;font-size:.8rem;color:var(--text-muted);text-decoration:none;border-bottom:1px solid var(--f-hair,var(--border-light))}
.dgal-lb-all:hover,.dgal-lb-all:focus-visible{color:var(--text-primary)}
/* A KERET (2026-11-06, Gábor: „erre fókuszálunk”): sötét fátyol, a gomb levágott sarka nagyban, kívül a kijelölés sarokjelei (a jobb
   alsó elcsúszva, türkiz), alul a gomb sraffozott sávja — a hossza a pozíció a lapozóban (--dgal-pos, render()). Mindkét téma a sötét
   fátyolon áll, ezért a jelek FÉNY-tónusúak. Csak a lebegő modalon: a teljes képernyős (mobil, alacsony) lapon nincs keret. */
@media(min-width:761px) and (min-height:601px){
    .dgal-lb{background:rgba(14,20,28,.66);backdrop-filter:blur(10px) saturate(110%);-webkit-backdrop-filter:blur(10px) saturate(110%)}
    .dgal-lb-dialog{overflow:visible;border:0;box-shadow:0 40px 90px -40px rgba(0,0,0,.75)}
    .dgal-lb-body{overflow:hidden;border-radius:inherit}
    .dgal-lb-dialog::after{content:'';position:absolute;inset:-10px;pointer-events:none;--c:rgba(233,240,248,.72);--t:#7fd1e8;
        background:linear-gradient(var(--c),var(--c)) left top/14px 1px no-repeat,linear-gradient(var(--c),var(--c)) left top/1px 14px no-repeat,
            linear-gradient(var(--c),var(--c)) right top/14px 1px no-repeat,linear-gradient(var(--c),var(--c)) right top/1px 14px no-repeat,
            linear-gradient(var(--c),var(--c)) left bottom/14px 1px no-repeat,linear-gradient(var(--c),var(--c)) left bottom/1px 14px no-repeat,
            linear-gradient(var(--t),var(--t)) right 2px bottom 2px/9px 3px no-repeat,linear-gradient(var(--t),var(--t)) right 2px bottom 2px/3px 9px no-repeat}
    .dgal-lb-dialog::before{content:'';position:absolute;left:0;bottom:-7px;height:3px;width:calc(var(--dgal-pos,0)*(100% - 24px));pointer-events:none;
        background:repeating-linear-gradient(135deg,#7fd1e8 0 2px,transparent 2px 5px);transition:width .24s ease}
    .dgal-lb.is-single .dgal-lb-dialog::before{display:none}
    .dgal-lb-close{background:none;color:var(--text-secondary)}
    .dgal-lb-close:hover{background:color-mix(in srgb,var(--text-primary) 6%,transparent);color:var(--text-primary)}
    @supports (corner-shape:bevel){.dgal-lb-dialog{border-radius:0 0 16px 0;corner-shape:bevel}.dgal-lb-body{corner-shape:bevel}}
}
@media(prefers-reduced-motion:reduce){.dgal-lb-dialog::before{transition:none}}

/* csak-lightbox mód ($galLbOnly) és egyetlen dia */
.dgal--lbonly{padding:0;margin:0;border:0;background:none}.dgal--lbonly>.container{display:none}
.dgal-lb.is-single .dgal-lb-nav,.dgal-lb.is-single .dgal-lb-figbar-btn,.dgal-lb.is-single .dgal-lb-jumptrig{display:none}
