/* NextWorkflow V21 – Hero positioning controls & Blog article images */

/* Hero: image is always aligned to the inner .container / .v18-hero-grid. */
.v18-hero-grid{position:relative;isolation:isolate;overflow:hidden}
.v18-hero-art{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:0;
  background-image:var(--v18-hero-image);
  background-repeat:no-repeat;
  background-position:var(--hero-x,100%) var(--hero-y,50%);
  pointer-events:none;
}
.v18-hero-art.hero-fit-height{background-size:auto 100%}
.v18-hero-art.hero-fit-width{background-size:100% auto}
.v18-hero-art.hero-fit-cover{background-size:cover}
.v18-hero-art::after{content:"";position:absolute;inset:0;pointer-events:none}
.v18-hero-art.hero-fade-none::after{display:none}
.v18-hero-art.hero-fade-light::after{background:linear-gradient(90deg,#f8fbff 0%,rgba(248,251,255,.96) 26%,rgba(248,251,255,.72) 43%,rgba(248,251,255,.24) 59%,rgba(248,251,255,0) 72%)}
.v18-hero-art.hero-fade-medium::after{background:linear-gradient(90deg,#f8fbff 0%,rgba(248,251,255,1) 25%,rgba(248,251,255,.98) 35%,rgba(248,251,255,.90) 44%,rgba(248,251,255,.68) 54%,rgba(248,251,255,.34) 64%,rgba(248,251,255,.08) 75%,rgba(248,251,255,0) 84%)}
.v18-hero-art.hero-fade-strong::after{background:linear-gradient(90deg,#f8fbff 0%,#f8fbff 34%,rgba(248,251,255,.98) 46%,rgba(248,251,255,.86) 57%,rgba(248,251,255,.55) 68%,rgba(248,251,255,.16) 80%,rgba(248,251,255,0) 91%)}
.v18-hero-copy{position:relative;z-index:2}

/* Custom article images on blog overview */
.v19-featured-art,.v19-blog-list-media{overflow:hidden;background:#eef3f8}
.v19-featured-art img,.v19-blog-list-media img{width:100%;height:100%;object-fit:cover;display:block}
.v19-featured-art{aspect-ratio:16/9}
.v19-blog-list-media{aspect-ratio:16/9}

/* Article detail: title left, uploaded article image right. */
.v21-post-hero{display:block;padding:42px 0 44px}
.v21-post-hero.has-image{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:clamp(32px,5vw,76px);align-items:center}
.v21-post-hero .v18-post-header-inner{padding:0;max-width:820px}
.v21-post-image{margin:0;border-radius:18px;overflow:hidden;background:#eef3f8;box-shadow:0 18px 50px rgba(15,23,42,.10);aspect-ratio:16/9}
.v21-post-image img{display:block;width:100%;height:100%;object-fit:cover}

@media(max-width:991px){
  .v18-hero-art.hero-fit-height{background-size:cover}
  .v21-post-hero.has-image{grid-template-columns:1fr;gap:26px;padding-top:34px}
  .v21-post-image{max-width:760px}
}
@media(max-width:700px){
  .v18-hero-art{opacity:.34}
  .v18-hero-art::after{background:linear-gradient(90deg,rgba(248,251,255,.99),rgba(248,251,255,.88))!important;display:block!important}
  .v21-post-hero{padding:28px 0 32px}
  .v21-post-image{border-radius:12px}
}
@media(forced-colors:active){.v18-hero-art{display:none!important}.v21-post-image{border:1px solid CanvasText}}

/* blog.php: every article image sits above its article content */
.v19-blog-overview .v18-featured-post{display:flex;flex-direction:column;max-width:none}
.v19-blog-overview .v19-featured-art{display:block;width:100%;min-height:0;aspect-ratio:16/9}
.v19-blog-overview .v18-featured-copy{padding:28px 32px 32px;align-self:stretch}
.v19-blog-overview .v19-blog-list-card{display:flex;flex-direction:column}
.v19-blog-overview .v19-blog-list-media{display:block;width:100%;height:auto;aspect-ratio:16/9}
@media(max-width:700px){.v19-blog-overview .v18-featured-copy{padding:22px 20px 24px}}
