.ref-hero.group-hero {background:#29262b}.ref-hero.group-hero img.ref-hero-image {object-fit:scale-down!important;object-position:right center!important}.lecture-crop:has(img[src*="jakub-"]),.photo-trim:has(img[src*="jakub-"]){height:auto!important;aspect-ratio:auto!important}img[src*="/jakub-"]{object-fit:contain!important}.lecture-crop img[src*="jakub-"],.photo-trim img[src*="jakub-"]{position:static!important;transform:none!important;height:auto!important;width:100%!important;margin:0!important}
@media (max-width: 700px) {
  .ref-hero.group-hero {
    display: grid;
    align-items: end;
    position: relative;
    height: auto;
    min-height: 510px;
    max-height: none;
    box-sizing: border-box;
    padding: 140px 6% 30px;
  }
  .ref-hero.group-hero img.ref-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: 60% top !important;
  }
  .ref-hero.group-hero .ref-hero-copy {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: clamp(16px, 6vw, 24px);
    background: rgba(17, 17, 17, 0.45);
  }
  .ref-hero.group-hero .ref-hero-copy h1,
  .ref-hero.group-hero .ref-hero-copy > p {
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    padding: 0;
  }
  .ref-hero.group-hero .ref-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }
  .ref-hero.group-hero .ref-actions .button {
    min-width: 0;
    width: auto;
    white-space: normal;
    padding-inline: 4px;
    text-align: center;
  }
  .ref-hero.group-hero .mortgage-button { grid-column: 1 / -1; }
}
@media (min-width: 701px) {
  .ref-hero.group-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1860 / 846;
  }
  .ref-hero.group-hero img.ref-hero-image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
  }
}

.ref-hero.group-hero > picture { display: contents; }
