/* Match the catalog frames while preserving the whole photo. */
.product-photo-frame {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #131e30, #182439 66%, #101a2b);
}

.product-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* These portraits have empty side margins. Blend the backdrop at the edges. */
.product-photo-frame img[data-studio-portrait] {
  --studio-feather-end: 90%;
  width: auto;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 var(--studio-feather-end), transparent);
}

/* The OBD connector extends further to the right than the other devices. */
.product-photo-frame img[data-studio-portrait][src="/products/obd-studio-20261119.webp"] {
  --studio-feather-end: 94%;
}

@media (max-width: 580px) {
  .product-detail > * {
    min-inline-size: 0;
  }
  .product-detail .product-catalog a {
    overflow-wrap: anywhere;
  }
}
/* 2026-11-25: smaller hero car photo on phones so the devices section comes sooner */
@media (max-width:600px){.hero .stage.stage-photo{height:170px}.hero{padding-bottom:32px}}
