/* Real photographs lead this single archive; their source order is preserved. */
[data-gallery]{padding:0 var(--mooi-gutter,5vw) clamp(64px,8vw,130px);background:var(--mooi-paper,#fbfaf7)}
.mooi-gallery-grid{list-style:none;margin:0!important;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.7vw,28px);align-items:start}
.mooi-gallery-item{min-width:0;margin:0!important;padding:0;position:relative}
.mooi-gallery-item[hidden],[data-gallery-more][hidden],[data-gallery-error][hidden],[data-gallery-image][hidden]{display:none!important}
.mooi-gallery-item>a{display:block;position:relative;text-decoration:none;overflow:hidden;background:#e4e0d6;isolation:isolate}
.mooi-gallery-item img{display:block;width:100%;height:auto;object-fit:cover;transition:transform .5s ease,filter .3s ease}
.mooi-gallery-item>a::after{content:'↗';position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:40px;height:40px;background:#fbfaf7ee;color:#151412;font-size:23px;line-height:1;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s;pointer-events:none}
.mooi-gallery-item>a:focus-visible{outline:3px solid var(--mooi-ink,#151412);outline-offset:5px}
.mooi-gallery-item>a:focus-visible::after{opacity:1;transform:none}
[data-gallery-count]{margin:0!important;color:var(--mooi-muted,#676a60);font-size:13px;line-height:1.7}
[data-gallery-more]{display:inline-flex;justify-content:space-between;align-items:center;gap:38px;min-height:52px;margin:28px 0 0;padding:14px 24px;border:1px solid var(--mooi-ink,#151412);border-radius:0;background:transparent;color:var(--mooi-ink,#151412);font:500 14px/1.5 var(--wp--preset--font-family--body,sans-serif);cursor:pointer;transition:background .2s,color .2s}
[data-gallery-more]:hover{background:var(--mooi-ink,#151412);color:var(--mooi-paper,#fbfaf7)}
.mooi-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;margin:0 0 20px;border-top:1px solid var(--mooi-line,#d5d6ca)}
.mooi-gallery-bottom{display:flex;flex-direction:column;align-items:center;margin-top:34px;gap:14px}
.mooi-gallery-bottom [data-gallery-more]{margin-top:0}
html.mooi-gallery-open,html.mooi-gallery-open body{overflow:hidden!important;overscroll-behavior:none}
[data-gallery-dialog]{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:82px 78px 30px;border:0;background:#282826;color:#fbfaf7;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
[data-gallery-dialog]:not([open]){display:none}
[data-gallery-dialog][open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
[data-gallery-dialog]::backdrop{background:#282826f5}
[data-gallery-dialog] #gallery-dialog-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-gallery-dialog] button{position:absolute;display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;margin:0;padding:11px;border:1px solid #fbfaf765;border-radius:0;background:#282826e6;color:#fbfaf7;cursor:pointer;font:400 24px/1 var(--wp--preset--font-family--body,sans-serif);touch-action:manipulation}
[data-gallery-dialog] button:hover{background:#fbfaf7;color:#282826}
[data-gallery-dialog] button:focus-visible{outline:2px solid #fbfaf7;outline-offset:4px}
[data-gallery-dialog] button:disabled{visibility:hidden}
[data-gallery-close]{top:max(16px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right))}
[data-gallery-dialog] [data-gallery-close]{font-size:14px;gap:10px;padding:10px 14px}
[data-gallery-prev]{top:50%;left:max(16px,env(safe-area-inset-left));transform:translateY(-50%)}
[data-gallery-next]{top:50%;right:max(16px,env(safe-area-inset-right));transform:translateY(-50%)}
[data-gallery-image]{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 180px);max-height:calc(100dvh - 180px);object-fit:contain;flex:0 1 auto;margin:0 auto;min-height:0;background:#282826}
[data-gallery-position]{position:absolute;top:max(30px,env(safe-area-inset-top));left:max(26px,env(safe-area-inset-left));font-size:13px;line-height:1.5;letter-spacing:.06em;color:#f4efe8}
[data-gallery-caption]{margin:0!important;max-width:min(680px,100%);text-align:center;font-size:13px;line-height:1.65;color:#f4efe8;overflow-wrap:anywhere;flex-shrink:0}
[data-gallery-error]{max-width:440px;font-size:16px;line-height:1.7;text-align:center}
@media(hover:hover){.mooi-gallery-item>a:hover img{transform:scale(1.025);filter:brightness(.97)}.mooi-gallery-item>a:hover::after{opacity:1;transform:none}}
@media(min-width:1700px){[data-gallery]{padding-inline:max(var(--mooi-gutter,5vw),calc((100vw - 1540px)/2))}}
@media(max-width:1000px){.mooi-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:650px){[data-gallery]{padding-inline:var(--mooi-gutter,22px)}.mooi-gallery-grid{grid-template-columns:1fr;gap:20px}.mooi-gallery-item img,.mooi-gallery-item:nth-child(n) img{aspect-ratio:auto;max-height:none}.mooi-gallery-item>a::after{opacity:1;transform:none;width:36px;height:36px;font-size:21px;right:12px;bottom:12px}.mooi-gallery-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.mooi-gallery-bottom{margin-top:28px}[data-gallery-dialog]{padding:82px 16px 96px;justify-content:center}[data-gallery-dialog] button{min-width:48px;min-height:48px}[data-gallery-image]{max-height:calc(100vh - 232px);max-height:calc(100dvh - 232px);max-width:100%}[data-gallery-prev],[data-gallery-next]{top:auto;bottom:max(20px,env(safe-area-inset-bottom));transform:none}[data-gallery-prev]{left:calc(50% - 62px)}[data-gallery-next]{right:calc(50% - 62px)}[data-gallery-caption]{font-size:12px;line-height:1.55}[data-gallery-position]{left:20px;top:30px}[data-gallery-close]{right:18px}}
@media(max-height:500px) and (min-width:651px){[data-gallery-dialog]{padding-top:64px;padding-bottom:18px;gap:8px}[data-gallery-image]{max-height:calc(100dvh - 118px)}[data-gallery-caption]{font-size:12px}[data-gallery-close]{top:10px}[data-gallery-position]{top:26px}}
@media(prefers-reduced-motion:reduce){.mooi-gallery-item img,.mooi-gallery-item>a::after,[data-gallery-more]{transition:none}.mooi-gallery-item>a:hover img{transform:none}}
.mooi-gallery-zoom{display:none}
