.product-gallery-page { padding-top: 1.5rem; }
.product-gallery-page > .container > .breadcrumb { margin-bottom: 1.5rem; }
.product-gallery-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .8fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.product-gallery { min-width: 0; }
/* The panel keeps one shape whatever is shown in it. The set mixes 16:9
   interiors with 3:2 slab and detail shots, and letting the panel follow each
   picture moved the page by up to 84px every time one was chosen — a jolt in
   the middle of the very change this is meant to smooth. The pictures are
   contained inside a fixed box instead, on the panel's own ground. */
.product-gallery__main { position: relative; display: grid; place-items: center; background: #eeede7;
	aspect-ratio: 3 / 2; max-height: 70svh; }
/* height stays auto: the panel takes its height from aspect-ratio, which
   Chrome treats as indefinite, so a percentage height on the picture is
   dropped. Width plus the panel's own shape already centre and contain it;
   the cap is in a definite unit so a portrait file could not outgrow it. */
.product-gallery__image { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; }
.product-gallery__arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem; pointer-events: none; }
.product-gallery__arrows[hidden] { display: none; }
.product-gallery__arrows button { width: 48px; height: 48px; border: 1px solid #fff; border-radius: 50%; background: rgb(28 38 30 / 55%); color: #fff; font-size: 1.25rem; cursor: pointer; pointer-events: auto; }
.product-gallery__arrows button:hover { background: rgb(28 38 30 / 85%); }
/* The arrows appear on hover over the picture, and whenever focus is inside it,
   so they are an invitation rather than furniture — and a keyboard never lands
   on a button it cannot see. On touch there is no hover, so they stay. */
@media (hover: hover) and (pointer: fine) {
	.product-gallery__arrows { opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 240ms ease; }
	.product-gallery__main:hover .product-gallery__arrows,
	.product-gallery__main:focus-within .product-gallery__arrows { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
	.product-gallery__arrows { transition: none; }
}
.product-gallery__arrows button:focus-visible, .product-gallery__thumbs a:focus-visible { outline: 2px solid #25332b; outline-offset: 3px; }
.product-gallery__caption { margin: .75rem 0; color: #626b63; font-size: .75rem; }
.product-gallery__thumbs { display: flex; gap: .65rem; overflow-x: auto; padding: .25rem; scrollbar-width: none; -ms-overflow-style: none; }
.product-gallery__thumbs::-webkit-scrollbar { width: 0; height: 0; }
.product-gallery__thumbs a { flex: 0 0 4.75rem; border: 2px solid transparent; opacity: .7; }
.product-gallery__thumbs a[aria-current="true"] { border-color: #25332b; opacity: 1; }
.product-gallery__thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-gallery__empty { display: grid; align-content: center; min-height: 20rem; padding: 3rem; background: #eeede7; }
.product-gallery-info { padding-block: .5rem 2rem; }
.product-gallery-info h1 { font-size: clamp(2.75rem, 4.5vw, 5rem); line-height: 1.05; margin: 0 0 2rem; }
.product-gallery-info__description { max-width: 48ch; margin-bottom: 2rem; }
.product-gallery-info__description h2 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.product-gallery-info__description p { line-height: 1.7; color: #59645a; }
.product-gallery-info__specs { margin-bottom: 2rem; }
.product-gallery-info__specs details { border-top: 1px solid #d1d5cc; }
.product-gallery-info__specs details:last-child { border-bottom: 1px solid #d1d5cc; }
.product-gallery-info__specs summary { padding: 1rem 0; cursor: pointer; }
.product-gallery-info__specs details p { margin: 0 0 1rem; color: #59645a; }
.product-gallery-slab { padding-block: clamp(4rem, 7vw, 7rem); }
.product-gallery-slab__heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.product-gallery-slab__heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.product-gallery-slab > img { display: block; width: 100%; height: auto; }
.product-gallery-slab > p { margin-top: 1rem; color: #626b63; font-size: .8rem; }
.product-gallery-related { padding-bottom: 5rem; }
.product-gallery-authored { max-width: 80ch; padding-block: 4rem; }
@media (max-width: 782px) {
 .product-gallery-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
 .product-gallery__main { max-height: none; }
 .product-gallery-info { padding: 0; }
 .product-gallery-slab__heading { flex-direction: column; align-items: start; gap: 1rem; }
}

/* --- The main image opens the lightbox ------------------------------- */
.product-gallery__open { display: block; cursor: zoom-in; }
.product-gallery__open:focus-visible { outline: 2px solid #25332b; outline-offset: 3px; }

/* --- Lightbox -------------------------------------------------------- */
.has-lightbox { overflow: hidden; }
.product-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 3vw, 2rem);
	padding: clamp(1rem, 4vw, 3rem); background: #0d110f; }
.product-lightbox[hidden] { display: none; }
.product-lightbox__count { position: absolute; top: clamp(1rem, 3vw, 2rem); left: clamp(1rem, 3vw, 2rem);
	margin: 0; color: #d7d3cf; font-size: .8125rem; letter-spacing: .04em; }
.product-lightbox__figure { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.product-lightbox__figure img { display: block; max-width: 100%; max-height: 80svh; width: auto; height: auto; object-fit: contain; }
.product-lightbox__figure figcaption { color: #d7d3cf; font-size: .8125rem; text-align: center; }
.product-lightbox button { background: transparent; border: 1px solid rgb(255 255 255 / 45%); color: #fff;
	border-radius: 50%; width: 48px; height: 48px; font-size: 1.25rem; cursor: pointer; }
.product-lightbox button:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }
.product-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-lightbox button[hidden] { display: none; }
.product-lightbox__close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.product-lightbox__previous { grid-column: 1; }
.product-lightbox__next { grid-column: 3; }

/* --- Magnifier on the full slab -------------------------------------- */
.product-gallery-slab__figure { position: relative; margin: 0; }
.product-gallery-slab__figure img { display: block; width: 100%; height: auto; }
.product-gallery-slab__figure.is-zoomable { cursor: crosshair; }
/* The lens is placed with a transform, not left/top, so moving it never asks
   the page to lay itself out again — that is what made it stutter. The
   script writes translate3d; the fallback here only matters for the frame
   before the first move. */
.product-zoom__lens { position: absolute; left: 0; top: 0; width: 15rem; height: 15rem;
	border-radius: 50%; border: 2px solid #fff; overflow: hidden;
	box-shadow: 0 0 0 1px rgb(13 17 15 / 25%), 0 1rem 2.5rem rgb(13 17 15 / 35%);
	pointer-events: none; opacity: 0;
	will-change: transform;
	transition: opacity 180ms ease; }
/* The detail is a real image inside the lens, moved by transform. As a
   background-position the browser repainted a 3240x1860 bitmap through a
   240px hole on every pointer move; as a transformed layer the compositor
   moves it and nothing is repainted. */
.product-zoom__detail { position: absolute; left: 0; top: 0; max-width: none;
	will-change: transform; }
.is-magnifying .product-zoom__lens { opacity: 1; }

/* The main photograph dissolves rather than blinks: the outgoing picture is
   copied over the new one and faded away, so the empty panel behind them is
   never seen. Only opacity moves, on a layer of its own. */
.product-gallery__outgoing {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	pointer-events: none;
	opacity: 1;
	transition: opacity 380ms cubic-bezier(.4, 0, .2, 1);
	will-change: opacity;
}
.product-gallery__outgoing.is-gone { opacity: 0; }
.product-zoom__hint { margin-top: 1rem; color: #626b63; font-size: .8rem; }
.is-magnifying .product-zoom__hint { visibility: hidden; }

@media (max-width: 782px) {
	.product-lightbox { grid-template-columns: minmax(0, 1fr); padding-block: 4.5rem; }
	.product-lightbox__figure { grid-column: 1; }
	.product-lightbox__previous { position: absolute; left: clamp(1rem, 4vw, 2rem); bottom: 1.25rem; grid-column: 1; }
	.product-lightbox__next { position: absolute; right: clamp(1rem, 4vw, 2rem); bottom: 1.25rem; grid-column: 1; }
}

/* --- Specifications, read at a glance -------------------------------- */
.product-specs { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.product-specs__band { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	margin: 0; border-top: 1px solid #d1d5cc; border-bottom: 1px solid #d1d5cc; }
.product-specs__item { padding: 1.75rem clamp(1rem, 2vw, 2rem) 1.75rem 0; }
.product-specs__item + .product-specs__item { border-left: 1px solid #d1d5cc; padding-left: clamp(1rem, 2vw, 2rem); }
.product-specs__item dt { margin-bottom: .75rem; font-size: .6875rem; font-weight: 500;
	letter-spacing: .13em; text-transform: uppercase; color: #626b63; }
.product-specs__item dd { margin: 0 0 .5rem; font-size: 1.0625rem; line-height: 1.5; }
.product-specs__item dd:last-child { margin-bottom: 0; }
.product-specs__item dd span { display: inline-block; font-size: .8125rem; color: #626b63; }
.product-specs__item dd strong { font-weight: 500; }
.product-specs__item a { text-underline-offset: 3px; }
.product-specs + .product-gallery-slab { padding-top: clamp(3rem, 5vw, 5rem); }

@media (max-width: 782px) {
	.product-specs__band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-specs__item { padding: 1.25rem 1rem 1.25rem 0; }
	.product-specs__item + .product-specs__item { padding-left: 1rem; }
	.product-specs__item:nth-child(odd) { border-left: 0; padding-left: 0; }
	.product-specs__item:nth-child(n + 3) { border-top: 1px solid #d1d5cc; }
}

@media (max-width: 480px) {
	.product-specs__band { grid-template-columns: minmax(0, 1fr); }
	.product-specs__item { border-left: 0; padding: 1.25rem 0; }
	.product-specs__item + .product-specs__item { border-left: 0; padding-left: 0; border-top: 1px solid #d1d5cc; }
}

@media (prefers-reduced-motion: reduce) {
	.product-gallery__outgoing,
	.product-zoom__lens { transition: none; }
}
