.ma-gallery{--ma-ink:#252525;--ma-line:#dedbd6;color:inherit}.ma-gallery *{box-sizing:border-box}.ma-heading{margin:0 0 1.5rem;letter-spacing:.045em}.ma-grid{display:grid;grid-template-columns:repeat(var(--ma-cols),minmax(0,1fr));gap:24px;align-items:stretch;grid-auto-rows:1fr}.ma-card{border:1px solid var(--ma-line);display:flex;flex-direction:column;min-width:0;background:transparent}.ma-picture{height:var(--ma-height);background:var(--ma-bg);display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}.ma-picture a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.ma-picture img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transition:opacity .2s}.ma-picture a:hover img{opacity:.9}.ma-info{padding:18px 20px;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.ma-info h3{font-size:1.05rem;line-height:1.35;margin:0 0 8px;overflow-wrap:anywhere}.ma-info p{margin:0;min-height:1.4em;line-height:1.4}.ma-more{margin-top:auto;padding-top:14px}.ma-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 24px}.ma-filters label{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.ma-filters input,.ma-filters select,.ma-filters button{font:inherit;border:1px solid #aaa;padding:9px;max-width:100%;background:white;color:#222}.ma-card[hidden],.ma-gallery [hidden]{display:none!important}.ma-detail .ma-picture{height:min(75vh,800px)}.ma-extra{max-width:100%;height:auto}.ma-dialog{position:fixed;inset:0;max-width:96vw;max-height:96vh;padding:42px 12px 12px;border:0;background:#171717;color:#fff;z-index:2147483647}.ma-dialog::backdrop{background:#000c}.ma-dialog img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}.ma-dialog button{position:absolute;right:12px;top:8px;background:white;color:black;border:0;padding:6px 12px;cursor:pointer}@media(max-width:1000px){.ma-grid{grid-template-columns:repeat(min(var(--ma-cols),2),minmax(0,1fr))}}@media(max-width:560px){.ma-grid{grid-template-columns:1fr}.ma-picture{height:min(var(--ma-height),80vw)}.ma-filters label{flex:1 1 42%}} 
.ma-gallery .ma-heading{font-weight:500;line-height:1.2;margin-bottom:26px}.ma-gallery .ma-filters{padding:18px;border:1px solid #dcd9d3;border-radius:6px;display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;margin-bottom:28px}.ma-gallery .ma-filters label{min-width:0}.ma-gallery .ma-filters input,.ma-gallery .ma-filters select,.ma-gallery .ma-filters button{width:100%;min-height:40px;border:1px solid #c9c5bd;border-radius:3px}.ma-gallery .ma-grid{gap:28px}.ma-gallery .ma-card{border:1px solid #dedbd5;border-radius:3px;overflow:hidden;box-shadow:0 2px 9px #00000008}.ma-gallery .ma-picture{padding:20px}.ma-gallery .ma-info{padding:20px;gap:6px}.ma-gallery .ma-info h3{font-weight:600;min-height:2.7em}.ma-gallery .ma-more{font-size:.85rem;padding-top:16px;text-decoration:none;border-top:1px solid #dedbd5;width:100%}.ma-gallery .ma-info p{font-size:.9rem}.ma-gallery .ma-info p:last-of-type{margin-bottom:12px}@media(max-width:560px){.ma-gallery .ma-filters{padding:12px;gap:9px}.ma-gallery .ma-grid{gap:18px}}

.ma-gallery .ma-pagination{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:28px 0}.ma-gallery .ma-page-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ma-gallery .ma-page-buttons button{font:inherit;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid var(--ma-line);border-radius:3px;background:#fff;color:#252525;cursor:pointer}.ma-gallery .ma-page-buttons button[aria-current=page]{background:#252525;color:white;border-color:#252525}.ma-gallery .ma-page-buttons button:disabled{opacity:.45;cursor:default}.ma-gallery .ma-page-buttons button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.ma-gallery .ma-page-info{font-size:.9rem}@media(max-width:560px){.ma-gallery .ma-pagination{justify-content:center}.ma-gallery .ma-page-buttons{justify-content:center}}

/* Artwork zoom: native modal top layer, independent of sticky headers. */
.ma-gallery a[data-ma-zoom]{cursor:zoom-in}
body dialog.ma-zoom-view[open]{position:fixed!important;inset:0!important;margin:auto!important;width:fit-content!important;height:fit-content!important;max-width:96vw!important;max-height:96dvh!important;box-sizing:border-box!important;padding:44px 12px 12px!important;border:0!important;border-radius:4px!important;background:#171717!important;color:#fff!important;overflow:auto!important;visibility:visible!important;opacity:1!important;transform:none!important;display:block!important}
body dialog.ma-zoom-view::backdrop{background:rgba(0,0,0,.85)}
body dialog.ma-zoom-view img{width:auto!important;height:auto!important;max-width:calc(96vw - 24px)!important;max-height:calc(96dvh - 56px)!important;object-fit:contain!important;margin:auto!important;display:block!important}
body dialog.ma-zoom-view img[hidden],body dialog.ma-zoom-view p[hidden]{display:none!important}
body dialog.ma-zoom-view .ma-zoom-close{position:absolute!important;top:5px!important;right:8px!important;width:36px!important;height:36px!important;line-height:1!important;font-size:27px!important;padding:0!important;border:0!important;background:#fff!important;color:#171717!important;border-radius:3px!important;cursor:pointer!important}

/* Dedicated pagination, independent of theme navigation rules. */
.ma-gallery div.ma-pagination[data-ma-pagination]:not([hidden]){display:flex!important;position:static!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;overflow:visible!important;float:none!important;clear:both;justify-content:center;flex-direction:column;align-items:center;padding:16px 0;border-top:1px solid var(--ma-line);margin:28px 0;transform:none!important}
.ma-gallery div.ma-pagination .ma-page-buttons{display:flex!important;justify-content:center;flex-wrap:wrap;gap:8px;visibility:visible!important}
.ma-gallery div.ma-pagination .ma-page-buttons button{display:inline-flex!important;align-items:center;justify-content:center;position:static!important;width:auto!important;min-width:44px;min-height:44px;visibility:visible!important;text-transform:none;line-height:1.3}

/* Gallery owns placement; theme grid utilities must not offset individual cards. */
.ma-gallery > .ma-grid{display:grid!important;grid-auto-flow:row;grid-auto-rows:1fr;align-items:stretch;justify-items:stretch;min-width:0;width:100%;}
.ma-gallery > .ma-grid > .ma-card{grid-column:auto!important;grid-row:auto!important;float:none!important;clear:none!important;width:auto!important;max-width:none!important;min-width:0;margin:0!important;align-self:stretch;justify-self:stretch;}
