/* Piatrom catalogue: a photographed installation, the material palette, then the stock. */
.pg-gallery {
  --pg-dark: #262b26;
  --pg-light: #f8f4eb;
  --pg-rule: #cec9bd;
  --pg-accent: #73492f;
}
.pg-gallery .pc-crumb {padding-block: .85rem}
.pg-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(14rem,.75fr);
  align-items: end;
  min-height: clamp(24rem,35vw,34rem);
  padding: clamp(1.65rem,4vw,4rem);
  gap: clamp(1rem,3vw,3rem);
  color: var(--pg-light);
  background: var(--pg-dark);
}
.pg-visual,
.pg-visual img,
.pg-hero::before {position: absolute; inset: 0; width: 100%; height: 100%}
.pg-visual {z-index: -2; display: block; overflow: hidden}
.pg-visual img {display: block; object-fit: cover}
.pg-hero::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,rgb(25 23 18 / .74),rgb(34 31 22 / .22) 57%,transparent 85%),
              linear-gradient(0deg,rgb(19 17 12 / .54),transparent 48%);
}
.pg-hero-copy {max-width: 37rem}
.pg-gallery .pg-hero h1 {
  color: inherit;
  font-size: clamp(3.3rem,6.3vw,6.5rem);
  line-height: .98;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.pg-hero-copy p {font-size: clamp(.95rem,1.3vw,1.15rem); margin: .85rem 0 0; line-height: 1.44}
.pg-gallery .pg-jump {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 44px;
  margin-top: clamp(1.15rem,2.1vw,2rem);
  padding: .68rem 1.15rem;
  background: var(--pg-light);
  color: var(--pg-dark);
  border: 1px solid var(--pg-light);
  border-radius: 2px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.pg-jump span {font-size: 1.1rem}
.pg-jump:hover,.pg-jump:focus-visible {background: #fff}
.pg-gallery .pg-caption {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 23rem;
  width: max-content;
  min-height: 52px;
  padding: .7rem .94rem;
  border: 1px solid rgb(250 244 230 / .42);
  background: rgb(34 33 27 / .9);
  color: var(--pg-light);
  text-decoration: none;
}
.pg-caption:hover,.pg-caption:focus-visible {border-color: var(--pg-light)}
.pg-caption small {display: block; color: #e8deca; font-size: .69rem; letter-spacing: .04em; margin-bottom: .25rem}
.pg-caption strong {display: block; font-size: .94rem; font-weight: 500; line-height: 1.32}
.pg-caption .pg-corner-arrow {flex: none; margin-left: .4rem}
.pg-hero-detail {display: block; width: 3.1rem; height: 3.3rem; overflow: hidden; flex: none}
.pg-hero-detail img,.pg-swatch-photo img {width: 100%; height: 100%; display: block; object-fit: cover}
.pg-study .pg-visual,.pg-object .pg-visual {left: 44%; width: 56%}
.pg-study .pg-visual img {object-position: 50% 52%}
.pg-object .pg-visual {background: #e4dfd3}
.pg-object .pg-visual img {position: static; object-fit: contain; mix-blend-mode: multiply; padding: clamp(1.8rem,3.2vw,3rem)}
.pg-study::before,.pg-object::before {background: linear-gradient(90deg,var(--pg-dark) 0 39%,rgb(38 43 38 / .86) 43.9%,transparent 57%)}
.pg-study .pg-hero-copy,.pg-object .pg-hero-copy {align-self: center}
.pg-study h1,.pg-object h1 {max-width: 12ch}
.pg-study .pg-caption,.pg-object .pg-caption {max-width: min(100%,22rem)}
.pg-gallery .pg-palette {margin: clamp(1.8rem,3.5vw,3.5rem) 0}
.pg-gallery h2 {margin: 0; line-height: 1.1}
.pg-gallery .pg-palette h2 {margin-bottom: 1rem; font-size: clamp(1.4rem,2.3vw,2.1rem)}
.pg-swatches {display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: clamp(.6rem,1.35vw,1.4rem)}
.pg-swatch {display: block; min-width: 0; text-decoration: none}
.pg-swatch-photo {display: block; height: clamp(2.9rem,4.8vw,5.7rem); overflow: hidden; background: #e6e1d5}
.pg-swatch.pg-supply img {object-fit: contain; mix-blend-mode: multiply; padding: .2rem}
.pg-swatch-name {
  display: block;
  padding: .62rem 0 .32rem;
  color: #30352c;
  font-weight: 550;
  font-size: clamp(.72rem,.95vw,.92rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.pg-swatch[aria-current] .pg-swatch-name,.pg-swatch:hover .pg-swatch-name {text-decoration: underline; text-underline-offset: .24rem}
.pg-swatch[aria-current] .pg-swatch-photo {outline: 2px solid var(--pg-accent); outline-offset: 2px}
.pg-products {border-top: 1px solid var(--pg-rule); scroll-margin-top: 6rem}
.pg-toolbar {display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0}
.pg-results-heading {display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem}
.pg-results-heading h2 {font-size: clamp(2.3rem,3.8vw,3.8rem)}
.pg-results-heading [data-stats] {font-size: .78rem; color: var(--pc-soft)}
.pg-filters {display: flex; flex-wrap: wrap; align-items: end; gap: .8rem}
.pg-gallery .pg-filters label {flex:1 1 9rem; min-width: 0; max-width: 20rem; font-size: .72rem}
.pg-gallery .pg-filters input,.pg-gallery .pg-filters select {min-height: 44px; font-size: .88rem; border-color: #b8b4a8; border-radius: 0; margin-top: .28rem}
.pg-gallery .pc-grid {grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(2rem,3.5vw,4rem) clamp(.8rem,1.45vw,1.55rem)}
.pg-gallery .pc-card {grid-column: span 4; border-bottom: 1px solid var(--pg-rule); padding-bottom: 1.1rem}
.pg-gallery .pc-card-image {height: clamp(12rem,20vw,22rem); aspect-ratio: auto}
.pg-gallery .pc-card-meta {font-size: .77rem}
.pg-gallery .pc-card h3 {font-size: clamp(1.35rem,2.03vw,2.18rem); margin-bottom: .65rem}
.pg-gallery .pc-price {font-size: .94rem}
@media (min-width: 901px) {
.pg-gallery .pc-card:only-child {grid-column: span 6}
.pg-gallery .pc-grid:not(:has([hidden])) .pc-card:nth-child(9n+1):not(:only-child) {grid-column: span 6}
.pg-gallery .pc-grid:not(:has([hidden])) .pc-card:is(:nth-child(9n+2),:nth-child(9n+3)) {grid-column: span 3}
}
.pg-gallery .pg-back,.pg-empty button {display: inline-flex; align-items: center; min-height: 44px; gap: .65rem; margin-top: 1.25rem; color: var(--pg-accent); text-underline-offset: .25rem}
.pg-empty button {cursor: pointer; border: 1px solid var(--pg-rule); background: none; padding: .4rem 1rem; margin: 0; font: inherit}
.pg-empty {padding: 1rem 0}
@media (max-width: 900px) {
  .pg-swatches {grid-template-columns: repeat(4,minmax(0,1fr)); row-gap: .6rem}
  .pg-hero {grid-template-columns: minmax(0,1.1fr) minmax(12rem,.9fr)}
  .pg-gallery .pg-caption {max-width: 100%}
  .pg-gallery .pc-grid {grid-template-columns: repeat(2,minmax(0,1fr))}
  .pg-gallery .pc-grid .pc-card:nth-child(n) {grid-column: auto}
  .pg-gallery .pc-card-image {height: auto; aspect-ratio: 1.48}
}
@media (max-width: 640px) {
  .pg-gallery .pc-crumb {padding-block: .68rem}
  .pg-hero {min-height: clamp(23rem,108vw,29rem); padding: 1.1rem; align-content: end; grid-template-columns: 1fr; gap: 1rem}
  .pg-hero::before {background: linear-gradient(0deg,rgb(18 18 15 / .92),rgb(21 20 15 / .65) 42%,transparent 84%)}
  .pg-gallery .pg-hero h1 {font-size: clamp(2.45rem,11vw,4rem); max-width: 13ch; line-height: 1.03}
  .pg-gallery .pg-object h1 {max-width: none; font-size: clamp(2rem,9.25vw,3.6rem)}
  .pg-hero-copy p {font-size: .88rem; margin-top: .4rem}
  .pg-gallery .pg-jump {min-height: 44px; margin-top: .9rem; padding: .5rem .82rem; font-size: .8rem}
  .pg-gallery .pg-caption {justify-self: stretch; width: 100%; max-width: none; border: 0; border-top: 1px solid rgb(246 241 228 / .55); padding: .72rem 0 0; background: transparent; gap: .64rem}
  .pg-caption small {font-size: .66rem; margin-bottom: .12rem}
  .pg-caption strong {font-size: .81rem}
  .pg-caption .pg-corner-arrow {margin-left: auto}
  .pg-hero-detail {width: 2.1rem; height: 2.2rem}
  .pg-study .pg-visual,.pg-object .pg-visual {inset: 0 0 auto; width: 100%; height: 55%}
  .pg-study::before,.pg-object::before {background: linear-gradient(0deg,var(--pg-dark) 0 43%,rgb(38 43 38 / .88) 47%,transparent 66%)}
  .pg-object .pg-visual img {padding: .65rem .65rem 1.3rem}
  .pg-study .pg-hero-copy,.pg-object .pg-hero-copy {align-self: end}
  .pg-gallery .pg-palette {margin-block: 1.6rem}
  .pg-gallery .pg-palette h2 {margin-bottom: .7rem}
  .pg-swatches {display: flex; overflow-x: auto; overscroll-behavior-inline: contain; gap: .7rem; padding: .45rem .22rem .65rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #8c897c transparent}
  .pg-swatch {flex: 0 0 5.7rem; scroll-snap-align: start}
  .pg-swatch-photo {height: 3.5rem}
  .pg-swatch-name {font-size: .71rem; padding-top: .5rem}
  .pg-toolbar {display: grid; gap: .85rem; margin: 1.15rem 0}
  .pg-filters {gap: .65rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr))}
  .pg-filters:has(label:only-child) {grid-template-columns: 1fr}
  .pg-gallery .pg-filters label {max-width: none}
  .pg-gallery .pg-filters input,.pg-gallery .pg-filters select {font-size: 1rem; padding-inline: .5rem}
  .pg-gallery .pc-grid {gap: 1.65rem .75rem}
  .pg-gallery .pc-card-image {aspect-ratio: 1.15}
  .pg-gallery .pc-card-meta {font-size: .67rem}
  .pg-gallery .pc-card h3 {font-size: clamp(1.12rem,4.8vw,1.6rem); overflow-wrap: anywhere; margin-bottom: .45rem}
  .pg-gallery .pc-price {font-size: .78rem}
  .pg-gallery .pc-grid .pc-card:only-child {grid-column: 1/-1}
}
@media (max-width: 355px) {
  .pg-gallery .pg-filters {grid-template-columns: minmax(0,1fr)}
  .pg-gallery .pc-grid {grid-template-columns: minmax(0,1fr)}
  .pg-gallery .pc-card-meta {display: flex}
  .pg-gallery .pc-card h3 {font-size: 1.45rem}
  .pg-gallery .pc-price {font-size: .88rem}
}
