.door-photos {scroll-margin-top:110px}
.door-photos h2 {margin-bottom:1rem}
.door-photos figure, .door-photo-dialog figure {margin:0;min-width:0}
.door-photos .photo-lead {display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;gap:24px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.photo-lead p {max-width:65ch;color:var(--muted);line-height:1.6}
.door-photo-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.door-photo {display:block;overflow:hidden;aspect-ratio:4/3;border-radius:7px;background:#f3f5f4;cursor:zoom-in}
.door-photo:focus-visible {outline:3px solid var(--amber);outline-offset:3px}
.photo-surface {display:block;position:relative;container-type:inline-size;width:100%}
.photo-surface img {display:block;width:100%;height:auto;margin:0}
.door-photo.photo-walnut .photo-surface {transform:translateY(-23%)}
.door-photo.photo-white .photo-surface {transform:translateY(-28%)}
.door-photo.photo-samples .photo-surface {transform:translateY(-13%)}
.door-photos figcaption,.door-photo-dialog figcaption {padding-top:.45rem;font-size:.9rem;line-height:1.45}
.door-photos .materials {margin-top:16px;padding-block:10px;border-block:1px solid var(--line)}
.door-photos .materials summary {cursor:pointer;font-weight:600}
.door-photos .materials .door-photo-grid {margin-top:12px}
.door-photo-dialog {position:fixed;inset:0;margin:auto;width:fit-content;height:fit-content;max-width:96vw;max-height:95vh;overflow:auto;background:#fff;color:var(--ink,#172823);padding:12px;border:0;border-radius:8px}
.door-photo-dialog::backdrop {background:#111c1aeb}
.door-photo-dialog button {display:block;margin-inline-start:auto;width:42px;height:42px;padding:0;border:0;background:#f3f6f4;border-radius:50%;color:#102620;cursor:pointer;font-size:24px;line-height:1;margin-bottom:8px}
.door-photo-dialog .photo-surface {width:min(86vw,var(--photo-width));margin-inline:auto}
@media(max-width:680px) {
  .door-photos .door-photo-grid {
    grid-template-columns: repeat(4, 46%);
    gap: 12px;
    overflow-x: auto;
    padding-block: 3px 8px;
    scroll-snap-type: x proximity;
  }
  .door-photos .door-photo-grid > figure { scroll-snap-align: start; }
  .door-photos .photo-lead {grid-template-columns:minmax(0,1fr) 85px;gap:12px}
}

/* Match the angle and light of the metal underneath each paper label. */
.photo-note {
  position: absolute;
  width: 34%;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(var(--label-angle)) skewX(var(--label-skew));
  padding: 1cqi 1.4cqi;
  background: linear-gradient(155deg, #f0eee6, #e5e2d7 77%, #dedacf);
  color: #293633;
  border: 1px solid #3b3a301c;
  border-radius: .25cqi;
  box-shadow: 0 .18cqi .23cqi #231e1938;
  text-align: center;
  text-wrap: balance;
  font: 650 2.65cqi/1.13 system-ui, sans-serif;
}
.photo-blue .photo-note {
  --label-angle: -1.1deg;
  --label-skew: -1.5deg;
  top: 8.8%;
  left: 62%;
}
.photo-oak .photo-note {
  --label-angle: 1.7deg;
  --label-skew: -2deg;
  top: 12%;
  left: 48.4%;
}
html:not([lang^="zh"]) .photo-note { font-size: 2.15cqi; }
