/* Изображения и SVG-логотипы резидентов. Хризопро и УПМ этот файл не подключают. */
.resident-html-profile .hp-logo { width: clamp(120px, 12vw, 200px); max-height: 110px; object-fit: contain; }
.resident-html-profile .hp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.resident-html-profile .hp-hero__photo { justify-self: center; width: min(100%, var(--photo-width), 640px); }
.resident-html-profile .hp-photo > a { width: min(100%, var(--photo-width)); margin-inline: auto; aspect-ratio: auto; background: transparent; }
.resident-html-profile .hp-photo img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.resident-html-profile .hp-hero__photo img { max-height: 430px; }
.resident-html-profile .hp-photo figcaption { text-align: center; }
.resident-html-profile .hp-hero__photo figcaption { text-align: left; }
@media (max-width: 1100px) { .resident-html-profile .hp-hero { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
 .resident-html-profile .hp-logo { width: 120px; max-height: 78px; }
 .resident-html-profile .hp-hero__photo img { max-height: 320px; }
}

/* Единый размер парных фотографий, как у моделей спецодежды. */
.resident-html-profile .hp-photo-pair .hp-photo > a {
 width: 100%;
 aspect-ratio: 1.6;
}
.resident-html-profile .hp-photo-pair .hp-photo img {
 width: 100%;
 height: 100%;
 max-height: none;
 object-fit: cover;
}

/* Главное фото Мастодека занимает высоту соседнего текста. */
@media (min-width: 1101px) {
 .mastodek-profile .hp-hero__photo {
  width: 100%;
  max-width: 640px;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
 }
 .mastodek-profile .hp-hero__photo > a { width: 100%; height: 100%; min-height: 0; }
 .mastodek-profile .hp-hero__photo img { height: 100%; max-height: none; object-fit: cover; }
}

/* Главное фото Яснотекса выровнено по высоте текста первого блока. */
@media (min-width: 1101px) {
 .yasnotex-profile .hp-hero__photo {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
 }
 .yasnotex-profile .hp-hero__photo > a { width: 100%; min-height: 0; height: 100%; }
 .yasnotex-profile .hp-hero__photo img { position: absolute; inset: 0; height: 100%; max-height: none; object-fit: cover; }
}
