/* The wooden-box presentation only. No shared theme or storefront selectors. */
.wood-gallery-dialog{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;box-sizing:border-box;overflow:hidden;z-index:2147482500;font-family:inherit;overscroll-behavior:contain}
.wood-gallery-dialog:not([open]){display:none}
.wood-gallery-dialog::backdrop{background:rgba(8,10,13,.96)}
.wood-gallery-dialog.wood-gallery-dialog--fallback{background:rgba(8,10,13,.97)}
.wood-gallery-dialog .wood-gallery-dialog__surface{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;box-sizing:border-box;padding:max(14px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));gap:12px}
.wood-gallery-dialog .wood-gallery-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;background:none;border:0;box-shadow:none;padding:0;position:static;color:#fff}
.wood-gallery-dialog .wood-gallery-dialog__title{font-size:15px;font-weight:600;line-height:1.5;letter-spacing:.02em;margin:0;color:#fff}
.wood-gallery-dialog button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid rgba(255,255,255,.26);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-family:inherit;line-height:1;cursor:pointer;appearance:none;box-shadow:none;touch-action:manipulation;transition:background .15s ease,border-color .15s ease}
.wood-gallery-dialog button:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.55)}
.wood-gallery-dialog button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.wood-gallery-dialog button:disabled{opacity:.3;cursor:default}
.wood-gallery-dialog .wood-gallery-dialog__close{font-size:34px;font-weight:300}
.wood-gallery-dialog .wood-gallery-dialog__previous,.wood-gallery-dialog .wood-gallery-dialog__next{font-size:40px;font-weight:300}
.wood-gallery-dialog .wood-gallery-dialog__stage{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:18px;min-height:0;min-width:0}
.wood-gallery-dialog .wood-gallery-dialog__figure{margin:0;height:100%;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y pinch-zoom}
.wood-gallery-dialog .wood-gallery-dialog__image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border:0;border-radius:4px;background:#fff;box-shadow:0 14px 60px rgba(0,0,0,.3);user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.wood-gallery-dialog .wood-gallery-dialog__image[hidden],.wood-gallery-dialog .wood-gallery-dialog__error[hidden]{display:none}
.wood-gallery-dialog .wood-gallery-dialog__error{color:#fff;text-align:center;max-width:500px;font-size:16px;line-height:1.8;padding:24px;margin:0}
.wood-gallery-dialog .wood-gallery-dialog__footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 24px;max-width:1100px;width:100%;margin:0 auto;padding:0;border:0;background:none;box-shadow:none;position:static;color:#fff;text-align:left}
.wood-gallery-dialog .wood-gallery-dialog__caption{font-size:15px;line-height:1.65;margin:0;color:#fff;overflow-wrap:anywhere}
.wood-gallery-dialog .wood-gallery-dialog__counter{font-size:14px;line-height:1.8;font-variant-numeric:tabular-nums;color:#e7e7e7;margin:0;white-space:nowrap}
.wood-gallery-dialog .wood-gallery-dialog__hint{font-size:12px;line-height:1.6;color:#aaa;margin:0;grid-column:1/-1}
@media(max-width:575px){.wood-gallery-dialog .wood-gallery-dialog__surface{padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:10px}.wood-gallery-dialog .wood-gallery-dialog__header{gap:12px}.wood-gallery-dialog .wood-gallery-dialog__title{font-size:13px;max-width:260px}.wood-gallery-dialog .wood-gallery-dialog__stage{position:relative;grid-template-columns:minmax(0,1fr);gap:0}.wood-gallery-dialog button{width:44px;height:44px;min-width:44px;min-height:44px}.wood-gallery-dialog .wood-gallery-dialog__previous,.wood-gallery-dialog .wood-gallery-dialog__next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;font-size:34px;background:rgba(8,10,13,.8);border-color:rgba(255,255,255,.5)}.wood-gallery-dialog .wood-gallery-dialog__previous{left:4px}.wood-gallery-dialog .wood-gallery-dialog__next{right:4px}.wood-gallery-dialog .wood-gallery-dialog__caption{font-size:13px;line-height:1.65}.wood-gallery-dialog .wood-gallery-dialog__counter{font-size:12px}.wood-gallery-dialog .wood-gallery-dialog__footer{gap:6px 12px}.wood-gallery-dialog .wood-gallery-dialog__hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.wood-gallery-dialog button{transition:none}}
/* Keep controls legible when shared storefront focus/active rules are present. */
.wood-gallery-dialog button.wood-gallery-dialog__previous,.wood-gallery-dialog button.wood-gallery-dialog__next,.wood-gallery-dialog button.wood-gallery-dialog__close,
.wood-gallery-dialog button.wood-gallery-dialog__previous:hover,.wood-gallery-dialog button.wood-gallery-dialog__next:hover,.wood-gallery-dialog button.wood-gallery-dialog__close:hover,
.wood-gallery-dialog button.wood-gallery-dialog__previous:focus,.wood-gallery-dialog button.wood-gallery-dialog__next:focus,.wood-gallery-dialog button.wood-gallery-dialog__close:focus,
.wood-gallery-dialog button.wood-gallery-dialog__previous:active,.wood-gallery-dialog button.wood-gallery-dialog__next:active,.wood-gallery-dialog button.wood-gallery-dialog__close:active{background:rgba(8,10,13,.88)!important;color:#fff!important;border-color:rgba(255,255,255,.62)!important}
.wood-gallery-dialog button.wood-gallery-dialog__previous:focus-visible,.wood-gallery-dialog button.wood-gallery-dialog__next:focus-visible,.wood-gallery-dialog button.wood-gallery-dialog__close:focus-visible{outline:3px solid #fff!important;outline-offset:4px}
.wood-gallery-dialog button.wood-gallery-dialog__previous>span,.wood-gallery-dialog button.wood-gallery-dialog__next>span,.wood-gallery-dialog button.wood-gallery-dialog__close>span{color:#fff!important}
