/* v236: Keep product photo areas consistent across catalog cards. */
.products-grid .product-photo-button {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(240px, 25vw, 320px);
  aspect-ratio: auto;
  padding: 18px 20px;
  overflow: hidden;
  flex: 0 0 auto;
}

.products-grid .product-photo-button > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .products-grid .product-photo-button {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .products-grid .product-photo-button {
    height: 190px;
    padding: 12px;
  }
}
