.public-footer{padding:42px 7vw 86px;border-top:1px solid #ded3c7;background:#28231f;color:#f7eee7;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:24px}.public-footer p{margin:0;color:#cfc3b9;font-size:.72rem;text-align:center}.public-footer nav{display:flex;gap:15px;font-size:.68rem}.public-footer nav a:hover{color:#efcdb5}.php-gallery{position:relative;align-content:start}.php-gallery>img{aspect-ratio:4/3;object-fit:contain}.php-gallery-thumbs{width:100%;padding:10px;display:flex;gap:8px;overflow-x:auto;background:#eee5dc}.php-gallery-thumbs button{width:72px;height:54px;flex:0 0 auto;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:#fff;cursor:pointer}.php-gallery-thumbs button.active{border-color:var(--brown)}.php-gallery-thumbs img{width:100%;height:100%;object-fit:cover}.public-not-found{min-height:65vh;padding:60px 7vw;display:grid;place-items:center;align-content:center;text-align:center}.public-not-found>strong{color:var(--brown);font:500 6rem Georgia}.public-not-found h1{margin:8px 0;font:500 clamp(2rem,5vw,4rem) Georgia}.public-not-found p{color:var(--muted)}.public-not-found div{margin-top:18px;display:flex;gap:10px}.public-not-found a{padding:11px 15px;border-radius:10px;background:var(--brown);color:#fff;font-size:.72rem;font-weight:800}.public-not-found a:last-child{border:1px solid var(--brown);background:transparent;color:var(--brown)}
@media(max-width:760px){.public-footer{padding:32px 20px 84px;grid-template-columns:1fr;text-align:center}.public-footer p{text-align:center}.public-footer nav{justify-content:center;flex-wrap:wrap}.php-gallery-thumbs button{width:58px;height:44px}}

/* The v121 gallery styles are retained in admin.css. These rules adapt them
   to native modal dialogs and to the PHP product preview. */
.php-gallery-open{overflow:hidden}
.php-gallery-preview{position:relative;width:100%;min-height:inherit;display:grid;place-items:center;background:#f5f0e8;cursor:zoom-in}
.php-gallery-preview>img{display:block;width:100%;height:100%;min-height:inherit;aspect-ratio:4/3;object-fit:contain}
.php-gallery-preview:focus-visible{outline:3px solid var(--brown);outline-offset:-4px}
.php-full-gallery,.php-measurements-popup{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;box-sizing:border-box}
.php-full-gallery{padding:0;color:#fff}
.php-full-gallery .product-gallery-dialog{width:100%;height:100%;max-width:none}
.php-full-gallery::backdrop{background:#17120f}
.php-measurements-popup::backdrop{background:transparent}
.php-full-gallery:not([open]),.php-measurements-popup:not([open]){display:none}
.php-full-gallery .product-gallery-thumbs{display:flex;gap:7px;justify-content:flex-start;scrollbar-width:thin}
.php-full-gallery .product-gallery-thumbs button{flex:0 0 auto}
.php-full-gallery .product-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.php-full-gallery .product-gallery-meta{pointer-events:none}
.php-measurements-popup{padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.php-measurements-popup .product-measurements-dialog{min-height:0}
@media(max-width:680px){.php-full-gallery .product-gallery-zoom-help{display:none}.php-measurements-popup{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}}
@media(prefers-reduced-motion:reduce){.php-full-gallery .product-gallery-stage>img{transition:none}}
