/* Gallery styles are isolated from the shared navigation and product pages. */
.rg-page{--rg-gold:#dec17f;--rg-muted:#b8b5ab;--rg-line:#ffffff24;background:#080908;color:#f6f4ef;font-family:Inter,Arial,sans-serif;line-height:1.65}
.rg-page [hidden]{display:none!important}
.rg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.rg-page a:focus-visible,.rg-page button:focus-visible,.rg-page summary:focus-visible{outline:3px solid var(--rg-gold);outline-offset:5px}
.rg-page h1,.rg-page h2,.rg-page h3{font-family:Sora,Inter,Arial,sans-serif;text-transform:none;letter-spacing:-.04em}
.rg-wrap{width:min(1280px,88%);margin-inline:auto}
.rg-main{padding-top:88px}
.rg-skip{position:fixed;top:8px;left:8px;z-index:200;background:var(--rg-gold);color:#111;padding:12px 20px;transform:translateY(-160%)}
.rg-skip:focus{transform:translateY(0)}
.rg-hero{padding:62px 0 42px;display:grid;grid-template-columns:1fr .8fr;gap:40px;align-items:end}
.rg-kicker{font-size:11px;font-weight:600;letter-spacing:.16em;color:var(--rg-gold);margin:0 0 18px}
.rg-hero h1{font-size:clamp(38px,4.8vw,68px);line-height:1.12;margin:0}
.rg-hero h1 span{color:var(--rg-gold)}
.rg-intro{max-width:450px;color:var(--rg-muted);font-size:15px;margin:0 0 16px}
.rg-link{display:inline-flex;align-items:center;min-height:44px;color:var(--rg-gold);font-size:13px;text-decoration:underline;text-underline-offset:4px}
.rg-link:hover{color:#ffedc3}
.rg-icon{display:inline-block;width:12px;height:12px;flex:0 0 12px;margin-left:6px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rg-toolbar{border-top:1px solid var(--rg-line);padding:22px 0 28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.rg-filters{display:flex;flex-wrap:wrap;gap:8px}
.rg-filters button{min-height:44px;padding:10px 18px;border:1px solid #ffffff35;border-radius:3px;background:transparent;color:#e5e2da;font:500 13px Inter,Arial,sans-serif;cursor:pointer}
.rg-filters button:hover{border-color:var(--rg-gold)}
.rg-filters button[aria-pressed="true"]{color:#171711;background:var(--rg-gold);border-color:var(--rg-gold)}
.rg-count{font-size:12px;color:var(--rg-muted);margin:0}
.rg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;padding-bottom:56px}
.rg-page #projekty{scroll-margin-top:110px}
.rg-project{border:1px solid var(--rg-line);border-radius:5px;background:#11120f;overflow:hidden;scroll-margin-top:115px;min-width:0}
.rg-cover{display:grid;place-items:center;position:relative;aspect-ratio:4/3;background:#1c1e1a}
.rg-cover img{display:block;width:100%;height:100%;max-width:var(--rg-source-width);max-height:var(--rg-source-height);object-fit:contain;min-height:0}
.rg-photo-count{position:absolute;bottom:14px;right:14px;background:#080908ed;border:1px solid #ffffff45;border-radius:3px;color:#fff;padding:6px 10px;font-size:12px}
.rg-project-copy{padding:24px 26px}
.rg-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:var(--rg-muted);margin:0 0 12px}
.rg-meta .rg-tags{color:var(--rg-gold)}
.rg-project h2{font-size:clamp(23px,2vw,29px);line-height:1.25;margin:0 0 14px}
.rg-description{color:#c2bfb6;font-size:14px;margin:0 0 12px}
.rg-source-note{font-size:12px;color:var(--rg-muted);border-left:2px solid #dec17f70;padding-left:12px;margin:14px 0}
.rg-project-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px}
.rg-project-links a{font-size:12px}
.rg-album{margin-top:12px;border-top:1px solid var(--rg-line)}
.rg-album summary{font-size:13px;color:#e5e2da;padding:14px 0;cursor:pointer;min-height:44px}
.rg-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:4px 0 12px}
.rg-thumbs a{display:block;border:1px solid var(--rg-line);border-radius:3px;overflow:hidden;background:#1c1e1a}
.rg-thumbs img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block}
.rg-note{font-size:12px;color:var(--rg-muted);border-top:1px solid var(--rg-line);padding-top:20px;margin:0 0 38px}
.rg-contact{border-top:1px solid var(--rg-line);padding:42px 0 52px;display:flex;justify-content:space-between;align-items:center;gap:28px}
.rg-contact h2{font-size:clamp(26px,3vw,36px);margin:0 0 10px;line-height:1.25}
.rg-contact p{margin:0;color:var(--rg-muted);font-size:14px}
.rg-contact .button{text-transform:none;white-space:nowrap;background:var(--rg-gold);font:600 13px Inter,Arial,sans-serif;min-height:48px;display:inline-flex;align-items:center}
.rg-viewer{width:min(1180px,96vw);max-width:96vw;height:min(900px,94dvh);max-height:94dvh;margin:auto;padding:0;border:1px solid #ffffff45;border-radius:6px;color:#f6f4ef;background:#11120f;overflow:hidden}
.rg-viewer::backdrop{background:#000d;backdrop-filter:blur(5px)}
.rg-viewer[open]{display:flex;flex-direction:column}
.rg-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;border-bottom:1px solid var(--rg-line)}
.rg-viewer h2{font-size:17px;line-height:1.4;letter-spacing:-.02em;margin:0}
.rg-close,.rg-prev,.rg-next{min-width:48px;min-height:48px;border:1px solid #ffffff50;border-radius:3px;background:#191b16;color:#fff;cursor:pointer;font:500 14px Inter,Arial,sans-serif;flex-shrink:0}
.rg-close{padding:10px 14px}
.rg-close:hover,.rg-prev:hover,.rg-next:hover{border-color:var(--rg-gold);color:var(--rg-gold)}
.rg-prev:disabled,.rg-next:disabled{opacity:.35;cursor:default}
.rg-stage{position:relative;min-height:0;flex:1;background:#080908;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y pinch-zoom}
.rg-stage img{display:block;width:100%;height:100%;object-fit:contain;min-height:0;opacity:1}
.rg-stage[data-loading] img{opacity:0}
.rg-image-status{position:absolute;text-align:center;padding:20px;max-width:460px;font-size:14px;color:var(--rg-muted)}
.rg-viewer-bottom{padding:14px 20px 18px;border-top:1px solid var(--rg-line)}
.rg-viewer-controls{display:flex;gap:12px;align-items:center;justify-content:space-between}
.rg-position{font-size:13px;font-variant-numeric:tabular-nums;text-align:center;margin:0}
.rg-viewer-caption{color:var(--rg-muted);font-size:13px;margin:10px 0 0;line-height:1.5}
.rg-resolution{color:var(--rg-muted);font-size:11px;margin:6px 0 0}
.rg-viewer-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 20px}
.rg-viewer-links .rg-link{font-size:12px}
.rg-empty{border:1px solid var(--rg-line);padding:32px;grid-column:1/-1;color:var(--rg-muted)}
html.rg-modal-open{overflow:hidden;scrollbar-gutter:stable}
.hm-page #realizacje .hm-work-grid>a{display:block;background:#11120f;border:1px solid #ffffff24;padding-bottom:16px}
.hm-page #realizacje .hm-work-grid img{object-fit:contain;max-width:var(--rg-source-width);max-height:var(--rg-source-height);margin-inline:auto;background:#1c1e1a}
.hm-page #realizacje .hm-work-grid span{font-size:13px;padding:14px 16px 0}
.hm-page #realizacje .rg-preview-note{display:block;font-size:11px;color:#b8b5ab;padding:8px 16px 0}
@media(max-width:800px){.rg-hero{grid-template-columns:1fr;gap:24px;padding-top:40px}.rg-intro{max-width:600px}.rg-grid{gap:24px 18px}.rg-project-copy{padding:20px}.rg-contact{align-items:flex-start;flex-direction:column}.rg-viewer-top,.rg-viewer-bottom{padding-left:14px;padding-right:14px}.rg-viewer h2{font-size:15px}}
@media(max-width:600px){.rg-wrap{width:88%}.rg-main{padding-top:80px}.rg-hero{padding:30px 0}.rg-hero h1{font-size:38px}.rg-grid{grid-template-columns:1fr}.rg-project-copy{padding:20px}.rg-filters button{padding:10px 14px}.rg-toolbar{gap:14px;padding:20px 0}.rg-viewer{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.rg-viewer-top{padding-top:max(12px,env(safe-area-inset-top))}.rg-viewer-bottom{padding-bottom:max(14px,env(safe-area-inset-bottom))}.rg-close{font-size:12px;min-width:44px;padding-inline:10px}}
@media(max-width:600px){html.rg-modal-open{scrollbar-gutter:auto}.hm-page #realizacje .hm-work-grid{grid-template-columns:1fr}.hm-page #realizacje .hm-work-grid img{height:230px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Keep progressive filters out of interaction, but reserve their final geometry. */
.rg-filters[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
