/* Marleaux Gallery 1.1.0 — scoped styles, no page/Elementor IDs. */
.marleaux-gallery .mlg-batch-pending{display:none!important}
.mlg-batch-controls{display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 0;color:#bbb}
.marleaux-gallery .mlg-load-more{padding:12px 22px;border:1px solid #e1b668;border-radius:8px;background:#242424;color:#e1b668;font:400 15px/1.4 Lato,system-ui,sans-serif;cursor:pointer}
.marleaux-gallery .mlg-load-more:is(:hover,:focus-visible){background:#e1b668;color:#141414}
.marleaux-gallery .mlg-load-more:disabled{opacity:.55;cursor:default}
.mlg-batch-status{font:400 13px/1.5 Lato,system-ui,sans-serif}
.marleaux-gallery{--mlg-accent:#e1b668}
.marleaux-gallery.marleaux-gallery .gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;height:auto!important}
.marleaux-gallery.marleaux-gallery .gallery .wpmf-gallery-item{position:static!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0;padding:0!important;margin:0!important}
.marleaux-gallery.marleaux-gallery .wpmf-gallery-item :is(.wpmf-gallery-icon,.square_thumbnail,.img_centered){position:static!important;width:100%!important;max-width:100%!important;height:auto!important;padding:0!important;margin:0!important;overflow:visible!important;transform:none!important}
.marleaux-gallery.marleaux-gallery .wpmf-gallery-item a{position:relative;display:block;width:100%!important;overflow:hidden;border:1px solid #414141;border-radius:12px;background:linear-gradient(145deg,#191919,#101010);text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}
.marleaux-gallery.marleaux-gallery .wpmf-gallery-item img{position:static!important;display:block;width:100%!important;height:clamp(360px,39vw,520px)!important;object-fit:contain!important;max-height:none!important;padding:12px 8px 6px!important;margin:0!important;transform:none!important;box-sizing:border-box}
.marleaux-gallery .wpmf-gallery-item a::after{content:attr(title);display:block;padding:16px 18px 18px;border-top:1px solid #ffffff0d;color:#eee;font:400 15px/1.4 Lato,system-ui,sans-serif;letter-spacing:.035em}
.marleaux-gallery .wpmf-gallery-item a::before{content:'↗';position:absolute;right:12px;top:12px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff24;border-radius:50%;color:var(--mlg-accent);background:#202020d9;font:20px/1 Arial,sans-serif;opacity:.7}
.marleaux-gallery .wpmf-gallery-item a:hover{border-color:var(--mlg-accent);transform:translateY(-3px);box-shadow:0 12px 24px #0004}
.marleaux-gallery .wpmf-gallery-item a:focus-visible{outline:3px solid var(--mlg-accent);outline-offset:4px}
.marleaux-gallery .gallery-caption{display:none}
.marleaux-gallery a[aria-disabled=true]{opacity:.5;cursor:not-allowed}

.mlg-dialog,.mlg-dialog *{box-sizing:border-box}
.mlg-dialog{--mlg-accent:#e1b668;position:fixed;inset:var(--mlg-admin,0px) 0 0;margin:auto;padding:0;width:max-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--mlg-admin,0px) - 16px);border:1px solid #ffffff26;border-radius:14px;background:#141414;color:#eee;box-shadow:0 24px 90px #0009;font:400 14px/1.6 Lato,system-ui,sans-serif;overflow:auto;overscroll-behavior:contain}
.mlg-dialog::backdrop{background:#080808ed;backdrop-filter:blur(8px)}
.mlg-frame{position:relative;display:flex;gap:0;padding:8px}
.mlg-stage{flex:none;overflow:auto;overscroll-behavior:contain;border-radius:8px;background:#080808;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#8c7954 #161616}
.mlg-canvas{display:grid;place-items:center;min-width:100%;min-height:100%}
.mlg-dialog .mlg-image{position:static;display:block;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;object-fit:contain;transform:none}
.mlg-side{display:flex;flex-direction:column;gap:16px;flex:0 0 228px;width:228px;height:var(--mlg-height);min-height:0;padding:64px 18px 18px}
.mlg-details{min-height:0;overflow-y:auto;scrollbar-width:thin}
.mlg-dialog .mlg-title{padding:0;margin:0 0 16px;color:#fff;font:300 27px/1.25 Lato,system-ui,sans-serif;letter-spacing:-.025em;overflow-wrap:anywhere}
.mlg-description,.mlg-caption{white-space:pre-line;overflow-wrap:anywhere;color:#c9c9c9;font-size:14px;line-height:1.65}
.mlg-caption:not(:empty){margin-top:14px}
.mlg-status{color:#aaa;font-size:12px;line-height:1.4}
.mlg-status:empty{display:none}
.mlg-actions{display:flex;flex-direction:column;gap:14px;flex:none}
.mlg-zoom{display:flex;align-items:center;gap:8px}
.mlg-dialog button{display:grid;place-items:center;min-width:42px;width:42px;height:42px;padding:0;border:1px solid #ffffff38;border-radius:9px;background:#242424;color:#fff;font:26px/1 system-ui,sans-serif;letter-spacing:normal;text-decoration:none;cursor:pointer;box-shadow:none}
.mlg-dialog button:hover{border-color:var(--mlg-accent);color:var(--mlg-accent)}
.mlg-dialog button:disabled{opacity:.3;cursor:default}
.mlg-dialog :is(button,a,.mlg-stage):focus-visible{outline:2px solid var(--mlg-accent);outline-offset:3px}
.mlg-scale{min-width:36px;color:#b9b9b9;text-align:center;font-size:14px}
.mlg-dialog .mlg-original{display:block;color:var(--mlg-accent);font:400 13px/1.5 Lato,system-ui,sans-serif;text-decoration:none}
.mlg-dialog .mlg-original:hover{text-decoration:underline}
.mlg-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;margin-top:auto;padding-top:18px;border-top:1px solid #ffffff26}
.mlg-count{color:#aaa;font-size:14px;letter-spacing:.04em}
.mlg-dialog .mlg-close{position:absolute;right:14px;top:14px;width:48px;height:48px;border-radius:50%;font-size:34px;z-index:2}
@media(max-width:1100px){.marleaux-gallery.marleaux-gallery .gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(max-width:800px){.marleaux-gallery.marleaux-gallery .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:600px){
 .marleaux-gallery.marleaux-gallery .gallery{gap:12px}
 .marleaux-gallery.marleaux-gallery .wpmf-gallery-item img{height:360px!important}
 .marleaux-gallery .wpmf-gallery-item a::after{padding:12px;font-size:14px}
 .mlg-frame{flex-direction:column;padding:6px}
 .mlg-stage{align-self:center}
 .mlg-side{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:8px;flex:none;width:100%;min-width:min(260px,calc(100vw - 40px));height:220px;padding:12px 10px 6px}
 .mlg-dialog .mlg-title{font-size:23px;margin-bottom:8px}
 .mlg-description,.mlg-caption{font-size:13px;line-height:1.45}
 .mlg-actions{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
 .mlg-zoom{gap:6px}
 .mlg-dialog .mlg-original{font-size:12px;max-width:100px}
 .mlg-dialog button{width:40px;height:40px;min-width:40px}
 .mlg-nav{padding-top:8px;margin-top:0}
 .mlg-dialog .mlg-close{right:12px;top:12px;background:#242424e6}
}
@media(prefers-reduced-motion:reduce){.marleaux-gallery .wpmf-gallery-item a{transition:none}}
