/* =========================================================
   lu-wide-card__gallery — лента квадратных превью под карточкой.
   ПК: 6 в ряд. Мобильный: 3×2. Открытие — Fancybox (как photo-split).
   Размер кадров задаёт сетка + aspect-ratio, пиксели не подбираем.
   ========================================================= */
.lu-wide-card__gallery-row{
  margin-top: 18px;
}

.lu-wide-card__gallery{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Кадр-превью */
.lu-wide-card__frame{
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
  text-decoration: none !important;
  cursor: zoom-in;
  background: #d9ddd4;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  transform: translateZ(0);
}

/* Запасной механизм высоты для браузеров без aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .lu-wide-card__frame{
    padding-top: 100%;
  }
}

.lu-wide-card__frame img{
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  margin: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0;
  transition: transform .35s ease;
  transform: translateZ(0) scale(1);
}

.lu-wide-card__frame:hover img{
  transform: translateZ(0) scale(1.02);
}

/* Мобильный — 3 в ряд (3×2), кадры мельче, скругление поменьше */
@media (max-width: 767px){
  .lu-wide-card__gallery-row{
    margin-top: 14px;
  }

  .lu-wide-card__gallery{
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lu-wide-card__frame{
    border-radius: 14px;
  }
}