/* Подарочный набор: вертикальное фото 3:4 целиком */
.gift-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
}

@media (min-width: 1024px) {
  /* Высота фото = высоте текстовой колонки, не больше */
  .gift-photo-cell {
    align-self: stretch;
  }

  .gift-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 100%;
    height: 100%;
  }
}

@media (min-width: 1024px) {
  /* Если колонка узкая, фото уменьшается, сохраняя 3:4, и встаёт по центру */
  @supports (width: 1cqh) {
    .gift-photo-cell {
      container-type: size;
    }

    .gift-photo {
      top: 50%;
      bottom: auto;
      width: min(100cqw, 75cqh);
      height: auto;
      transform: translate(-50%, -50%);
    }
  }
}
