.blocksGallery{min-width:0;max-width:100%}
.blocksGallery [hidden]{display:none!important}
.blocksGalleryStage{position:relative;aspect-ratio:var(--blocks-gallery-ratio,3/2);background:#f3f1ed;min-width:0;overflow:hidden}
.blocksGalleryStage>[data-gallery-main-link],.blocksGalleryStage picture{display:block;width:100%;height:100%}
.blocksGalleryImage{display:block;width:100%;height:100%;object-fit:contain}
.blocksGallery button{font:inherit;color:inherit;cursor:pointer}
.blocksGalleryArrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;border:1px solid #ddd;border-radius:50%;background:rgba(255,255,255,.9);line-height:1}
.blocksGalleryArrow-previous{left:12px}.blocksGalleryArrow-next{right:12px}
.blocksGallery button:disabled{opacity:.4;cursor:default}
.blocksGalleryMeta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:.875em}
.blocksGalleryMeta p{margin:0}
.blocksGalleryMeta button{border:0;background:transparent;padding:8px;text-decoration:underline}
.blocksGalleryCaption{white-space:pre-line;margin:10px 0;overflow-wrap:anywhere}
.blocksGalleryThumbnails{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding:6px 3px;margin-top:12px;align-items:center}
.blocksGalleryThumbnails>a{display:block;flex:0 0 80px;border:2px solid transparent;border-radius:2px;text-decoration:none}
.blocksGalleryThumbnails>a[aria-current=true]{border-color:currentColor}
.blocksGalleryThumbnails img{display:block;width:80px;height:60px;object-fit:cover}
.blocksGallery a:focus-visible,.blocksGallery button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.blocksGallery[data-gallery-canvas="1"] a{pointer-events:none}
.blocksShopProductGallery .blocksGalleryStage{background:transparent}
.blocksWidgetShop .blocksShopProductGallery img[data-gallery-image]{height:100%}
.blocksShopProductGallery [data-gallery-main-link]:focus-visible{outline-offset:-3px}
.blocksShopProductGallery .blocksGalleryThumbnails{padding:6px}
.blocksShopProductGalleryStatus{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.blocksGalleryDialog{box-sizing:border-box;max-width:96vw;width:min(1400px,96vw);max-height:94vh;border:0;padding:20px;background:#fff;color:#222;overflow:auto}
.blocksGalleryDialog::backdrop{background:rgba(0,0,0,.8)}
.blocksGalleryDialogContent{position:relative;padding-top:40px}
.blocksGalleryDialog [data-gallery-close]{position:absolute;right:0;top:0;width:40px;height:40px;border:1px solid #aaa;border-radius:50%;background:#fff;font-size:28px;line-height:1}
.blocksGalleryDialog [data-gallery-dialog-image]{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}
.blocksGalleryDialog [data-gallery-dialog-caption]{white-space:pre-line;overflow-wrap:anywhere}
.blocksGalleryDialogControls{display:flex;justify-content:space-between;gap:16px}
.blocksGalleryDialogControls button{border:1px solid #aaa;background:#fff;padding:10px 14px}
@media(max-width:480px){.blocksGalleryArrow{width:40px;height:40px}.blocksGalleryArrow-previous{left:6px}.blocksGalleryArrow-next{right:6px}.blocksGalleryDialog{padding:12px}}
