/* ELIGUL GALLERY LIGHTBOX V1 - isolated, no changes to portfolio layout */
#eligulGalleryViewer[hidden]{display:none!important}
#eligulGalleryViewer{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;color:#fff;font-family:'DM Sans',Arial,sans-serif}
#eligulGalleryViewer *{box-sizing:border-box}
#eligulGalleryViewer .eglv-backdrop{position:absolute;inset:0;background:rgba(12,12,12,.96);backdrop-filter:blur(8px)}
#eligulGalleryViewer .eglv-panel{position:relative;z-index:1;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none;padding:72px 84px 30px}
#eligulGalleryViewer .eglv-figure{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%;max-height:100%;pointer-events:auto;min-height:0}
#eligulGalleryViewer .eglv-image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 145px);object-fit:contain;border-radius:2px;box-shadow:0 16px 70px rgba(0,0,0,.25)}
#eligulGalleryViewer .eglv-footer{width:100%;min-height:32px;padding-top:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;color:rgba(255,255,255,.75);font-size:12px;line-height:1.4;letter-spacing:.02em}
#eligulGalleryViewer .eglv-caption{max-width:min(70vw,700px);overflow-wrap:anywhere}
#eligulGalleryViewer .eglv-counter{margin-left:auto;font-size:11px;white-space:nowrap;letter-spacing:.14em}
#eligulGalleryViewer .eglv-close,#eligulGalleryViewer .eglv-previous,#eligulGalleryViewer .eglv-next{position:absolute;z-index:3;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(37,37,37,.62);color:#fff;width:46px;height:46px;cursor:pointer;transition:background .18s ease,border-color .18s ease}
#eligulGalleryViewer .eglv-close{top:24px;right:28px}
#eligulGalleryViewer .eglv-previous{left:25px;top:50%;transform:translateY(-50%)}
#eligulGalleryViewer .eglv-next{right:25px;top:50%;transform:translateY(-50%)}
#eligulGalleryViewer button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#eligulGalleryViewer button:hover{background:rgba(255,255,255,.17);border-color:rgba(255,255,255,.6)}
#eligulGalleryViewer button:focus-visible{outline:2px solid white;outline-offset:3px}
#eligulGalleryViewer button:disabled{opacity:.25;pointer-events:none}
@media(max-width:700px){#eligulGalleryViewer .eglv-panel{padding:64px 14px 70px}#eligulGalleryViewer .eglv-image{max-height:calc(100dvh - 170px)}#eligulGalleryViewer .eglv-previous,#eligulGalleryViewer .eglv-next{top:auto;bottom:16px;transform:none;width:43px;height:43px}#eligulGalleryViewer .eglv-previous{left:20px}#eligulGalleryViewer .eglv-next{right:20px}#eligulGalleryViewer .eglv-close{top:15px;right:15px;width:42px;height:42px}#eligulGalleryViewer .eglv-footer{font-size:11px}}
@media(prefers-reduced-motion:reduce){#eligulGalleryViewer button{transition:none}}
