/* FeliFam V5.0 — two focused fixes; leaves the rest of V4.9 unchanged. */

/* NIDO: the studio-white photo backdrop must never flash during reveal and image decode.
   The existing multiply treatment still preserves the product photograph. */
.collection .collection-visual.reveal,
.collection .collection-visual.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.collection .collection-visual {
  isolation: auto;
  background: transparent !important;
}
.collection .collection-visual img {
  mix-blend-mode: multiply;
  /* Avoid any image zoom/white overlay while loading. */
  transform: none !important;
  object-fit: contain;
  transition: filter .35s ease !important;
}

/* Materials: same left grid edge for heading, photo and bottom link.
   Remove the nested centered 1180px container that created a large left gutter. */
.materials .materials-compact {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  gap: clamp(18px, 2.3vw, 32px);
}
.materials .materials-compact .material-primary {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 4;
  margin: 0;
  justify-self: stretch;
  align-self: stretch;
  background: #e8dfd3;
  overflow: hidden;
}
.materials .materials-compact .material-primary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none !important;
}
.materials .materials-side {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  gap: clamp(12px, 1vw, 16px);
}
.materials .material-story--compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.5vw, 42px);
}
.materials .material-story--compact h3 {max-width: 17ch;}
.materials .material-story--compact p {max-width: 52ch;}
.materials .material-points--compact {grid-template-columns: repeat(3,minmax(0,1fr));}
.materials .material-points--compact article {min-height: 135px;}

@media (max-width: 1050px) {
  .materials .materials-compact {grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);}
  .materials .material-points--compact {grid-template-columns: 1fr;}
  .materials .material-points--compact article {min-height: 0;}
}
@media (max-width: 760px) {
  .materials .materials-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .materials .materials-compact .material-primary {aspect-ratio: 3/4;max-height: 550px;}
  .materials .materials-side {grid-template-rows: auto auto;gap: 12px;}
  .materials .material-story--compact {padding: 22px;}
  .materials .material-points--compact {grid-template-columns: 1fr;}
  .materials .material-points--compact article {min-height: 0;}
}

/* Final optical balance: no nested gutter, but keep the portrait photo compact. */
@media (min-width: 1051px) {
  .materials {padding-top: 50px; padding-bottom: 42px;}
  .materials .materials-compact {
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: clamp(24px, 2.3vw, 34px);
  }
  .materials .materials-side {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 15px;
  }
  .materials .material-story--compact {
    min-height: 250px;
    padding: 28px 34px;
  }
  .materials .material-points--compact article {min-height: 148px;}
}
