/* MAFARED · Fase 6.2.2 | Galería equilibrada de envases personalizados */
/* Mantiene intactos los tres proyectos iniciales; agrupa los cuatro siguientes en 2 × 2. */
.s622-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.s622-featured-grid:empty { display: none; }
.s622-featured-grid > .s44-photo-card {
  height: 380px;
  min-width: 0;
  border: 1px solid rgba(12, 105, 176, .13);
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(7, 46, 80, .12);
  background: #eaf5fb;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.s622-featured-grid > .s44-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eff8fd;
  transition: transform .55s cubic-bezier(.2,.65,.2,1);
}
.s622-featured-grid > .s44-photo-card .s44-photo-label {
  left: 25px;
  right: 25px;
  bottom: 23px;
}
.s622-featured-grid > .s44-photo-card .s44-photo-label strong {
  font-size: clamp(1.04rem, 1.25vw, 1.22rem);
  line-height: 1.35;
  text-wrap: balance;
}
@media (hover: hover) and (pointer: fine) {
  .s622-featured-grid > .s44-photo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(12, 125, 207, .35);
    box-shadow: 0 22px 45px rgba(4, 49, 94, .19);
  }
  .s622-featured-grid > .s44-photo-card:hover img { transform: scale(1.04); }
}
@media (max-width: 760px) {
  .s622-featured-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .s622-featured-grid > .s44-photo-card { height: clamp(290px, 75vw, 390px); }
  .s622-featured-grid > .s44-photo-card .s44-photo-label { left: 20px; bottom: 20px; right: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .s622-featured-grid > .s44-photo-card { animation: s622-fade-in .55s both; }
  .s622-featured-grid > .s44-photo-card:nth-child(2) { animation-delay: 80ms; }
  .s622-featured-grid > .s44-photo-card:nth-child(3) { animation-delay: 160ms; }
  .s622-featured-grid > .s44-photo-card:nth-child(4) { animation-delay: 240ms; }
  @keyframes s622-fade-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .s622-featured-grid > .s44-photo-card,
  .s622-featured-grid > .s44-photo-card img { transition: none !important; animation: none !important; transform: none !important; }
}
