.cms-gallery{margin:28px 0;min-width:0;max-width:100%}
.cms-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(12,16,22,.94);color:#fff;box-sizing:border-box}
.cms-lightbox::backdrop{background:rgba(0,0,0,.85)}
.cms-lightbox[open]{display:flex;flex-direction:column}
.cms-lightbox-bar{display:flex;align-items:center;justify-content:center;gap:20px;padding:12px;padding-top:max(12px,env(safe-area-inset-top));flex-shrink:0}
.cms-lightbox-bar button{width:44px;height:44px;border:1px solid #7a8089;border-radius:8px;background:#252b34;color:white;font-size:24px;cursor:pointer}
.cms-lightbox-bar button:disabled{opacity:.35;cursor:default}
.cms-lightbox-bar button:focus-visible{outline:2px solid white;outline-offset:3px}
.cms-lightbox-bar [data-lightbox-close]{position:absolute;right:16px}
.cms-lightbox-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 20px 20px}
.cms-lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:white}
[data-lightbox]{cursor:zoom-in}
.cms-lightbox .cms-lightbox-bar{position:relative;min-height:68px;box-sizing:border-box;padding-right:72px;padding-left:72px;gap:12px}
.cms-gallery .cms-gallery-controls button,.cms-lightbox .cms-lightbox-bar button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;box-sizing:border-box;line-height:1;font:inherit;letter-spacing:normal;text-indent:0;box-shadow:none;appearance:none;transform:none}
.cms-gallery-controls button svg,.cms-lightbox-bar button svg{display:block;flex:none;width:20px;height:20px;pointer-events:none}
.cms-gallery [data-gallery-count],.cms-lightbox [data-lightbox-count]{display:flex;align-items:center;justify-content:center;min-width:56px;height:44px;margin:0;padding:0;font:500 16px/1 Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.cms-lightbox .cms-lightbox-bar button{background:#252b34;border-color:#626a75;color:#fff}
.cms-lightbox .cms-lightbox-bar button:hover:not(:disabled){background:#39414d;border-color:#aab2bd;color:#fff}
.cms-lightbox .cms-lightbox-bar button:focus{background:#252b34;color:#fff}
.cms-lightbox .cms-lightbox-bar button:focus:not(:focus-visible){outline:none}
.cms-lightbox .cms-lightbox-bar button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cms-lightbox .cms-lightbox-bar [data-lightbox-close]{right:16px;top:calc(max(12px,env(safe-area-inset-top)))}
.cms-gallery .cms-gallery-controls button:disabled,.cms-gallery .cms-gallery-controls button:disabled:hover{background:#fff;color:#283442;border-color:#c7cdd4}
.cms-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border:1px solid #e4e7ec;border-radius:12px;background:#f8f9fb}
.cms-gallery .cms-slide{flex:0 0 100%;min-width:0;margin:0;padding:16px;box-sizing:border-box;scroll-snap-align:start;text-align:center}
.cms-gallery .cms-slide a{display:block}
.cms-gallery .cms-slide img{display:block;width:100%;height:560px;max-height:70vh;object-fit:contain;margin:auto;border-radius:0}
.cms-gallery figcaption{font-size:14px;margin-top:10px;color:#475467}
.cms-gallery-controls:not([hidden]){display:flex;align-items:center;justify-content:center;gap:20px;margin-top:12px}
.cms-gallery-controls button{width:44px;height:44px;border:1px solid #c7cdd4;border-radius:8px;background:#fff;color:#283442;cursor:pointer;font-size:22px}
.cms-gallery-controls button:hover{background:#bc392b;color:#fff;border-color:#bc392b}
.cms-gallery-controls button:focus-visible,.cms-gallery-track:focus-visible{outline:2px solid #bc392b;outline-offset:3px}
.cms-gallery-controls button:disabled{opacity:.35;cursor:default}
@media(max-width:600px){.cms-gallery .cms-slide{padding:8px}.cms-gallery .cms-slide img{height:430px;max-height:65vh}}
