.pair-product,
.evidence-product {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.pair-product > div,
.evidence-product > div { min-width: 0; }

.comparison-thumb {
  flex: none;
  width: clamp(3rem, 6vw, 4.25rem);
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}

.comparison-thumb .product-photo img {
  display: block;
  padding: 0;
  object-fit: contain;
  mix-blend-mode: normal;
}

@media (max-width: 700px) {
  .pair-link {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    position: relative;
  }
  .pair-join { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pair-source-count { grid-column: 1; }
  .pair-product { gap: .6rem; }
}

/* Preserve the photographic tones of local product images. */
.product-photo img { mix-blend-mode:normal; }
.perfume-card .card-art .product-photo img, .product-compact .detail-visual .product-photo img { padding:0; }
.product-photo-cropped { container-type:size; }
.product-frame-crop {
  width:100%; width:min(100%,var(--frame-width)); aspect-ratio:var(--frame-ratio);
  display:block; overflow:hidden; position:relative;
}
.product-photo .product-frame-crop img {
  position:absolute; max-width:none; max-height:none; object-fit:fill;
  width:var(--picture-width); height:var(--picture-height); left:var(--picture-left); top:var(--picture-top);
  padding:0; filter:brightness(var(--exposure));
}
.photo-format-label {
  position:absolute; bottom:.4rem; left:.4rem; border-radius:.2rem; padding:.12rem .45rem;
  color:#272723; background:#fffdf5ee; font-weight:600;
}
.comparison-thumb .photo-format-label { display:none; }
.product-photo-tools { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 1rem; }
.product-photo-tools .photo-credits { flex:1 0 auto; width:auto; max-width:100%; }
.photo-expand,.photo-unavailable a {
  font:inherit; font-size:.875rem; border:0; background:none; padding:.45rem 0;
  cursor:pointer; color:var(--ink); text-decoration:underline; text-underline-offset:.2em;
}
.product-without-photo { display:flex; flex-direction:column; gap:.4rem; padding:1rem; text-align:center; }
.product-without-photo small { font-size:.85rem; color:var(--muted); }
.product-without-photo span { font-weight:550; }
.product-photo-dialog {
  position:fixed; inset:0; margin:auto; width:min(92vw,42rem); max-height:90vh;
  color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:.5rem;
  padding:clamp(.85rem,2.3vw,1.5rem); overflow:auto;
}
.product-photo-dialog::backdrop { background:#151411b3; }
.photo-dialog-title { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.photo-dialog-title h2 { font-size:1.35rem; margin:0; }
.photo-dialog-title button { min-height:44px; padding:0 .5rem; }
.photo-dialog-view { height:min(58vh,32rem); margin:.5rem 0; }
.photo-dialog-view .product-photo img { padding:0; }
.product-photo-dialog > p { font-size:.875rem; margin:.5rem 0 0; }
.product-photo-dialog a { text-decoration:underline; }
@media (max-width:700px) {
  .product-compact .detail-visual>.product-photo { height:clamp(150px,43vw,205px); }
}

/* Lift the exposure of the night-time reference photograph on every product surface. */
.product-photo[data-product-photo="oud-wood"] img { filter:brightness(3) contrast(.95); }

/* Keep the entire photograph visible when the source calls for full-frame display. */
.product-photo > .card-photo-source { display:block; width:100%; height:100%; }
.product-photo.product-photo-full > img,
.product-photo.product-photo-full > .card-photo-source > img {
  object-fit:contain; object-position:center; transform:none; filter:none; mix-blend-mode:normal;
}
