/* Banknotes stay rectangular, with the obverse directly above the reverse. */
.banknote-face-stack, .banknote-face { display: grid; min-width: 0; }
.banknote-face-stack { gap: 12px; }
.banknote-face { position: relative; gap: 3px; margin: 0; }
.banknote-face img, .banknote-detail .banknote-record-images .banknote-face img {
  display: block; width: 100%; height: auto; max-height: none; object-fit: contain;
}
.banknote-face-caption { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.banknote-catalog .coin-row-link { display: grid; width: clamp(250px, 23vw, 340px); min-width: 0; gap: 9px; }
.banknote-detail .catalog-image-gallery .catalog-image-grid { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
.banknote-detail .catalog-image-card img, .banknote-detail .linked-item-pair .linked-item-thumb { height: auto; object-fit: contain; }
.banknote-detail .linked-item-pair { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .catalog-item-detail.banknote-detail .strict-detail-layout { grid-template-columns: minmax(300px, 42%) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .banknote-catalog .catalog-responsive-list .coin-row-link { width: 100%; }
}

.banknote-slide .catalog-carousel-layout .catalog-carousel-media,
.banknote-slide .catalog-carousel-media .catalog-carousel-visual {
  height: auto; min-height: 0; overflow: visible;
}
.banknote-slide .catalog-carousel-visual .banknote-face-stack { width: 100%; max-width: 500px; padding: 10px; }
.banknote-slide .catalog-carousel-visual .banknote-face img { width: 100%; height: auto; max-height: none; }
.global-catalog-item-link.banknote-search-match { grid-template-columns: minmax(0, 1fr); }
.banknote-search-match .banknote-face-stack { width: 100%; max-width: 360px; }
