#top .csp-portfolio-gallery { clear:both; width:100%; margin:0 0 30px; }
#top .csp-gallery-viewport { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; position:relative; border-radius:2px; }
#top .csp-gallery-viewport::-webkit-scrollbar { display:none; }
#top .csp-gallery-slide { flex:0 0 100%; display:block; min-width:0; aspect-ratio:16/10; scroll-snap-align:start; scroll-snap-stop:always; background:#f4f4f4; cursor:zoom-in; }
#top .csp-gallery-slide img { display:block; width:100%; height:100%; max-height:none; object-fit:cover; margin:0; }
#top .csp-gallery-slide .image-overlay { display:none !important; }
#top .csp-gallery-controls { display:flex; gap:14px; align-items:center; justify-content:center; padding:14px 0 0; }
#top .csp-gallery-controls[hidden] { display:none; }
#top .csp-gallery-controls button { appearance:none; border:0; cursor:pointer; padding:0; box-shadow:none; }
#top .csp-gallery-prev, #top .csp-gallery-next { flex-shrink:0; width:40px; height:40px; border-radius:50%; background:#f1f1f1; color:#222; font-size:24px; line-height:40px; }
#top .csp-gallery-pages { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; max-width:80%; }
#top .csp-gallery-page { width:28px; height:28px; background:transparent; position:relative; }
#top .csp-gallery-page::after { content:''; position:absolute; width:8px; height:8px; border-radius:50%; background:#aaa; top:10px; left:10px; }
#top .csp-gallery-page[aria-current="true"]::after { background:#222; transform:scale(1.3); }
#top .csp-portfolio-gallery :focus-visible, .csp-portfolio-lightbox button:focus-visible { outline:2px solid #2271b1; outline-offset:3px; }
html.csp-lightbox-open { overflow:hidden; }
dialog.csp-portfolio-lightbox { position:fixed; inset:0; margin:auto; padding:50px 60px; width:100vw; height:100dvh; max-width:100vw; max-height:100dvh; border:0; background:rgba(0,0,0,.96); color:#fff; box-sizing:border-box; }
dialog.csp-portfolio-lightbox::backdrop { background:rgba(0,0,0,.9); }
dialog.csp-portfolio-lightbox[open] { display:flex; align-items:center; justify-content:center; }
dialog.csp-portfolio-lightbox figure { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; margin:0; }
dialog.csp-portfolio-lightbox .csp-lightbox-image { display:block; width:auto; height:auto; min-height:0; max-width:100%; max-height:calc(100% - 32px); object-fit:contain; }
dialog.csp-portfolio-lightbox .csp-lightbox-count { padding-top:10px; color:#fff; font-size:14px; }
dialog.csp-portfolio-lightbox button { position:absolute; appearance:none; border:0; background:#333; color:#fff; cursor:pointer; border-radius:50%; width:44px; height:44px; line-height:44px; padding:0; font-size:28px; z-index:1; }
dialog.csp-portfolio-lightbox button[hidden] { display:none; }
dialog.csp-portfolio-lightbox .csp-lightbox-close { top:12px; right:12px; }
dialog.csp-portfolio-lightbox .csp-lightbox-prev { left:10px; top:calc(50% - 22px); }
dialog.csp-portfolio-lightbox .csp-lightbox-next { right:10px; top:calc(50% - 22px); }
@media(max-width:600px) { dialog.csp-portfolio-lightbox { padding:64px 12px 72px; } dialog.csp-portfolio-lightbox .csp-lightbox-prev, dialog.csp-portfolio-lightbox .csp-lightbox-next { top:auto; bottom:14px; } }
