/* Une seule galerie, dans le panneau situé sous les onglets. */
#showcase { padding-top: 0; }
#showcase .hero { padding-top: 12px; }
#showcase .scene-hint { max-width: calc(100% - 32px); text-align: center; }
#showcase .scene-display { cursor: pointer; }
#showcase .permanent-showcase .scene-showcase .scene-display:not(.vacant-display) { padding-bottom: 62px; }
#showcase .scene-showcase .scene-display .scene-object-image {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
}
#showcase .scene-price {
  position: absolute;
  z-index: 8;
  left: 8px;
  right: 8px;
  bottom: 34px;
  color: #f2ebff;
  font: 800 15px/1.2 "DM Sans", sans-serif;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* Le zoom reste contenu dans la fenêtre, y compris les effets de rareté. */
#openingModal.stored-item-preview { overflow-x: hidden; overscroll-behavior: contain; }
#openingModal.stored-item-preview .reveal { min-width: 0; width: 100%; }
#openingModal.stored-item-preview .reveal-item { min-width: 0; width: 100%; max-width: 100%; }
#openingModal.stored-item-preview .object-inspector { width: 100%; max-width: 520px; }
#openingModal.stored-item-preview .reveal-item h3,
#openingModal.stored-item-preview .rarity-lore { overflow-wrap: anywhere; }
#openingModal.stored-item-preview .reveal-actions > button { min-width: 0; white-space: normal; }
#returnShowcaseAction[hidden] { display: none; }

@media (max-width: 768px) {
  #showcase .garage-viewport.permanent-showcase { height: 810px; }
  #showcase .permanent-showcase .container-3d { top: 180px; height: 565px; }
  #showcase .permanent-showcase .scene-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  }
  #showcase .permanent-showcase .scene-showcase .scene-display:not(.vacant-display) { padding: 5px 6px 44px; }
  #showcase .scene-price { bottom: 23px; font-size: 12px; }
  #showcase .premium-showcase-header > div { gap: 7px; }
  #showcase .premium-showcase-header strong { font-size: 22px; white-space: nowrap; }
  #showcase .premium-showcase-header small { font-size: 7px; letter-spacing: 1px; }
  #showcase .premium-showcase-header i { margin: 0 6px; }
  #showcase .permanent-showcase .scene-rarity { bottom: 5px; min-width: 62px; padding: 3px 5px; font-size: 6px !important; }
  #showcase .scene-hint { font-size: 7px; }
}
