/* The gallery stays quiet so material, silhouette and finish do the work. */
#collectionDialog{width:min(1220px,96vw);max-height:94dvh;border-radius:16px;overscroll-behavior:contain}
.furniture-detail{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);align-items:start}
.furniture-detail-visual{padding:40px 24px 28px;position:sticky;top:0;min-width:0}
.ashley-gallery{width:100%}.gallery-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:13px;letter-spacing:.02em;color:var(--muted)}
.gallery-count{font-variant-numeric:tabular-nums;color:var(--wine);font-weight:700}.gallery-stage{position:relative;background:#f8f7f5;border-radius:10px;overflow:hidden;touch-action:pan-y pinch-zoom}
.gallery-open{display:block;width:100%;border:0;background:#faf9f7;padding:0;cursor:zoom-in;position:relative}.gallery-main{display:block;width:100%;height:auto;aspect-ratio:1.2;object-fit:contain;mix-blend-mode:multiply}
.gallery-expand{display:flex;align-items:center;gap:6px;position:absolute;right:14px;bottom:13px;background:#ffffffeb;border:1px solid #e9e3de;border-radius:30px;padding:8px 12px;font-size:20px;line-height:1;color:#423936}.gallery-expand span{font:13px var(--font)}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;border:1px solid #e5ded6;border-radius:50%;height:44px;width:44px;background:#fffffff2;color:#493333;font:30px/1 Georgia;cursor:pointer;box-shadow:0 3px 12px #392a1b0c}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-arrow:hover{background:var(--wine);color:white;border-color:var(--wine)}
.gallery-thumbnails{display:flex;gap:8px;margin-top:14px;padding:3px 2px 8px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#c6b3a4 transparent}.gallery-thumbnails button{flex:0 0 78px;border:1px solid #e5ded6;border-radius:7px;padding:4px;background:#fff;cursor:pointer;min-height:62px}.gallery-thumbnails button[aria-pressed=true]{border:2px solid var(--wine);padding:3px;box-shadow:0 0 0 2px #542d3710}.gallery-thumbnails img{width:100%;height:58px;object-fit:contain;display:block}
.gallery-caption{font-size:13px;color:#6b615c;line-height:1.7;min-height:19px;margin-top:7px}.gallery-source{display:inline-block;font-size:13px;margin-top:8px;text-decoration:underline;text-underline-offset:3px;color:#76675e}
/* One photo frame keeps both product angles aligned and composites the backdrop once. */
.card-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: inherit;
  pointer-events: none;
}
.card-photo-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: inherit;
  object-fit: contain;
}
.card-photo-frame .card-secondary { visibility: hidden; }

.card-photo-count{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:5px;background:#fffffff0;color:#55423a;border:1px solid #e9e3de;border-radius:20px;font-size:13px;padding:5px 9px}.card-photo-count svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6}
@media (hover: hover) and (pointer: fine) {
  .furniture-card-image.has-alternate:hover .card-photo-frame > img:first-child { visibility: hidden; }
  .furniture-card-image.has-alternate:hover .card-secondary { visibility: visible; }
}
.furniture-card-image.has-alternate:focus-visible .card-photo-frame > img:first-child { visibility: hidden; }
.furniture-card-image.has-alternate:focus-visible .card-secondary { visibility: visible; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .furniture-card-image.has-alternate:hover .card-secondary { animation: otk-card-angle .16s ease-out; }
  @keyframes otk-card-angle { from { transform: scale(1.015); } to { transform: scale(1); } }
}
.gallery-related{padding:28px 32px 32px;border-top:1px solid var(--line);background:#fbf9f6}.gallery-related-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}.gallery-related h3{font-size:18px;font-weight:600}.gallery-related-heading span{font-size:13px;color:var(--muted)}.gallery-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gallery-related-item{display:grid;grid-template-columns:85px 1fr;gap:13px;align-items:center;padding:12px;background:white;border:1px solid #e9e2da;border-radius:9px}.gallery-related-item img{width:85px;height:75px;object-fit:contain}.gallery-related-item strong,.gallery-related-item small,.gallery-related-item span{display:block}.gallery-related-item strong{font-size:14px;line-height:1.7}.gallery-related-item small{font-size:13px;color:var(--muted);margin:4px 0}.gallery-related-item span{font-size:14.5px;color:var(--wine);font-weight:600}
#ashleyLightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:#f8f7f4;overflow:hidden}#ashleyLightbox::backdrop{background:#1f1919e8}.lightbox-toolbar{height:76px;display:flex;align-items:center;gap:16px;padding:15px 28px;border-bottom:1px solid #ded8d1;background:#fff}.lightbox-toolbar p{flex:1;font-size:14.5px;line-height:1.7;overflow-wrap:anywhere}.lightbox-toolbar button{background:white;border:1px solid #dcd4cb;border-radius:6px;padding:10px 14px;font:14px var(--font);min-height:44px;cursor:pointer}.lightbox-toolbar [data-close-lightbox]{font-size:27px;min-width:44px;padding:4px}.lightbox-viewport{height:calc(100dvh - 76px);overflow:auto;touch-action:pan-y pinch-zoom}.lightbox-viewport img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.is-zoomed .lightbox-viewport{touch-action:pan-x pan-y pinch-zoom}.is-zoomed .lightbox-viewport img{width:200%;height:200%;max-width:none}.lightbox-viewport::-webkit-scrollbar{width:8px;height:8px}.lightbox-viewport::-webkit-scrollbar-thumb{background:#a5978a;border-radius:5px}
@media(max-width:760px){#collectionDialog{width:100vw;max-width:100vw;max-height:100dvh;margin:0;border-radius:0;height:100dvh}.furniture-detail{grid-template-columns:1fr}.furniture-detail-visual{position:static;padding:56px 18px 14px}.gallery-heading{margin-bottom:11px}.gallery-main{aspect-ratio:1.2}.gallery-thumbnails{gap:7px}.gallery-thumbnails button{flex-basis:68px}.gallery-thumbnails img{height:49px}.furniture-detail .dialog-copy{padding:22px}.gallery-related{padding:24px 20px}.gallery-related-grid{grid-template-columns:1fr}.gallery-related-item{grid-template-columns:90px 1fr}.gallery-related-heading{align-items:start;flex-direction:column;gap:5px}.lightbox-toolbar{height:90px;padding:10px 12px;gap:8px}.lightbox-toolbar p{font-size:13px}.lightbox-toolbar [data-zoom]{max-width:110px;font-size:13px;padding:8px}.lightbox-viewport{height:calc(100dvh - 90px)}.card-photo-count{font-size:13px;right:8px;bottom:8px}}


.lightbox-note{position:absolute;bottom:16px;left:55px;right:55px;background:#fffffff2;border:1px solid #e9e3de;border-radius:8px;padding:9px 12px;font-size:13px;line-height:1.7;text-align:center;color:#63574c;pointer-events:none}
