/* Hero cover frames: keep each 16:9 drawing fully visible.
   Desktop/tablet: the box is 16:9, so background-size:cover does not crop.
   Portrait phones: a 16:9 photo band sits above the heading on navy.
   Short landscape: contain, so the subject is never cropped by a shallow viewport. */

:root {
  --vd-hero-pos: center center;
}

/* Per-image / per-page focal points (used when the box cannot be 16:9). */
body.page-home,
body.wsite-page-index { --vd-hero-pos: center 42%; }
body.wsite-page-about { --vd-hero-pos: 58% 48%; } /* Academy and the two statue columns */
body.wsite-page-areas { --vd-hero-pos: 62% 42%; } /* Night Acropolis / city */
body.wsite-page-contact { --vd-hero-pos: 60% 52%; } /* Kolonaki street, orange trees, Lycabettus */
body.wsite-page-clients { --vd-hero-pos: 62% 50%; } /* Piraeus harbour, liner, clock tower */
body.wsite-page-privacy,
body.wsite-page-terms,
body.wsite-page-cookies,
body.wsite-page-principles { --vd-hero-pos: 64% 50%; } /* Stoa colonnade */
body.wsite-page-blog { --vd-hero-pos: 50% 45%; } /* Reading room, Parthenon in the window */
body.wsite-page-golden-visa { --vd-hero-pos: 62% 46%; } /* Athens at dusk, Acropolis */
body.wsite-page-real-estate,
body.wsite-page-buying-property-greece,
body.wsite-page-buying-property-greece-uk-citizens,
body.wsite-page-buying-property-greece-power-of-attorney,
body.wsite-page-costs-of-buying-property-greece,
body.wsite-page-due-diligence-checklist,
body.wsite-page-faq-buying-property-greece,
body.wsite-page-greek-tax-number-afm-bank-account,
body.wsite-page-tr-yunanistan-gayrimenkul-golden-visa,
body.wsite-page-zh-greece-property-golden-visa { --vd-hero-pos: 62% 46%; } /* Plaka houses + Acropolis */
body.wsite-page-property-management,
body.wsite-page-property_management,
body.wsite-page-short-term-rental-rules-greece { --vd-hero-pos: 64% 50%; } /* Doorway and keys */
body.wsite-page-faq-golden-visa-greece,
body.wsite-page-golden-visa-greece-2026,
body.wsite-page-el,
body.wsite-page-ar,
body.wsite-page-il,
body.wsite-page-zh,
body.wsite-page-tr { --vd-hero-pos: center 42%; } /* Acropolis drawing */

/* ----- Photo / drawing heroes inside live embeds (not SVG/gradient .gd-hero) ----- */
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero),
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="vd-hero"],
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="url("],
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) {
  height: auto !important;
  min-height: min(56.25vw, calc(100vh - var(--va-alert-h, var(--alert-h, 38px)) - var(--va-header-h, var(--header-h, 84px)))) !important;
  max-height: min(56.25vw, calc(100vh - var(--va-alert-h, var(--alert-h, 38px)) - var(--va-header-h, var(--header-h, 84px)))) !important;
  aspect-ratio: auto !important;
  background-size: cover !important;
  background-position: var(--vd-hero-pos) !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero) > .wrap,
html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) > .wrap {
  /* Keep the same 24px side inset as other embed .wrap sections.
     width: 100% had pinned the heading to both edges on phones. */
  width: calc(100% - 48px) !important;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Portrait phones: 16:9 photo band above the heading. */
@media (max-width: 900px) and (orientation: portrait) {
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero),
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="vd-hero"],
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="url("],
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    justify-content: flex-start !important;
    padding-top: 56.25vw !important; /* 16:9 band */
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #0A1424 !important;
    overflow: visible !important;
  }
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero) > .wrap,
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) > .wrap {
    padding: 28px 0 32px !important;
  }
}

/* Short landscape: show the whole drawing with contain, no crop. */
@media (orientation: landscape) and (max-height: 540px) {
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero),
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="vd-hero"],
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero)[style*="url("],
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) {
    aspect-ratio: auto !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    padding-top: 0 !important;
    background-size: contain !important;
    background-position: var(--vd-hero-pos) !important;
    background-color: #0A1424 !important;
  }
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero) > .wrap,
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) > .wrap {
    padding: calc(var(--va-alert-h, 38px) + 16px) 0 16px !important;
  }
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero) h1,
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) h1 {
    font-size: 26px !important;
    line-height: 1.22 !important;
  }
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.page-hero:not(.gd-hero) .lede,
  html body.page-inner.wsite-theme-light div.vd:not(#vd-x) section.hero:not(.gd-hero) .lede {
    font-size: 15px !important;
    margin-top: 8px !important;
  }
}

