.ezmg-gallery{display:grid;grid-template-columns:repeat(var(--ezmg-columns,4),minmax(0,1fr));gap:var(--ezmg-gap,12px);width:100%}.ezmg-gallery-item{display:block;overflow:hidden;line-height:0}.ezmg-gallery-image{display:block;width:100%;height:auto;transition:transform .25s ease}.ezmg-gallery-item:hover .ezmg-gallery-image{transform:scale(1.025)}.ezmg-ratio-1-1 .ezmg-gallery-image,.ezmg-ratio-4-3 .ezmg-gallery-image,.ezmg-ratio-16-9 .ezmg-gallery-image{width:100%;height:100%;object-fit:cover}.ezmg-ratio-1-1 .ezmg-gallery-item{aspect-ratio:1/1}.ezmg-ratio-4-3 .ezmg-gallery-item{aspect-ratio:4/3}.ezmg-ratio-16-9 .ezmg-gallery-item{aspect-ratio:16/9}@media(max-width:767px){.ezmg-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ezmg-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:999999;display:flex;align-items:center;justify-content:center;padding:30px;cursor:zoom-out}.ezmg-lightbox img{max-width:95vw;max-height:90vh;object-fit:contain}.ezmg-lightbox button{position:absolute;top:18px;right:24px;background:none;border:0;color:#fff;font-size:38px;cursor:pointer}
