/* Scoped to this plugin. No theme, header, footer, or global typography changes. */
.mcsg-gallery{--maria-green:#14532d;--maria-ink:#04160a;--maria-lime:#b1ed13;--maria-muted:#4c6255;box-sizing:border-box;max-width:1240px;width:100%;margin:0 auto;padding:40px 0;color:var(--maria-ink);font-family:inherit;isolation:isolate}.mcsg-gallery *,.mcsg-dialog *{box-sizing:border-box}.mcsg-gallery [hidden],.mcsg-dialog [hidden]{display:none!important}.mcsg-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 28px;padding:0}.mcsg-heading .mcsg-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0;color:var(--maria-green);font-size:11px;font-weight:800;line-height:1.4;letter-spacing:2px}.mcsg-eyebrow::before{content:"";display:inline-block;width:30px;height:4px;background:var(--maria-lime);border-radius:3px}.mcsg-heading h2{font-family:inherit;font-size:clamp(28px,3.6vw,44px);font-weight:750;line-height:1.15;letter-spacing:-1.2px;color:var(--maria-ink);padding:0;margin:0;overflow-wrap:anywhere}.mcsg-heading .mcsg-description{max-width:660px;font-size:15px;line-height:1.7;margin:14px 0 0;padding:0;color:var(--maria-muted);overflow-wrap:anywhere}.mcsg-total{flex:none;white-space:nowrap;border:1px solid #d7e5da;border-radius:99px;padding:8px 14px;font-size:12px;line-height:1.4;font-weight:600;color:var(--maria-green);background:#f4f9f2}.mcsg-grid{display:grid;gap:16px;align-items:stretch}.mcsg-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mcsg-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mcsg-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.mcsg-gallery .mcsg-item{margin:0!important;padding:0;min-width:0;display:flex;flex-direction:column;gap:0}.mcsg-image-link{display:block;flex:1;position:relative;isolation:isolate;aspect-ratio:4/3;min-height:0;overflow:hidden;background:#eff5ed;border-radius:14px;text-decoration:none!important;box-shadow:0 1px 2px #04160a10}.mcsg-gallery .mcsg-image-link img{position:absolute;inset:0;display:block;margin:0;padding:0;border:0;width:100%!important;height:100%!important;max-width:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1);transform-origin:center}.mcsg-fit-contain .mcsg-image-link img{object-fit:contain}.mcsg-image-link::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 62%,#04160a38);pointer-events:none}.mcsg-zoom{position:absolute;z-index:1;right:14px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff9e;border-radius:50%;background:#fffffff2;color:var(--maria-green);font:500 23px/1 Arial,sans-serif;box-shadow:0 3px 15px #04160a24;transition:background .2s,transform .2s}.mcsg-gallery .mcsg-item figcaption{padding:10px 2px 2px;font:inherit;font-size:13px;line-height:1.6;color:var(--maria-muted);overflow-wrap:anywhere}.mcsg-mosaic .mcsg-cols-3>.mcsg-item:first-child,.mcsg-mosaic .mcsg-cols-4>.mcsg-item:first-child{grid-column:span 2;grid-row:span 2}.mcsg-mosaic .mcsg-cols-3>.mcsg-item:first-child .mcsg-image-link,.mcsg-mosaic .mcsg-cols-4>.mcsg-item:first-child .mcsg-image-link{aspect-ratio:auto;min-height:280px}.mcsg-mosaic .mcsg-cols-2>.mcsg-item:first-child{grid-column:span 2}.mcsg-mosaic .mcsg-cols-2>.mcsg-item:first-child .mcsg-image-link{aspect-ratio:16/9}.mcsg-gallery .mcsg-grid>.mcsg-item:only-child{grid-column:1/-1;grid-row:auto}.mcsg-grid>.mcsg-item:only-child .mcsg-image-link{aspect-ratio:16/9!important;min-height:0!important}.mcsg-footer{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:28px}.mcsg-gallery .mcsg-progress{font-size:12px;line-height:1.5;color:var(--maria-muted);margin:0;padding:0}.mcsg-gallery .mcsg-more{appearance:none;display:inline-flex;align-items:center;gap:24px;padding:14px 23px;min-height:48px;border:1px solid var(--maria-green);border-radius:8px;background:var(--maria-green);color:#fff;font:inherit;font-size:14px;line-height:1.3;font-weight:650;cursor:pointer;transition:background .2s,box-shadow .2s}.mcsg-more span{font-size:21px;color:var(--maria-lime);line-height:1}.mcsg-image-link:focus-visible,.mcsg-gallery .mcsg-more:focus-visible{outline:3px solid #14532d;outline-offset:5px}.mcsg-enter{animation:mcsg-reveal .35s ease-out both}@keyframes mcsg-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.mcsg-dialog{position:fixed;inset:0;margin:auto;border:1px solid #ffffff24;border-radius:16px;background:#04160a;color:white;padding:14px;width:min(1200px,calc(100% - 28px));max-width:1200px;max-height:94vh;max-height:94dvh;overflow:auto;box-shadow:0 24px 100px #0009;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.mcsg-dialog::backdrop{background:#020e07ed;backdrop-filter:blur(5px)}.mcsg-dialog:not([open]){display:none}.mcsg-dialog-shell{display:grid;gap:12px}.mcsg-dialog-toolbar,.mcsg-dialog-nav{display:flex;align-items:center;gap:14px;justify-content:space-between}.mcsg-dialog-count{font-size:12px;white-space:nowrap}.mcsg-dialog button{appearance:none;display:inline-grid;place-items:center;background:#ffffff12;color:white;border:1px solid #ffffff50;border-radius:8px;min-width:44px;min-height:44px;padding:8px 12px;font:500 19px/1 system-ui,sans-serif;cursor:pointer;flex-shrink:0}.mcsg-dialog button:hover{background:#ffffff28}.mcsg-dialog button:disabled{opacity:.3;cursor:default}.mcsg-dialog a{color:#e2f2db}.mcsg-dialog-file{margin-left:auto;font-size:12px;text-decoration:underline;text-underline-offset:3px}.mcsg-dialog button:focus-visible,.mcsg-dialog a:focus-visible{outline:3px solid #b1ed13;outline-offset:3px}.mcsg-dialog-stage{position:relative;display:grid;place-items:center;min-height:120px;touch-action:pan-y pinch-zoom}.mcsg-dialog .mcsg-dialog-img{display:block;width:auto;height:auto;max-width:100%;max-height:70vh;max-height:70dvh;object-fit:contain;border-radius:5px;margin:auto;background:transparent}.mcsg-dialog-caption{flex:1;text-align:center;white-space:pre-line;font-size:13px;line-height:1.6;color:#dcead9;margin:0;padding:0;overflow-wrap:anywhere}.mcsg-dialog-error{font-size:14px;text-align:center;padding:20px;color:white}.mcsg-dialog-help{font-size:11px;text-align:center;color:#bfcebd;margin:0;padding:0}
@media(hover:hover){.mcsg-image-link:hover img{transform:scale(1.035)}.mcsg-image-link:hover .mcsg-zoom{background:#b1ed13;transform:rotate(5deg)}.mcsg-gallery .mcsg-more:hover{background:#0a391c;box-shadow:0 4px 14px #14532d25}}
@media(max-width:900px){.mcsg-gallery{padding:28px 0}.mcsg-cols-3,.mcsg-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mcsg-mosaic .mcsg-cols-3>.mcsg-item:first-child,.mcsg-mosaic .mcsg-cols-4>.mcsg-item:first-child{grid-column:span 2;grid-row:auto}.mcsg-mosaic .mcsg-cols-3>.mcsg-item:first-child .mcsg-image-link,.mcsg-mosaic .mcsg-cols-4>.mcsg-item:first-child .mcsg-image-link{aspect-ratio:16/9;min-height:0}.mcsg-grid{gap:12px}.mcsg-heading{gap:16px;margin-bottom:22px}.mcsg-total{font-size:11px;padding:7px 10px}}
@media(max-width:480px){.mcsg-heading{align-items:flex-start}.mcsg-heading h2{letter-spacing:-.7px;font-size:28px}.mcsg-heading .mcsg-description{font-size:14px}.mcsg-total{display:none}.mcsg-grid{grid-template-columns:1fr;gap:16px}.mcsg-mosaic .mcsg-grid>.mcsg-item:first-child{grid-column:auto;grid-row:auto}.mcsg-mosaic .mcsg-grid>.mcsg-item:first-child .mcsg-image-link{aspect-ratio:4/3}.mcsg-image-link{border-radius:11px}.mcsg-dialog{padding:10px;width:calc(100% - 16px);max-height:96vh;max-height:96dvh}.mcsg-dialog .mcsg-dialog-img{max-height:64vh;max-height:64dvh}.mcsg-dialog-help{display:none}.mcsg-dialog-caption{font-size:12px}.mcsg-dialog-toolbar{gap:8px}}
@media(prefers-reduced-motion:reduce){.mcsg-gallery *{animation:none!important;transition:none!important}.mcsg-image-link:hover img,.mcsg-image-link:hover .mcsg-zoom{transform:none}}
