/* Keep prompt artwork fully visible in the detail gallery. */
.detail-art.has-image {
  height: min(78vh, 760px);
  min-height: 0;
  padding: 14px;
  background: #101013;
}

.detail-art.has-image::before {
  inset: 10px;
  pointer-events: none;
}

.detail-art.has-image img {
  position: relative;
  inset: auto;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  z-index: 1;
}

@media (max-width: 740px) {
  .detail-art.has-image {
    height: min(72vh, 620px);
    min-height: 0;
  }
}

/* Show Explore previews as complete portrait images at a true 9:16 ratio. */
.resource-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 360px));
  justify-content: start;
}

.resource-art {
  height: auto;
  aspect-ratio: 9 / 16;
  background: #101013;
}

.resource-art:has(img)::before,
.resource-art:has(img)::after {
  display: none;
}

.resource-art img {
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* Keep the car photo static; the wheel overlays were causing the spin effect. */
.hero-car-wheel {
  display: none !important;
  animation: none !important;
}

.hero-car-wheel::before {
  animation: none !important;
}
