.product-photo-section,
#loading-records {
  scroll-margin-top: 1.5rem;
}

.product-photo-heading {
  max-width: none;
  margin-bottom: 1.5rem;
}

.product-photo-heading h2 {
  margin: 0.6rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.product-photo-heading > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
  text-wrap: balance;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-photo-grid-kids {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-photo-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 1.5rem;
}

.product-photo-image {
  display: block;
  background: #f3f2ef;
}

.product-photo-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-photo-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.3rem;
}

.product-photo-copy .panel-link {
  align-self: flex-start;
  margin-top: auto;
}

.product-photo-reference {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-photo-reference bdi {
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.product-photo-copy h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.product-photo-features {
  display: block;
  text-wrap: balance;
}

.product-photo-more {
  margin-top: 1.25rem;
}

.product-photo-more summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-blue-deep);
  font-weight: 700;
}

.product-photo-more[open] .product-photo-grid {
  margin-top: 1.25rem;
}

.proof-visuals .visual-photo {
  min-height: 0;
  justify-content: flex-start;
}

.proof-visuals .visual-photo img {
  position: static;
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.proof-visuals .visual-photo::after {
  display: none;
}

.proof-visuals .visual-card-copy {
  min-height: 0;
}

.proof-modal-grid img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .product-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .product-photo-grid { grid-template-columns: minmax(0, 1fr); }

  .proof-visuals .visual-photo img {
    aspect-ratio: auto;
  }
}
