.mlg-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.mlg-filter{border:1px solid #d9e5ed;border-radius:24px;background:#f4f8fa;color:#17496a;padding:9px 19px;cursor:pointer;transition:background-color .2s}.mlg-filter[aria-pressed=true]{background:#087fba;color:#fff;border-color:transparent}.mlg-filter:hover{background:#d9eef8}.mlg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mlg-card{overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 3px 15px #0a375014}.mlg-card[hidden]{display:none!important}.mlg-open{display:block!important;width:100%;padding:0!important;margin:0!important;border:0!important;background:transparent!important;cursor:pointer}.mlg-media{display:block;position:relative;aspect-ratio:4/3;background:#edf5fa;overflow:hidden}.mlg-media img{display:block;width:100%;height:100%;object-fit:cover}.mlg-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#087fba;color:#fff;font-size:23px;box-shadow:0 3px 15px #0004}.mlg-title{font-size:17px;font-weight:700;color:#163b57;padding:13px 15px 3px}.mlg-desc{font-size:14px;color:#536c7c;padding:0 15px 15px}.mlg-modal[hidden]{display:none!important}.mlg-modal{position:fixed;inset:0;z-index:999999;background:rgba(5,16,27,.92);display:flex;align-items:center;justify-content:center;padding:55px 20px 25px}.mlg-stage{width:min(1100px,100%);height:100%;display:grid;place-items:center}.mlg-stage img,.mlg-stage video{max-width:100%;max-height:100%;object-fit:contain}.mlg-stage iframe{width:min(100%,1100px);aspect-ratio:16/9;border:0}.mlg-close{position:absolute;top:12px;right:20px;font-size:36px;background:none!important;border:0!important;color:#fff!important;cursor:pointer}@media(max-width:1024px){.mlg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.mlg-grid{grid-template-columns:1fr}.mlg-play{width:48px;height:48px}}

/* v1.3: masonry sin recortar las fotografías, alturas originales */
.mlg-grid.mlg-masonry{display:block;column-count:3;column-gap:18px}
.mlg-grid.mlg-masonry .mlg-card{display:inline-block;width:100%;vertical-align:top;break-inside:avoid;page-break-inside:avoid;margin:0 0 18px}
.mlg-grid.mlg-masonry .mlg-card[hidden]{display:none!important}
.mlg-grid.mlg-masonry .mlg-media{aspect-ratio:auto!important;height:auto;min-height:0}
.mlg-grid.mlg-masonry .mlg-media img{width:100%;height:auto;object-fit:contain!important}
.mlg-grid.mlg-masonry .mlg-media:has(.mlg-play):not(:has(img)){aspect-ratio:16/9!important;min-height:140px}
@media(max-width:1024px){.mlg-grid.mlg-masonry{column-count:2}}
@media(max-width:767px){.mlg-grid.mlg-masonry{column-count:1}}

/* v1.4: visor a pantalla completa con navegación */
.mlg-modal{box-sizing:border-box!important;padding:42px 72px 44px!important}
.mlg-modal .mlg-stage{min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mlg-modal .mlg-stage img,.mlg-modal .mlg-stage video{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important}
.mlg-modal .mlg-stage iframe{max-width:100%!important;max-height:100%!important;aspect-ratio:16/9}
.mlg-modal .mlg-prev,.mlg-modal .mlg-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:56px;padding:0!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:28px;cursor:pointer}
.mlg-modal .mlg-prev{left:12px}.mlg-modal .mlg-next{right:12px}
.mlg-modal .mlg-prev:hover,.mlg-modal .mlg-next:hover{background:rgba(255,255,255,.32)!important}
.mlg-modal .mlg-prev[hidden],.mlg-modal .mlg-next[hidden]{display:none!important}
.mlg-modal .mlg-counter{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);color:#fff;font-size:13px;letter-spacing:.05em}
@media(max-width:767px){.mlg-modal{padding:54px 43px 42px!important}.mlg-modal .mlg-prev,.mlg-modal .mlg-next{width:34px;height:48px;font-size:22px}.mlg-modal .mlg-prev{left:3px}.mlg-modal .mlg-next{right:3px}}

/* v1.5: editable borders and spacing for filter buttons */
.mlg-filter{box-sizing:border-box;transition:background-color .2s ease,color .2s ease,border-color .2s ease}

.mlg-play svg{width:1em;height:1em;fill:currentColor}.mlg-play i{font-size:inherit;color:inherit}.mlg-play{transition:background-color .2s ease,color .2s ease}
