/* Строка раздела с фото в списке разделов портала (Д-2167 п.1е; модуль `guest-razdel-foto.js`, D-478).
   Подключается в `guest.html` ПОСЛЕ `guest.css`: правила ниже бьют общий `.section`.
   Высота 84 px (макет k10-foto-fon), у строки без фото прежние 49. Фото справа шириной
   46 % строки, но не больше 280 px (критерий 43), левый край фото уходит в панель плавно
   (маска), резкой кромки нет. Цвета - токены. В столбце после выбора раздела этих строк нет. */

.section.section-foto {
  --fw: min(46%, 280px);
  position: relative;
  display: block;
  height: 84px;
  min-height: 84px;
  padding: 0;
  overflow: hidden;
}

.section-foto .section-foto-text {
  position: absolute;
  inset: 0 var(--fw) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 12px 8px 12px 14px;
  min-width: 0;
}

.section-foto .section-name {
  flex: none;
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.section-foto .section-count { align-self: flex-start; }

.section-foto .section-foto-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--fw);
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 45%);
  mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 45%);
}
