/* One continuous product block, with labels over the photographs. */
:root { --product-pearl: #fff; }
.collection { padding: 0; scroll-margin-top: -100px; background: var(--product-pearl); overflow: hidden; }
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; width: 100%; margin: 0; }
.card { display: block; position: relative; min-width: 0; padding: 0; border: 0; background: var(--product-pearl); text-align: left; }
.card__media { display: block; aspect-ratio: 2/3; overflow: hidden; background: var(--product-pearl); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; transition: transform 360ms var(--ease); }
.card__cap { position: absolute; inset: 22px 24px auto; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; pointer-events: none; color: var(--ink); }
.card__price { white-space: nowrap; }
.card__expand { display: none; }
.gal { background: var(--product-pearl); }
.card__expand:active { background: rgb(0 0 0 / .025); }
.card__expand:focus-visible { outline-offset: -4px; }
.catalog-intro { padding: 136px 24px 24px; background: var(--product-pearl); }
.catalog-intro h1 { margin: 0; }
.filters { display: flex; align-items: center; gap: 28px; padding: 0 24px 24px; background: var(--product-pearl); }
.filter { min-height: 44px; position: relative; border: 0; padding: 10px 0; background: transparent; font: 500 12px/1.4 var(--sans); color: var(--muted); }
.filter[aria-pressed=true] { color: var(--ink); }
.collection__count { margin-left: auto; color: var(--muted); font: 400 12px/1.4 var(--sans); }
@media (hover:hover) and (pointer:fine) { .card:hover img { transform: scale(1.025); } .filter:hover { color: var(--ink); } }
@media (max-width:1023px) { .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width:1920px) { .grid { grid-template-columns: repeat(8,minmax(0,1fr)); } }
@media (max-width:767px) {
 .collection { scroll-margin-top: -84px; }
 .card__cap { inset: 16px 14px auto; gap: 6px; }
 .catalog-intro { padding: 112px 14px 20px; }
 .filters { gap: 24px; padding: 0 14px 20px; flex-wrap: wrap; }
}
@media (max-width:767px), (hover:none) and (pointer:coarse) {
 .card__expand { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
}
/* Mobile enlargement: the photograph itself, with only its name and price. */
.product-preview { width: min(540px, calc(100vw - 24px), calc((100dvh - 48px) * .666667)); aspect-ratio: 2/3; height: auto; max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: var(--product-pearl); color: var(--ink); overflow: hidden; }
.product-preview::backdrop { background: rgb(36 36 36 / .5); }
.product-preview__image { display: block; width: 100%; height: 100%; aspect-ratio: 2/3; object-fit: contain; background: transparent; }
.product-preview__caption { position: absolute; inset: 24px 66px auto 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; pointer-events: none; }
.product-preview__name { font: 500 15px/1.4 var(--sans); }
.product-preview__price { font: 400 14px/1.4 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-preview__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; padding: 0; background: rgb(255 255 255 / .8); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 140ms var(--ease); }
.product-preview__close svg { width: 20px; height: 20px; }
.product-preview__close:active { transform: scale(.97); }
.product-preview__close:focus-visible { outline-offset: -4px; }
.product-preview__error { position: absolute; inset: 30% 24px; text-align: center; font: 400 16px/1.6 var(--sans); }
@media (prefers-reduced-motion:reduce) { .card__media img { transition: none; } .card:hover img { transform: none; } }
@media (prefers-reduced-motion:reduce) { .product-preview__close { transition: none; } }
@media (forced-colors:active) { .card,.filter { border: 1px solid ButtonText; } .card__cap, .product-preview__caption { background: Canvas; color: CanvasText; } .product-preview__close { background: ButtonFace; color: ButtonText; } }

/* All five photographs share the existing mobile enlargement. */
.product-preview__image { touch-action: pan-y pinch-zoom; }
.product-preview__photos { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.product-preview__photos[hidden] { display: none; }
.product-preview__photos output { min-width: 34px; text-align: center; font: 400 12px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.product-preview__nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); cursor: pointer; }
.product-preview__nav svg { width: 20px; height: 20px; }
.product-preview__nav:active { transform: scale(.97); }
@media (hover:hover) and (pointer:fine) { .product-preview__nav:hover { background: var(--brand); } }
@media (forced-colors:active) { .product-preview__nav { background: ButtonFace; color: ButtonText; } }

/* Provisional November pieces retain their photographed framing. */
.card--provisional .card__media img { object-fit: contain; height: calc(100% - 54px); margin-top: 54px; }
.page-home .card--provisional .card__media img { height: calc(100% - 112px); margin-top: 112px; }
@media(max-width:767px) { .card--provisional .card__media img, .page-home .card--provisional .card__media img { height: calc(100% - 44px); margin-top: 44px; } }

/* New provisional pieces expose their requested photo carousel on desktop too. */
.card--provisional .card__expand { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: zoom-in; }

/* Collection prices remain readable beside the existing gallery. */
.modal__prices { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; margin: 24px 0; font: 400 15px/1.5 var(--sans); }
.modal__prices[hidden] { display: none; }
.modal__prices dt, .modal__prices dd { margin: 0; }
.modal__prices dd { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
