.portfolio-archive{padding-top:2rem}.portfolio-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.75rem,1.6vw,1.25rem)}.gallery-toolbar{display:grid;grid-template-columns:1fr auto;gap:1.2rem 2rem;align-items:end;margin-bottom:1.5rem}.gallery-toolbar h2{margin-top:.4rem;font-family:Poppins,sans-serif;font-size:clamp(1.7rem,3vw,2.8rem)}.gallery-count{color:var(--muted);white-space:nowrap}.gallery-count strong{color:#fff;font-size:1.2rem}.gallery-search{grid-column:1/-1;display:flex;align-items:center;gap:.8rem;padding:.9rem 1rem;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(8,13,29,.72);transition:border-color .2s ease,box-shadow .2s ease}.gallery-search:focus-within{border-color:rgba(46,230,214,.55);box-shadow:0 0 0 4px rgba(46,230,214,.08)}.gallery-search svg{width:1.2rem;fill:none;stroke:#9eabc9;stroke-width:1.8}.gallery-search input{width:100%;border:0;outline:0;color:#fff;background:transparent;font:inherit}.gallery-search input::placeholder{color:#7886a8}.gallery-filters{display:flex;gap:.65rem;overflow-x:auto;margin:0 0 1.75rem;padding:0 0 .5rem;scrollbar-width:thin}.gallery-filter{flex:0 0 auto;padding:.68rem 1rem;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#aeb9d4;background:rgba(255,255,255,.045);font:600 .82rem/1 Inter,sans-serif;cursor:pointer;transition:.2s ease}.gallery-filter:hover,.gallery-filter.active{color:#07101d;border-color:var(--accent);background:var(--accent);transform:translateY(-2px)}.gallery-card{min-width:0;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:22px;color:#fff;background:rgba(13,19,39,.8);text-align:left;cursor:zoom-in;box-shadow:0 12px 32px rgba(2,5,16,.24);transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease}.gallery-card:hover,.gallery-card:focus-visible{transform:translateY(-7px);border-color:rgba(46,230,214,.36);box-shadow:0 22px 48px rgba(2,5,16,.42)}.gallery-card:focus-visible{outline:3px solid rgba(46,230,214,.65);outline-offset:3px}.gallery-card-media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#11182b}.gallery-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.75,.25,1),filter .3s ease}.gallery-card:hover img{transform:scale(1.045);filter:brightness(.72)}.gallery-card-open{position:absolute;right:.8rem;bottom:.8rem;padding:.48rem .65rem;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(5,9,20,.78);font-size:.72rem;font-weight:700;opacity:0;transform:translateY(8px);transition:.25s ease}.gallery-card:hover .gallery-card-open,.gallery-card:focus-visible .gallery-card-open{opacity:1;transform:none}.gallery-card-caption{display:grid;gap:.25rem;padding:.9rem 1rem 1rem}.gallery-card-caption strong,.gallery-card-caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-card-caption strong{font-size:.86rem}.gallery-card-caption span{color:var(--muted);font-size:.76rem}.gallery-more-wrap{display:flex;justify-content:center;margin-top:2.25rem}.gallery-more[hidden]{display:none}.gallery-no-results{grid-column:1/-1;padding:4rem 1.5rem;border:1px dashed rgba(255,255,255,.15);border-radius:24px;color:var(--muted);text-align:center}.gallery-lightbox{width:min(94vw,1400px);max-width:none;height:min(92vh,980px);max-height:none;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:24px;color:#fff;background:rgba(5,8,18,.96);box-shadow:0 35px 100px rgba(0,0,0,.65)}.gallery-lightbox::backdrop{background:rgba(1,3,10,.86);backdrop-filter:blur(12px)}.gallery-lightbox figure{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;margin:0}.lightbox-stage{display:grid;place-items:center;min-height:0;padding:3.5rem 5rem 1rem}.lightbox-stage img{display:block;max-width:100%;max-height:100%;border-radius:12px;object-fit:contain;box-shadow:0 18px 55px rgba(0,0,0,.35)}.gallery-lightbox figcaption{display:grid;grid-template-columns:1fr auto;gap:.2rem 1rem;align-items:center;padding:1rem 1.5rem 1.25rem;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}.lightbox-client{color:var(--accent);font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.lightbox-title{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lightbox-position{grid-column:2;grid-row:1/3;color:var(--muted);font-variant-numeric:tabular-nums}.lightbox-close,.lightbox-arrow{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);color:#fff;background:rgba(15,20,38,.76);cursor:pointer;backdrop-filter:blur(8px)}.lightbox-close{top:1rem;right:1rem;width:2.6rem;height:2.6rem;border-radius:50%;font-size:1.7rem}.lightbox-arrow{top:50%;width:3rem;height:3rem;border-radius:50%;font-size:2rem;transform:translateY(-50%)}.lightbox-prev{left:1rem}.lightbox-next{right:1rem}.lightbox-close:hover,.lightbox-arrow:hover{border-color:var(--accent);background:rgba(46,230,214,.16)}.lightbox-open{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:820px){.portfolio-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lightbox-stage{padding:3.5rem .75rem 1rem}.lightbox-arrow{top:auto;bottom:5.4rem}}
@media(max-width:480px){.gallery-toolbar{grid-template-columns:1fr;align-items:start}.gallery-count{grid-row:2}.gallery-card{border-radius:16px}.gallery-card-caption{padding:.75rem}.gallery-lightbox{width:100vw;height:100dvh;border:0;border-radius:0}}
.gallery-filters{padding-top:.45rem;padding-bottom:.65rem;scrollbar-width:none;-ms-overflow-style:none;cursor:grab;user-select:none;overscroll-behavior-inline:contain;touch-action:pan-y}
.gallery-filters::-webkit-scrollbar{display:none;width:0;height:0}
.gallery-filters.is-dragging{cursor:grabbing;scroll-behavior:auto}
.gallery-filters.is-dragging .gallery-filter{pointer-events:auto}
.lightbox-stage{overflow:hidden}
.lightbox-stage img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.gallery-lightbox figure{display:flex;flex-direction:column;height:100%}
.lightbox-stage{flex:1 1 auto;width:100%;min-height:0;box-sizing:border-box;padding:3.5rem 5.5rem 1.25rem;overflow:hidden}
.lightbox-stage img{display:block;width:auto;height:auto;max-width:min(82vw,1200px);max-height:calc(92vh - 190px);margin:auto;object-fit:contain;border-radius:12px}
.gallery-lightbox figcaption{flex:0 0 auto}
@media(max-width:820px){.lightbox-stage{padding:4rem 1rem 1rem}.lightbox-stage img{max-width:88vw;max-height:calc(100dvh - 190px)}}
.gallery-lightbox{width:min(88vw,1280px);height:min(88vh,820px)}
.gallery-lightbox figure{display:flex!important;flex-direction:column!important;width:100%;height:100%;overflow:hidden}
.gallery-lightbox .lightbox-stage{display:flex!important;flex:1 1 0!important;align-items:center;justify-content:center;width:100%;min-width:0;min-height:0;padding:3.5rem 4.5rem 1rem!important;overflow:hidden;box-sizing:border-box}
.gallery-lightbox .lightbox-stage img{display:block!important;flex:none;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;margin:auto;object-fit:contain!important}
.gallery-lightbox figcaption{position:relative;flex:0 0 auto!important;min-height:82px;box-sizing:border-box}
@media(max-width:820px){.gallery-lightbox{width:96vw;height:88dvh}.gallery-lightbox .lightbox-stage{padding:4rem 1rem 1rem!important}}
.gallery-lightbox[open]{position:fixed!important;inset:0!important;margin:auto!important}
.lightbox-close,.lightbox-arrow{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important}
.lightbox-close svg,.lightbox-arrow svg{display:block;width:1.45rem;height:1.45rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.gallery-lightbox[open]{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;inset:auto!important;width:min(84vw,1180px)!important;height:min(78vh,760px)!important;margin:0!important;transform:translate(-50%,-50%)!important;box-sizing:border-box}
.gallery-lightbox .lightbox-stage{display:flex!important;align-items:center!important;justify-content:center!important;padding:3.75rem 5rem 1.25rem!important}
.gallery-lightbox .lightbox-stage img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;margin:auto!important;object-fit:contain!important}
.lightbox-close,.lightbox-arrow{display:flex!important;align-items:center!important;justify-content:center!important;width:3.25rem!important;height:3.25rem!important;padding:0!important;color:#fff!important;line-height:0!important}
.lightbox-close svg,.lightbox-arrow svg{display:block!important;width:1.5rem!important;height:1.5rem!important;overflow:visible;fill:none!important;stroke:#fff!important;stroke-width:2.6!important}
@media(max-width:820px){.gallery-lightbox[open]{width:94vw!important;height:82dvh!important}.gallery-lightbox .lightbox-stage{padding:4rem 1rem 1rem!important}}
.gallery-lightbox[open]{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;margin:0!important;transform:translate(-50%,-50%)!important}

/* Final lightbox alignment: center the dialog in the viewport and center the
   white SVG controls inside their circular buttons. */
dialog.gallery-lightbox[open]{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:min(84vw,1180px)!important;height:min(78vh,760px)!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;transform:none!important}
dialog.gallery-lightbox .lightbox-close,dialog.gallery-lightbox .lightbox-arrow{display:grid!important;place-items:center!important;width:3.25rem!important;height:3.25rem!important;padding:0!important;color:#fff!important;line-height:0!important}
dialog.gallery-lightbox .lightbox-close svg,dialog.gallery-lightbox .lightbox-arrow svg{display:block!important;width:1.5rem!important;height:1.5rem!important;margin:auto!important;fill:none!important;stroke:#fff!important;stroke-width:2.6!important;stroke-linecap:round!important;stroke-linejoin:round!important}
@media(max-width:820px){dialog.gallery-lightbox[open]{width:94vw!important;height:82dvh!important;max-width:94vw!important;max-height:82dvh!important}}
