/* Commercial category photography; editorial content and store links stay intact. */
body.hs-product-photos .cluster-shop { grid-template-columns: minmax(0, 1fr) !important; }
body.hs-product-photos .hs-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  align-items: stretch;
  gap: 16px !important;
  width: 100%;
  min-width: 0;
}
body.hs-product-photos .hs-photo-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 1px solid #dce6df;
  border-radius: 18px;
  background: #fffefa;
  color: #17352f;
  box-shadow: 0 8px 24px #14382e0a;
  overflow: clip;
}
body.hs-product-photos .hs-product-photo {
  margin: 0 !important;
  padding: 12px;
  background: #f7f5ef;
}
body.hs-product-photos .hs-product-photo-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-width: 0;
  border: 1px solid #e5e8df;
  border-radius: 12px;
  background: #faf8f2;
  overflow: hidden;
}
body.hs-product-photos .hs-product-photo-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
}
body.hs-product-photos .hs-product-photo figcaption {
  margin-top: 7px;
  color: #5b6c63;
  font: 400 .68rem/1.4 system-ui, sans-serif;
  text-align: center;
}
body.hs-product-photos .hs-existing-photo-caption {
  display: block;
  margin: 0 !important;
  padding: 0 12px 10px;
  background: #f7f5ef;
  color: #5b6c63;
  font: 400 .68rem/1.4 system-ui, sans-serif;
  text-align: center;
}
body.hs-product-photos .hs-photo-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}
body.hs-product-photos .hs-photo-product-content h3 {
  margin: 0 0 12px !important;
  color: #17352f !important;
  font: 700 1.18rem/1.2 Georgia, serif !important;
  overflow-wrap: anywhere;
}
body.hs-product-photos .hs-photo-links {
  min-width: 0;
  margin-top: auto;
}
body.hs-product-photos .hs-photo-links > strong {
  color: #376147;
  font: 750 .8rem/1.45 system-ui, sans-serif;
}
body.hs-product-photos .hs-photo-links p {
  color: #4e6358 !important;
  font-size: .9rem;
  line-height: 1.65;
}
body.hs-product-photos .hs-photo-product .affiliate-choice {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0;
  margin-bottom: 0;
}
/* Reserve a real logo column: legacy article styles used auto tracks that
   shrank below the 36px paw and could make the label overlap it. */
body.hs-product-photos .hs-photo-product a.affiliate-store-link {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 16px !important;
  column-gap: 10px !important;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
body.hs-product-photos .hs-photo-product .affiliate-action-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.hs-product-photos .hs-photo-links > a[href*="amazon"],
body.hs-product-photos .hs-photo-links > a[href*="awin1"] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.hs-product-photos .hs-photo-links > a[href*="amazon"] { background: #a94308; }
body.hs-product-photos .hs-photo-links > a[href*="awin1"] { background: #22652f; }
body.hs-product-photos .hs-photo-recommendation {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Existing product images keep the complete object, not a center-cropped slice. */
body.hs-product-photos .product > img,
body.hs-product-photos .choice > img,
body.hs-product-photos .hub-product > img {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: contain !important;
  object-position: center;
  padding: 12px;
  background: #f7f5ef;
}
@media (min-width: 780px) {
  body.hs-product-photos .hs-photo-recommendation > .hs-photo-product {
    display: grid;
    grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr);
    align-items: center;
  }
}
@media (max-width: 520px) {
  body.hs-product-photos .hs-photo-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.hs-product-photos .hs-photo-product-content { padding: 16px; }
}
