.gallery-shell{position:relative}.gallery-grid{display:block!important;overflow:hidden!important;padding:0!important;scrollbar-width:none;touch-action:pan-y}.gallery-grid::-webkit-scrollbar{display:none}.gallery-track{display:flex;align-items:stretch;will-change:transform}.gallery-page{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:16px;padding:8px 2px}.gallery-page figure{min-width:0;margin:0}.gallery-page .gallery-item{width:100%;height:auto;aspect-ratio:1.2;min-height:0;border:0;border-radius:12px;overflow:hidden;background:#eceeeb;cursor:zoom-in}.gallery-page .gallery-item img{width:100%;height:100%;object-fit:contain!important;user-select:none}.gallery-page figcaption{margin-top:7px;font-size:13px;line-height:1.4}.gallery-controls{position:absolute;inset:0;pointer-events:none;margin:0}.gallery-controls button{position:absolute;top:50%;transform:translateY(-50%);pointer-events:auto;width:46px;height:46px;border-radius:50%;border:1px solid #c3c9c2;background:rgba(246,248,244,.86);backdrop-filter:blur(8px);color:#344239;font-size:23px;cursor:pointer;opacity:0;transition:opacity .2s;box-shadow:0 2px 12px #0002}.gallery-controls [data-scroll="-1"]{left:-16px}.gallery-controls [data-scroll="1"]{right:-16px}.gallery-shell:hover .gallery-controls button,.gallery-shell:focus-within .gallery-controls button{opacity:1}.gallery-controls button:disabled{visibility:hidden}.gallery-status{font-size:13px;color:#687068;text-align:center;margin:16px 0}.add-photo-slot{margin:16px 0;padding:12px;background:#eef2ec;border:1px dashed #bac7b6}.inline-editor input[type=checkbox]{display:inline;width:auto}.gallery-page .photo-actions{flex-wrap:wrap;gap:4px}.gallery-page .photo-actions button{min-height:44px;padding:5px 10px}.gallery-page .inline-editor{font-size:12px;margin:8px 0;padding:3px}.gallery-page .inline-editor summary{padding:5px}.lightbox{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important}.lightbox-stage{height:calc(100dvh - 145px)}.lightbox-stage img{width:auto!important;height:auto!important;max-width:min(90vw,100%)!important;max-height:min(85dvh,100%)!important;object-fit:contain!important;justify-self:center;touch-action:pan-y}.lightbox-caption:empty{display:none}@media(max-width:1000px){.gallery-page{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}@media(max-width:600px){.gallery-page{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-controls button{opacity:1;width:40px;height:40px}.gallery-controls [data-scroll="-1"]{left:-12px}.gallery-controls [data-scroll="1"]{right:-12px}.lightbox-stage{height:calc(100dvh - 165px)}}@media(hover:none){.gallery-controls button{opacity:1}}@media(prefers-reduced-motion:reduce){.gallery-controls button{transition:none}}.gallery-page a.gallery-item{display:block;position:relative;text-decoration:none;color:inherit}
@media(max-width:700px){.lightbox-stage img{max-width:min(94vw,100%)!important}}.lightbox-stage{grid-template-rows:minmax(0,1fr);min-height:0}.lightbox-stage img{min-width:0;min-height:0}
