.onef-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border-radius:12px;overflow:hidden}.onef-gallery-1{grid-template-columns:1fr}.onef-gallery-item{display:block;aspect-ratio:4/3;overflow:hidden;background:#8882}.onef-gallery-item img{width:100%;height:100%;object-fit:cover;display:block}.onef-lightbox{border:0;padding:12px;background:#111;color:#fff;max-width:95vw;max-height:95dvh;border-radius:8px}.onef-lightbox::backdrop{background:#000d}.onef-lightbox img{display:block;width:auto;max-width:85vw;max-height:77dvh;object-fit:contain;margin:auto;touch-action:pan-y}.onef-lightbox div{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px}.onef-lightbox button{background:#333;color:white;border:1px solid #777;padding:8px;border-radius:5px}
.onef-gallery{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:8px;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:5px;align-items:stretch}.onef-gallery .onef-gallery-item{flex:1 0 0;min-width:140px;max-width:100%;scroll-snap-align:start;border-radius:9px}.onef-gallery-1 .onef-gallery-item{flex:1 0 100%;min-width:0;aspect-ratio:auto;max-height:440px}.onef-gallery-1 .onef-gallery-item img{max-height:440px;object-fit:contain}.onef-gallery-2 .onef-gallery-item{flex-basis:calc(50% - 4px)}.onef-gallery-3 .onef-gallery-item{flex-basis:calc(33.333% - 6px)}.onef-gallery-4 .onef-gallery-item{flex-basis:calc(25% - 6px)}@media(max-width:700px){.onef-gallery:not(.onef-gallery-1) .onef-gallery-item{min-width:145px}}
