.model-image.has-gallery{display:block;padding:60px 6% 28px;height:auto;min-height:0}
.product-gallery-view{display:flex;align-items:center;justify-content:center;width:100%;height:440px}
.model-image .product-gallery-view img{width:100%;height:100%;max-height:440px;object-fit:contain}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;color:#594b39}
.gallery-toolbar button{width:42px;height:42px;border:1px solid #8e7050;border-radius:50%;background:#24201b;color:#e6cfaa;font-size:22px;cursor:pointer;flex-shrink:0}
.gallery-toolbar [hidden]{display:none}
.gallery-toolbar [role=status]{text-align:center;font-size:11px;line-height:1.6}
.gallery-thumbnails summary{cursor:pointer;color:#594b39;padding:14px 0;font-size:12px;letter-spacing:.03em}
.gallery-thumb-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:5px 0 12px}
.gallery-thumb{min-width:0;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid #66543f;border-radius:5px;background:#e9e5dd;overflow:hidden}
.gallery-thumb[aria-current=true]{outline:2px solid #d5a773;outline-offset:2px}
.model-image .gallery-thumb img{width:100%;height:100%;object-fit:contain;max-height:90px;mix-blend-mode:normal}
.gallery-thumb:focus-visible,.gallery-toolbar button:focus-visible,.gallery-thumbnails summary:focus-visible,.product-gallery-view:focus-visible{outline:3px solid #e2b87d;outline-offset:4px}
.gallery-source-note{font-size:9px;line-height:1.7;color:#594b39;margin:12px 0 0}
.model-image.has-gallery>.model-image-note{position:static;display:block;margin-top:14px;line-height:1.6}
@media(max-width:900px){.product-gallery-view,.model-image .product-gallery-view img{height:350px}.gallery-thumb-list{grid-template-columns:repeat(3,minmax(0,1fr))}.model-image .gallery-thumb img{max-height:85px}}
@media(max-width:650px){.model-image.has-gallery{padding:60px 25px 22px}.product-gallery-view,.model-image .product-gallery-view img{height:340px}.gallery-thumb-list{grid-template-columns:repeat(6,minmax(0,1fr))}.gallery-toolbar [role=status]{font-size:14px}.gallery-source-note{font-size:14px}}
@media(max-width:370px){.product-gallery-view,.model-image .product-gallery-view img{height:285px}.gallery-thumb-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

.gallery-thumb{position:relative}.gallery-thumb::after{content:attr(data-photo-number);position:absolute;bottom:2px;right:3px;background:#24201b;color:#f4e5d0;border-radius:3px;padding:1px 4px;font-size:9px;line-height:1.3}

.product-gallery-view{overflow:hidden;cursor:zoom-in;border-radius:5px}
.product-gallery-view img{transition:transform .3s ease;transform-origin:center}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.product-gallery-view:hover img{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){.product-gallery-view img{transition:none;transform:none}}
.product-lightbox{box-sizing:border-box;width:min(1100px,96vw);max-width:96vw;max-height:96vh;max-height:96dvh;padding:16px 20px;border:1px solid #8b7254;border-radius:12px;background:#151412;color:#f1eadf;overflow:auto;overscroll-behavior:contain}
.product-lightbox::backdrop{background:rgba(0,0,0,.88)}
.product-lightbox figure{margin:12px 0;touch-action:pan-y pinch-zoom}
.product-lightbox-image{display:flex;align-items:center;justify-content:center;height:min(68vh,780px);height:min(68dvh,780px);background:#e9e5dd;border-radius:6px;overflow:hidden}
.product-lightbox img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.product-lightbox figcaption{font:13px/1.5 sans-serif;text-align:center;margin-top:10px;overflow-wrap:anywhere}
.product-lightbox nav{display:flex;align-items:center;justify-content:center;gap:24px}
.product-lightbox button{font:16px/1.4 sans-serif;border:1px solid #9c805b;color:#f1eadf;background:#29251f;min-width:48px;min-height:48px;padding:8px 14px;border-radius:5px;cursor:pointer;flex-shrink:0}
.product-lightbox button[hidden]{display:none}
.product-lightbox button:focus-visible{outline:3px solid #e6bd83;outline-offset:3px}
.product-lightbox-close{display:block;margin-left:auto}
.product-lightbox [role=status]{font:13px/1.5 sans-serif;text-align:center;overflow-wrap:anywhere}
@media(max-width:650px){.product-lightbox{padding:12px;width:96vw}.product-lightbox-image{height:60vh;height:60dvh}.product-lightbox nav{gap:12px}.product-lightbox figcaption{font-size:14px}}
@media(max-height:500px) and (orientation:landscape){.product-lightbox{padding:8px 12px}.product-lightbox-image{height:50vh;height:50dvh}.product-lightbox figure{margin:6px 0}.product-lightbox figcaption{margin-top:6px}}

/* Only the visible campaign slide uses its native landscape frame. Ordinary chair photographs keep their existing white wells. */
.model-hero .model-image.has-gallery.is-campaign-slide .product-gallery-view{height:auto;min-height:0;aspect-ratio:4/3;padding:0;border:0;box-sizing:border-box}
.model-hero .model-image.has-gallery.is-campaign-slide .product-gallery-view img{width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:contain;transform:none!important}
/* Matching adapted artwork fills homepage campaign cards without cropping letters. */
html.halloween-season .moonlight-promo-card>img{aspect-ratio:4/3!important;object-fit:contain!important;height:auto!important}

/* Product details: let the photograph, not a fixed white square, size the stage.
   Preserve the separately reviewed Atlas crop and promotional artwork geometry. */
.model-page .model-hero .model-image.has-gallery{padding:52px clamp(12px,2vw,24px) 22px}
.model-page .model-hero .model-image.has-gallery:not([data-atlas-refit="true"]):not(.is-campaign-slide) .product-gallery-view{
 height:auto;min-height:0;max-width:none;padding:0;border:0;background:transparent;aspect-ratio:auto
}
.model-page .model-hero .model-image.has-gallery:not([data-atlas-refit="true"]):not(.is-campaign-slide) .product-gallery-view img{
 display:block;width:100%;height:auto;max-height:760px;max-height:min(760px,78svh);object-fit:contain;transform:none;mix-blend-mode:normal
}
.model-page .model-hero .gallery-toolbar,.model-page .model-hero .gallery-thumbnails,.model-page .model-hero .gallery-source-note{max-width:none}
@media(max-width:650px){
 .model-page .model-hero .model-image.has-gallery{padding:48px 12px 18px}
 .model-page .model-hero .model-image.has-gallery:not([data-atlas-refit="true"]):not(.is-campaign-slide) .product-gallery-view img{max-height:620px;max-height:min(620px,78svh)}
}
/* Accessory detail galleries share the same stage, never the catalogue cards. */
.accessory-page .accessory-detail .accessory-gallery .product-gallery-view{height:auto;min-height:0;padding:0;background:transparent}
.accessory-page .accessory-detail .accessory-gallery .product-gallery-view img{display:block;width:100%;height:auto;max-height:580px;object-fit:contain;transform:none}
