/* Product page: the second frame, swap, zoom dialog. */
/* Title panel: the name runs the width of the panel at section-heading size or larger,
   the kind sits on its baseline, the two sentences share one row under it. */
.prod-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem;
  padding: 0.75rem clamp(0.875rem, 1.6vw, 1.5rem);
}
.prod-head__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 1.5rem; min-width: 0; }
.prod-head__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.25rem var(--gap); align-items: start; }
.prod-h1 { min-width: 0; font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 1.04; }
.prod-kind { margin: 0; }
.prod-head .lead { margin: 0; max-width: none; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; }
.prod-head .measure { margin: 0; max-width: 44em; font-size: 1.0625rem; line-height: 1.6; }
.prod-h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.prod-open { gap: 0.75rem; padding-top: 0.75rem; padding-bottom: clamp(1.5rem, 4vh, 3rem); }

.prod-pair { align-items: stretch; gap: 0 var(--gap); }
.prod-pair > .prod-own { order: 1; }
.prod-pair > .prod-partner { order: 2; }
.prod-pair > .prod-swaprow { order: 3; }
.prod-pair > .rimline { order: 4; margin-top: 0.5rem; }
.prod-pair.is-swapped > .prod-own { order: 2; }
.prod-pair.is-swapped > .prod-partner { order: 1; }
.prod-pair .mount img { aspect-ratio: auto; height: clamp(14rem, 32vh, 26rem); object-fit: cover; object-position: center 60%; }
.prod-pair .mount { transition: background-color var(--quick) linear, box-shadow var(--quick) linear; }
.prod-pair .mount:hover, .prod-pair .mount:focus-within { --frame-bg: var(--sun); background: var(--sun); }
.prod-partner__link { display: block; text-decoration: none; }
.prod-partner__link:hover, .prod-partner__link:focus-visible { background: transparent; }
.prod-cap, .prod-own figcaption { display: block; padding: 0.625rem 0.75rem 0.5rem; font-size: 1rem; line-height: 1.45; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: var(--hair); }
.prod-own figcaption { text-decoration: none; }
.prod-partner--open { justify-content: center; padding: 1.5rem; }

/* Swap bar: a framed caption bar on the bottom edge of the pair. */
.prod-swaprow { display: none; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.panel.prod-swaprow { padding: 0.5rem 1.125rem; }
.js .prod-swaprow { display: flex; }
.js #swap { display: inline-flex; }
.js #swap[hidden] { display: inline-flex !important; }
.prod-swaprow .btn { flex: none; font-size: 1.0625rem; }
.prod-swapnote { flex: 1 1 14rem; font-family: var(--display); font-style: italic; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.3; }
[data-zoom] { cursor: zoom-in; }

.prod-body, .prod-phrase, .prod-more { padding-block: clamp(1.5rem, 6vh, 4rem); }
.prod-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); align-items: stretch; }
.prod-cols > .panel { margin: 0; }
.prod-prose { display: flex; flex-direction: column; justify-content: center; }
.prod-ledger h3 { padding: 0.5rem 0.875rem; }

/* Phrase card: three columns, a large numeral over each step. */
.prod-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: step; font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; }
.prod-steps li { counter-increment: step; padding-top: 0.5rem; border-top: var(--line) solid var(--ink); max-width: 30em; }
.prod-steps li::before { content: counter(step); display: block; margin-bottom: 0.15em; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; }

/* Hand-off: large heading left, two tall links right. */
.handoff.prod-next { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: var(--gap) calc(var(--gap) * 1.5); }
.prod-next__h { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.05; }
.prod-next p { margin: 0.6em 0 0; max-width: 34em; }
.prod-next__go { display: flex; flex-direction: column; gap: 0.75rem; }
.prod-next__go .btn { flex: 1 1 auto; min-height: 4rem; font-family: var(--display); font-style: italic; font-size: clamp(1.375rem, 2vw, 1.875rem); }

/* Other horns: three mounts of one height and unequal widths; every picture is cropped by object-fit. */
.prod-morelist { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1.2fr); grid-auto-flow: row dense; gap: var(--gap); align-items: stretch; }
.prod-m1, .prod-m2, .prod-m3 { min-width: 0; margin-top: 0; }
.prod-morelist .mount > a { display: block; overflow: hidden; }
.prod-morelist .mount img { aspect-ratio: auto; width: 100%; height: clamp(16rem, 26vw, 24rem); object-fit: cover; object-position: center 55%; }
/* The Vintage Reborn photograph shows the whole horn: it takes the widest mount, so the same height crops it in. */
.prod-morelist .prod-more--vintage-reborn-series { grid-column: 2; grid-row: 1; }
.prod-morelist .prod-more--vintage-reborn-series img { object-position: 50% 62%; }
.prod-morelist figcaption a { display: inline-block; padding: 0.25rem 0; min-height: 2.75rem; font-family: var(--display); font-style: italic; font-size: 1.375rem; }

.prod-dialog { width: min(92vw, 44rem); max-height: 94vh; padding: 0.75rem; border: var(--line) solid var(--ink); border-radius: 0; background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 var(--inset) var(--panel), inset 0 0 0 0.375rem var(--ink); }
.prod-dialog::backdrop { background: rgba(37, 33, 59, 0.8); }
.prod-dialog img { width: 100%; max-height: 78vh; object-fit: contain; margin-bottom: 0.5rem; }
.prod-dialog p { margin: 0 0 0.5rem; font-size: var(--fs-small); }

@media (max-width: 47.99rem) {
  .prod-head, .prod-head__text, .prod-cols, .prod-morelist, .prod-steps, .handoff.prod-next { grid-template-columns: minmax(0, 1fr); }
  .prod-head { gap: 0.625rem; padding: 1rem 1.125rem; }
  .prod-head__text { gap: 0.5rem; }
  .prod-h1 { font-size: 2.5rem; }
  .prod-pair { --gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-pair .mount img { height: 12rem; }
  .prod-pair .mount { padding: 0.25rem; }
  .prod-cap, .prod-own figcaption { font-size: 0.9rem; }
  .prod-morelist .prod-more--vintage-reborn-series { grid-column: auto; grid-row: auto; }
  .prod-morelist .mount img { height: 16rem; }
  .prod-steps { font-size: 1.375rem; }
  .prod-steps li::before { font-size: 3rem; }
}
