.ff-gallery{position:relative;--ff-gallery-dots-height:22px}
.ff-gallery-photos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.ff-gallery-photos::-webkit-scrollbar{display:none}
.ff-gallery-photos>.ff-zoom{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.ff-gallery-photos img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.ff-gallery-dots{display:flex;justify-content:center;height:var(--ff-gallery-dots-height);padding-top:10px;box-sizing:border-box;overflow:hidden;pointer-events:none}
.ff-gallery-dots span{display:flex;align-items:center;justify-content:center;width:14px;height:10px}
.ff-gallery-dots span::before{content:"";width:6px;height:6px;border-radius:50%;background:color-mix(in srgb,var(--ff-ink) 35%,transparent)}
.ff-gallery-dots .is-active::before{width:8px;height:8px;background:var(--ff-ink)}
.ff-zoom{position:relative;display:block;cursor:zoom-in}
.ff-zoom-hint{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--ff-ink)}
.ff-zoom-hint svg{width:14px;height:14px}
.ff-lightbox{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(24,24,24,.96);color:#fff}
.ff-lightbox::backdrop{background:rgba(24,24,24,.96)}
.ff-lightbox figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;margin:0;padding:64px 16px 24px;box-sizing:border-box}
.ff-lightbox img{max-width:100%;max-height:calc(100% - 40px);object-fit:contain;touch-action:pan-y}
.ff-lightbox figcaption{font-size:15px;text-align:center}
.ff-lightbox button,.ff-gallery button{position:absolute;display:flex;align-items:center;justify-content:center;width:var(--ff-tap-target);height:var(--ff-tap-target);padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:var(--ff-ink);box-shadow:0 2px 10px rgba(0,0,0,.25);cursor:pointer}
.ff-lightbox button .ff-icon,.ff-gallery button .ff-icon{display:flex}
.ff-lightbox button svg,.ff-gallery button svg{width:20px;height:20px}
.ff-lightbox-close{top:12px;right:12px}
.ff-lightbox-prev,.ff-lightbox-next{top:calc(50% - var(--ff-tap-target) / 2)}
.ff-gallery button{top:calc((100% - var(--ff-gallery-dots-height)) / 2 - var(--ff-tap-target) / 2)}
.ff-lightbox-prev,.ff-gallery-prev{left:12px}
.ff-lightbox-next,.ff-gallery-next{right:12px}
.ff-gallery button:focus-visible,.ff-lightbox button:focus-visible,.ff-zoom:focus-visible{outline:var(--ff-focus-ring);outline-offset:2px}
@media (hover:none){.ff-gallery button{display:none}}
