/* JM 3.3.4 — gallery-only editorial layer */
body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--jm-card-gap,16px);align-items:stretch}
body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid .jm-g-tile{grid-column:span 6;min-height:clamp(240px,25vw,420px);animation:none;overflow:hidden}
body[data-page] :is(#gallery,#gallery-preview) .jm-g-tile[data-editorial-role=lead]{grid-column:span 7;grid-row:span 2;min-height:clamp(380px,42vw,660px)}
body[data-page] :is(#gallery,#gallery-preview) .jm-g-tile[data-editorial-role=side]{grid-column:span 5;min-height:clamp(180px,20vw,320px)}
body[data-page] :is(#gallery,#gallery-preview) .jm-g-tile[data-editorial-role=solo]{grid-column:span 12;min-height:clamp(260px,32vw,480px)}
body[data-page] :is(#gallery,#gallery-preview) .jm-g-tile[hidden]{display:none!important}
.jm-g-tile img{transform:translateY(var(--jm-photo-y,0px)) scale(1.08);transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.jm-g-tile:hover img,.jm-g-tile:focus-visible img{transform:translateY(var(--jm-photo-y,0px)) scale(1.14)}
.jm-g-tile .jm-g-overlay{padding:clamp(18px,2.2vw,36px);background:linear-gradient(0deg,#071f19ed 0%,#071f1940 55%,transparent 80%);gap:8px}
.jm-g-overlay b{border-radius:50%;width:44px;height:44px;display:grid;place-items:center;padding:0}
#gallery .jm-g-filters{margin-block:0 16px;gap:8px}
#gallery .jm-g-filters button{border:0;border-bottom:2px solid var(--line);padding:10px 16px}
#gallery .jm-g-filters button[aria-pressed=true]{background:transparent;color:var(--ink);border-color:#78a847}
#jm-g-count{font-variant-numeric:tabular-nums;margin:0 0 16px}
.jm-g-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;box-sizing:border-box;padding:clamp(16px,3vw,48px);background:#0b1e16;color:#f5f4ec;overflow:auto;overscroll-behavior:contain}
.jm-g-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px}
.jm-g-dialog img{height:100%;min-height:0;width:100%;object-fit:contain;touch-action:pan-y}
.jm-g-dialog .jm-g-controls{margin:0}
.jm-g-dialog button{min-width:44px;min-height:44px;border-radius:50%}
.jm-g-dialog #jm-g-title{font-size:clamp(18px,2vw,28px);margin:0;text-align:center}
@media(max-width:767px){body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid .jm-g-tile{grid-column:span 12;grid-row:auto;min-height:260px} .jm-g-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto auto}}
@media(prefers-reduced-motion:reduce){.jm-g-tile img{transform:none!important;transition:none!important}.jm-g-tile{clip-path:none!important}}
