/* R04 detail composition. Gallery sizing, contracts and interaction live in detail.css. */
.p01-r05 .p01-detail:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  --detail-line: #e2ded4;
  --detail-pane: #f3f0ea;
  --detail-dim: #495248;
  --detail-rule-strong: #a39a87;
}

.p01-r05 .p01-detail-crumbs:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  padding-block: .77rem .94rem;
}

.p01-r05 .p01-detail-directory:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  border-color: #e5e0d7;
}

.p01-r05 .p01-detail-directory > details > summary:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  padding-inline: .12em;
}

.p01-r05 .p01-detail-search input:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  background: #f9f7f2;
  border-color: #d9d4c9;
}

.p01-r05 .p01-detail-directory-list li > a:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  gap: .64rem;
  padding-inline: .38rem .29rem;
}

.p01-r05 .p01-detail-directory-list li > a[aria-current="page"]:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  background: #f9f5eb;
  border-color: #af8544;
}

.p01-r05 .p01-detail-directory-list strong:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  font-size: clamp(.77rem, 1.21vw, 1.05rem);
  line-height: 1.16;
}

.p01-r05 .p01-detail-directory-list .p01-detail-subtitle:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  font-size: .76em;
  line-height: 1.17;
}

.p01-r05 .p01-detail-stage:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  background-color: #061512;
  background-image: radial-gradient(ellipse at 49% 43%, rgba(52,77,65,.18), rgba(4,18,15,0) 72%);
  box-shadow: inset 0 0 0 1px rgb(105 129 116 / .15), inset 0 0 42px rgb(1 13 11 / .28);
}

.p01-r05 .p01-detail-stage > .p01-detail-original:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  object-position: 50% 50%;
}

.p01-r05 .p01-detail-tools:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  gap: clamp(.4rem, 1.02vw, .75rem);
}

.p01-r05 .p01-detail-stage .p01-detail-orbit:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  background: #0a1714;
  border-color: #a8ab9d;
}

.p01-r05 .p01-detail-stage .p01-detail-orbit:hover:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  background: #25392f;
}

.p01-r05 .p01-detail-counter progress:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  width: clamp(62px, 9.35vw, 125px);
  margin-top: .48rem;
}

.p01-r05 .p01-detail-info > .p01-detail-kicker:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin-block: .1rem .55rem;
  padding: .31rem .61rem;
  letter-spacing: .09em;
}

.p01-r05 .p01-detail-info > h1:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin-bottom: clamp(.78rem, 1.3vw, 1.45rem);
}

.p01-r05 .p01-detail-info > h1 .p01-detail-subtitle:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin-top: .22em;
}

.p01-r05 .p01-detail-info > h1 .p01-detail-subtitle:lang(zh):where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  /* CJK closing punctuation can hang beyond the line box in Chrome. */
  padding-inline-end: .58em;
  letter-spacing: normal;
}

.p01-r05 .p01-detail-info > .p01-detail-institution:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  color: #242c25;
  margin-bottom: .64rem;
}

.p01-r05 .p01-detail-copy--second:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin-top: .65rem;
}

.p01-r05 .p01-detail-metadata:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin: 1.22rem 0 .91rem;
}

.p01-r05 .p01-detail-metadata:where(:not([data-wichf-shell], [data-wichf-shell] *))::before {
  width: 2.2rem;
  margin-bottom: .58rem;
  border-color: #756d5d;
}

.p01-r05 .p01-detail-metadata > div:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  grid-template-columns: minmax(0, 28fr) minmax(0, 72fr);
  padding-block: .38rem;
  gap: .42rem;
}

.p01-r05 .p01-detail-metadata dt:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  color: #313931;
}

.p01-r05 .p01-detail-metadata dd:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  border-color: #b9b0a1;
  padding-inline-start: clamp(.46rem, .86vw, .78rem);
}

.p01-r05 .p01-detail-actions:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  gap: .62rem;
}

.p01-r05 .p01-detail-cta:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  border-color: #948a78;
  padding-block: .57rem;
}

.p01-r05 .p01-detail-cta--gold:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  border-color: #c9a973;
}

.p01-r05 .p01-detail-provenance:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  gap: .26rem;
  padding-top: .6rem;
}

.p01-r05 .p01-detail-sources:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  gap: .72rem;
}

.p01-r05 .p01-detail-related-head:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
  margin-bottom: .68rem;
}

@media (min-width: 980px) {
  .p01-r05 .p01-detail-directory-list li > a:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
  }

  .p01-r05 .p01-detail-directory-list img:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    height: clamp(57px, 6.45vw, 96px);
  }

  .p01-r05 .p01-detail-stage:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    padding-inline: clamp(27px, 2.7vw, 38px) clamp(39px, 4.3vw, 66px);
  }

  .p01-r05 .p01-detail-grid[data-image-shape="panoramic-vertical"] .p01-detail-stage:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    padding-block-start: clamp(30px, 3.5vw, 56px);
    padding-block-end: clamp(19px, 3vw, 43px);
  }

  .p01-r05 .p01-detail-tools:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    inset-block-start: max(12px, 1.7vw);
    inset-inline-end: max(14px, 1.9vw);
  }

  .p01-r05 .p01-detail-grid[data-image-shape="panoramic-vertical"] .p01-detail-orbit--prev:where(:not([data-wichf-shell], [data-wichf-shell] *)),.p01-r05 
  .p01-detail-grid[data-image-shape="panoramic-vertical"] .p01-detail-orbit--next:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    top: 38.8%;
  }

  .p01-r05 .p01-detail-related-head:where(:not([data-wichf-shell], [data-wichf-shell] *)),.p01-r05 
  .p01-detail-related-grid:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    margin-inline: clamp(3px, .55vw, 10px);
  }
}

@media (max-width: 680px) {
  .p01-r05 .p01-detail-info > .p01-detail-kicker:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    margin-bottom: .52rem;
  }

  .p01-r05 .p01-detail-actions:where(:not([data-wichf-shell], [data-wichf-shell] *)) {
    gap: .53rem;
  }

}
