/* Chrono24 Direct: one hero frame for every page (2026-11-23).
   Home, sell, buy, sell sub-pages, about and administrators/notaries:
   text left, photo or video right, same height on every page.
   Desktop 610px (650px from 1601px, 600px from 881 to 1100px).
   Tablet (641-880px): stacked, media 440px high. Mobile: square media.
   "html:not(#c24hu)" raises specificity above the page-specific rules. */

html:not(#c24hu){--c24hu-h:610px}
@media (min-width:1601px){html:not(#c24hu){--c24hu-h:650px}}
@media (max-width:1100px){html:not(#c24hu){--c24hu-h:600px}}

html:not(#c24hu) section.c24home-hero,
html:not(#c24hu) section.c24buy-hero,
html:not(#c24hu) section.c24sell-hero,
html:not(#c24hu) section.c24a-hero{
  padding:0!important;margin-top:0!important;min-height:0!important;height:auto!important;max-width:none!important;width:100%!important}

html:not(#c24hu) .c24home-hero .c24-hero-inner,
html:not(#c24hu) .c24buy-hero .c24buy-hero-inner,
html:not(#c24hu) .c24sell-hero .c24sell-hero-inner,
html:not(#c24hu) .c24a-hero .c24a-hero-inner{
  box-sizing:border-box!important;display:grid!important;width:100%!important;max-width:1680px!important;margin:0 auto!important;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important;gap:0!important;align-items:stretch!important;
  min-height:var(--c24hu-h)!important;height:auto!important}

html:not(#c24hu) .c24home-hero .c24-hero-content,
html:not(#c24hu) .c24buy-hero .c24buy-hero-content,
html:not(#c24hu) .c24sell-hero .c24sell-hero-content,
html:not(#c24hu) .c24a-hero .c24a-hero-content{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;align-self:stretch!important;
  padding:40px clamp(30px,4.5vw,82px)!important;grid-column:1!important;grid-row:1!important;
  height:auto!important;min-height:0!important;max-height:none!important}

/* Same type scale on every hero, so the text fits the frame. */
html:not(#c24hu) .c24home-hero .c24-hero-title,
html:not(#c24hu) .c24buy-hero .c24buy-hero-title,
html:not(#c24hu) .c24sell-hero .c24sell-hero-title,
html:not(#c24hu) .c24a-hero .c24a-hero-title{font-size:clamp(36px,3.5vw,58px)!important;margin-bottom:22px!important}
html:not(#c24hu) .c24home-hero .c24-hero-text,
html:not(#c24hu) .c24buy-hero .c24buy-hero-text,
html:not(#c24hu) .c24sell-hero .c24sell-hero-text,
html:not(#c24hu) .c24a-hero .c24a-hero-text{font-size:clamp(15px,1.1vw,17px)!important;line-height:1.65!important}
html:not(#c24hu) .c24home-hero .c24-hero-actions,
html:not(#c24hu) .c24buy-hero .c24buy-hero-actions,
html:not(#c24hu) .c24sell-hero .c24sell-hero-actions,
html:not(#c24hu) .c24a-hero .c24a-hero-actions{margin-top:28px!important}

html:not(#c24hu) .c24home-hero .c24-hero-media,
html:not(#c24hu) .c24buy-hero .c24buy-hero-media,
html:not(#c24hu) .c24sell-hero .c24sell-hero-media,
html:not(#c24hu) .c24a-hero .c24a-hero-media{
  position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  height:auto!important;min-height:var(--c24hu-h)!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden!important;
  grid-column:2!important;grid-row:1!important;align-self:stretch!important}

html:not(#c24hu) .c24home-hero .c24-hero-image,
html:not(#c24hu) .c24buy-hero .c24buy-hero-image,
html:not(#c24hu) .c24sell-hero .c24sell-hero-image,
html:not(#c24hu) .c24a-hero .c24a-hero-image{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  aspect-ratio:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}

html:not(#c24hu) .c24home-hero .c24-hero-image img,
html:not(#c24hu) .c24buy-hero .c24buy-hero-image img,
html:not(#c24hu) .c24sell-hero .c24sell-hero-image img,
html:not(#c24hu) .c24a-hero .c24a-hero-image img,
html:not(#c24hu) .c24sell-hero .c24sell-hero-image video,
html:not(#c24hu) .c24sell-hero .c24sell-hero-image #c24sell-hero-video{
  display:block!important;position:relative!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  max-width:none!important;aspect-ratio:auto!important;object-fit:cover!important;border-radius:0!important}

/* Square interview videos: keep heads in frame when cropped. */
html:not(#c24hu) .c24sell-hero .c24sell-hero-image #c24sell-hero-video{object-position:50% 22%!important}
html:not(#c24hu) .c24sell-hero .c24sell-hero-image::before{content:none!important;display:none!important}

/* Tablet and mobile: text first, media below, full width. */
@media (max-width:880px){
  html:not(#c24hu) .c24home-hero .c24-hero-inner,
  html:not(#c24hu) .c24buy-hero .c24buy-hero-inner,
  html:not(#c24hu) .c24sell-hero .c24sell-hero-inner,
  html:not(#c24hu) .c24a-hero .c24a-hero-inner{grid-template-columns:1fr!important;min-height:0!important;max-width:none!important}

  html:not(#c24hu) .c24home-hero .c24-hero-content,
  html:not(#c24hu) .c24buy-hero .c24buy-hero-content,
  html:not(#c24hu) .c24sell-hero .c24sell-hero-content,
  html:not(#c24hu) .c24a-hero .c24a-hero-content{grid-column:1!important;grid-row:1!important;padding:54px 29px 42px!important}

  html:not(#c24hu) .c24home-hero .c24-hero-media,
  html:not(#c24hu) .c24buy-hero .c24buy-hero-media,
  html:not(#c24hu) .c24sell-hero .c24sell-hero-media,
  html:not(#c24hu) .c24a-hero .c24a-hero-media{grid-column:1!important;grid-row:2!important;min-height:0!important;height:440px!important}
}
@media (max-width:640px){
  html:not(#c24hu) .c24home-hero .c24-hero-content,
  html:not(#c24hu) .c24buy-hero .c24buy-hero-content,
  html:not(#c24hu) .c24sell-hero .c24sell-hero-content,
  html:not(#c24hu) .c24a-hero .c24a-hero-content{padding:50px 22px 36px!important}

  html:not(#c24hu) .c24home-hero .c24-hero-media,
  html:not(#c24hu) .c24buy-hero .c24buy-hero-media,
  html:not(#c24hu) .c24sell-hero .c24sell-hero-media,
  html:not(#c24hu) .c24a-hero .c24a-hero-media{height:auto!important;aspect-ratio:1/1!important}

  html:not(#c24hu) .c24sell-hero .c24sell-hero-image #c24sell-hero-video{object-position:50% 50%!important}
}