/* ----- Home Option B hero (img + object-fit) ----- */
body.page-home .hero-b {
  /* Fill the first screen under the in-flow alert; 16:9 would be 36px taller than
     the viewport at 1920x1080 and clip the facts bar. Slight cover crop, subject stays. */
  min-height: calc(100vh - var(--alert-h, 38px)) !important;
  height: calc(100vh - var(--alert-h, 38px)) !important;
  aspect-ratio: auto;
  max-height: none;
  justify-content: flex-end;
  overflow: hidden;
}
body.page-home .hero-b-media img {
  object-fit: cover;
  object-position: var(--vd-hero-pos);
  transform: none !important;
  animation: none !important;
}
@media (max-width: 900px) and (orientation: portrait) {
  body.page-home .hero-b {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  body.page-home .hero-b-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
  }
  body.page-home .hero-b::after {
    /* Overlay only the photo band, not the heading block below. */
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  body.page-home .hero-b .wrap {
    position: relative;
    z-index: 2;
    padding: 28px 0 32px !important;
    background: #0A1424;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  /* Grow with the copy: never lock to 100vh or the H1 sits under the fixed header
     and the facts bar is clipped. The drawing can stay a 16:9 cover if the box is at
     least that tall; otherwise cover with the usual focal point. */
  body.page-home .hero-b {
    aspect-ratio: auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    justify-content: flex-start;
  }
  body.page-home .hero-b .wrap {
    padding: calc(var(--alert-h, 38px) + var(--header-h, 72px) + 8px) 0 10px !important;
  }
  body.page-home .hero-b .eyebrow { margin-bottom: 6px !important; }
  body.page-home .hero-b h1 {
    font-size: clamp(24px, 3.4vw, 32px) !important;
    line-height: 1.12 !important;
  }
  body.page-home .hero-b .lede {
    font-size: 15px !important;
    margin-top: 8px !important;
  }
  body.page-home .hero-b .actions {
    margin-top: 10px;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
  }
  body.page-home .hero-b .btn { width: auto !important; padding: 10px 18px; }
  body.page-home .hero-b-media {
    position: absolute;
    inset: 0;
  }
  body.page-home .hero-b-media img {
    object-fit: cover;
    object-position: var(--vd-hero-pos);
  }
  body.page-home .hero-stats .stat {
    padding: 8px 18px 10px;
  }
  body.page-home .hero-stats .stat-kicker { margin-bottom: 2px; }
  body.page-home .hero-stats .stat-value { font-size: 24px; }
  body.page-home .hero-stats .stat-value.stat-text { font-size: 16px; padding-top: 2px; }
}

/* ----- Newsroom Square banner (16:9 reading-room drawing) ----- */
html body.wsite-page-blog .banner-wrap .wsite-header-section {
  min-height: min(56.25vw, calc(100vh - var(--va-alert-h, var(--alert-h, 38px)) - var(--va-header-h, var(--header-h, 84px)))) !important;
  max-height: min(56.25vw, calc(100vh - var(--va-alert-h, var(--alert-h, 38px)) - var(--va-header-h, var(--header-h, 84px)))) !important;
  height: auto !important;
  aspect-ratio: auto !important;
  background-size: cover !important;
  background-position: var(--vd-hero-pos) !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 900px) and (orientation: portrait) {
  html body.wsite-page-blog .banner-wrap .wsite-header-section {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding-top: 56.25vw !important;
    background-size: 100% auto !important;
    background-position: top var(--vd-hero-pos, center) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  html body.wsite-page-blog #banner-container {
    padding: 28px 0 !important;
    background: linear-gradient(180deg, rgba(8,15,28,0) 0%, rgba(8,15,28,.92) 28%, #0A1424 100%);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  html body.wsite-page-blog .banner-wrap .wsite-header-section {
    aspect-ratio: auto !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    padding-top: 0 !important;
    background-size: contain !important;
    background-position: var(--vd-hero-pos) !important;
    background-color: #0A1424 !important;
  }
}

/* Tools / calculator / guide SVG heroes: leave their own art; just don't force a 16:9 crop. */
html body div.vd:not(#vd-x) section.page-hero.gd-hero,
html body div.vd:not(#vd-x) section.hero:has(> .art),
html body.wsite-page-tools div.vd:not(#vd-x) section.hero,
html body.wsite-page-golden-visa-calculator-greece div.vd:not(#vd-x) section.hero {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background-size: initial;
}
