.family-section {
  padding-bottom: 28px;
}

.family-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.family-gallery article {
  min-width: 0;
  padding-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.family-gallery img {
  display: block;
  width: 100%;
  height: 230px;
  margin-bottom: 18px;
  object-fit: contain;
  background: #f4f7f9;
}

.family-gallery span,
.family-gallery h3 {
  margin-inline: 20px;
}

.family-gallery span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.family-gallery h3 {
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
}

.image-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.product-visual.has-image {
  position: relative;
  height: 210px;
  padding: 12px;
  overflow: hidden;
  background: #f6f8fa;
}

.product-visual.has-image::after {
  display: none;
}

.product-visual.has-image img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  transition: transform .2s ease;
}

.product:hover .product-visual.has-image img {
  transform: scale(1.035);
}

.product-visual.has-image .product-brand {
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 9px rgba(25, 44, 39, .12);
}

.reference-label {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 6px;
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .family-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .family-gallery {
    display: flex;
    margin-inline: -16px;
    padding-inline: 16px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .family-gallery article {
    min-width: 76vw;
    scroll-snap-align: start;
  }

  .family-gallery img {
    height: 210px;
  }

  .product-visual.has-image {
    height: auto;
    min-height: 190px;
  }
}
