/* Measurements are relative to the photograph, never to the viewport. */
.vr-detail-photo {
  display: block;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}
.vr-detail-photo > img { display: block; width: 100%; height: auto; }
.vr-detail-photo::after {
  content: "";
  position: absolute;
  left: var(--vr-x);
  top: var(--vr-y);
  width: var(--vr-w);
  height: var(--vr-h);
  background: #172723 url("symbol.svg") center / 78% 78% no-repeat;
  box-shadow: inset 0 0 0 1px #a99976;
  pointer-events: none;
}
.vr-photo-view { margin: 0; background: #171e1b; }
.vr-photo-view main { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.vr-photo-view .vr-detail-photo { width: min(100%,calc(100vh * var(--vr-ratio))); width: min(100%,calc(100dvh * var(--vr-ratio))); }

.detail-photo-set.studio-lookbook {
  margin: 2.5rem 0;
  border-top: 1px solid #b2a78d;
  padding-top: 1.15rem;
}
.studio-lookbook h3 {
  font: 400 clamp(1.85rem,4vw,3.1rem)/1.08 Georgia,serif;
  letter-spacing: -.045em;
  color: #182923;
}
.studio-lookbook .description-images {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 1.35rem .85rem;
  margin-top: 1.25rem;
}
.studio-lookbook .description-images a {
  grid-column: span 3;
  display: block;
  color: #263731;
  text-decoration: none;
}
.studio-lookbook .description-images a:nth-child(n+5):nth-child(-n+7) {grid-column: span 2}
.studio-lookbook .angle-label {
  display: block;
  padding: .5rem 0 .45rem;
  border-bottom: 1px solid #d7d2c5;
  font: 500 .83rem/1.3 system-ui,sans-serif;
}
@media(max-width:600px) {
  .studio-lookbook .description-images {grid-template-columns: repeat(2,minmax(0,1fr));gap: 1rem .6rem}
  .studio-lookbook .description-images a:nth-child(n) {grid-column: span 1}
  .studio-lookbook .description-images a:nth-child(-n+2),
  .studio-lookbook .description-images a:nth-child(7) {grid-column: 1/-1}
  .studio-lookbook .angle-label {font-size: .78rem}
}

.photo-pending {padding:2rem 1rem;background:#f4f2ec;color:#45504b;text-align:center}

.supplemental-photos { margin: 2rem 0; padding-top: 1rem; border-top: 1px solid #c9c2b4; }
.supplemental-photos > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,148px), min(100%,230px))); gap: 12px; }
.supplemental-photos .vr-detail-photo { align-self: start; }
@media(max-width:600px) {
  .supplemental-photos > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .supplemental-photos > div > :only-child { grid-column: span 2; max-width: 260px; width: 100%; }
}

/* Reviewed collection detail pages: studio photography followed by the catalogue sheet. */
#content:has(.edition-detail) .product-detail h1,
#content:has(.edition-detail) :is(.detail-section,.supplemental-photos,.specification-panel) h2 {
  font-family: Georgia, serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.1;
}
#content:has(.edition-detail) .detail-jumps { display: flex; gap: 1rem; flex-wrap: wrap; }
#content:has(.edition-detail) .detail-jumps :is(button,a) { color: #243a30; background: transparent; border: 0; border-bottom: 1px solid #9b906d; border-radius: 0; padding: 6px 0; }
.edition-detail .product-photos:has(> .photo-pending) { display: none; }
.edition-detail:has(.product-photos > .photo-pending) { display: block; border-top: 2px solid #344c40; padding-top: 1.2rem; }
#content:has(.edition-detail) #detail-photographs.photo-pending { display:none; }
#content:has(.edition-detail) .supplemental-photos > div { max-width: 720px; margin-inline:auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
#content:has(.edition-detail) .supplemental-photos img { object-fit:contain; background:white; }
#content:has(.edition-detail) .specification-panel dl { align-items:baseline; }
@media (max-width:650px) {
  #content:has(.edition-detail) .product-detail h1 { font-size:clamp(1.7rem,7vw,2.4rem); margin:.45rem 0 .8rem; }
  #content:has(.edition-detail) .supplemental-photos > div { gap:8px; }
  #content:has(.edition-detail) .supplemental-photos > div > :first-child:nth-last-child(odd) {grid-column:1/-1; width:min(100%,320px); justify-self:center;}
  #content:has(.edition-detail) :is(.specification-panel,.detail-section) { margin-block:1.6rem; }
}
