.bilcustom-tabs-media{width:100%;font-family:var(--font-bil,"Mona Sans",ui-sans-serif,system-ui,sans-serif);color:var(--bil-dark,#2d153f);box-sizing:border-box;border-radius:32px;overflow:hidden}.bilcustom-tabs-media__inner{padding:var(--bilcustom-tabs-media-padding,0)}.bilcustom-tabs-media--none{background:transparent}.bilcustom-tabs-media--softPurple{background:#e2d7e5}.bilcustom-tabs-media--purple{background:#702f8a;color:#fff}.bilcustom-tabs-media--dark{background:#2d153f;color:#fff}.bilcustom-tabs-media--color01{background:#faf3ff}.bilcustom-tabs-media--color02{background:#f3d6ff}.bilcustom-tabs-media--color03{background:#dcb7f0}.bilcustom-tabs-media__layout{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);gap:64px;align-items:center}.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__tabs{order:2}.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__panels{order:1}.bilcustom-tabs-media__tabs{display:flex;flex-direction:column;align-items:stretch;gap:12px}.bilcustom-tabs-media__tab{appearance:none;border:0;background:transparent;color:#806c8b;text-align:left;font:inherit;font-size:clamp(24px,2.2vw,34px);line-height:1.2;padding:10px 0;cursor:pointer;transition:color .22s ease,font-weight .22s ease}.bilcustom-tabs-media__tab.is-active{color:var(--bil-purple,#702f8a);font-weight:700}.bilcustom-tabs-media__tab:focus-visible{outline:3px solid var(--bil-purple,#702f8a);outline-offset:5px;border-radius:6px}.bilcustom-tabs-media__panels{min-width:0}.bilcustom-tabs-media__panel{position:relative;min-height:480px;border-radius:42px;overflow:hidden}.bilcustom-tabs-media__panel[hidden]{display:none}.bilcustom-tabs-media__image{display:block;width:100%;height:100%;min-height:480px;object-fit:cover}.bilcustom-tabs-media__overlay{position:absolute;left:8%;right:7%;bottom:7%;background:var(--bilcustom-tabs-overlay);color:#fff;border-radius:28px;padding:30px 36px;box-sizing:border-box}.bilcustom-tabs-media__overlay p{margin:0;font:inherit;font-size:17px;line-height:1.55}.bilcustom-tabs-media__panel.is-active{animation:bilcustomTabsFade .3s ease}@keyframes bilcustomTabsFade{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:767px){.bilcustom-tabs-media{border-radius:24px}.bilcustom-tabs-media__inner{padding:calc(var(--bilcustom-tabs-media-padding,0px)/2)}.bilcustom-tabs-media__layout,.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__layout{display:flex;flex-direction:column;gap:28px}.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__tabs,.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__panels{order:initial}.bilcustom-tabs-media__tabs{width:100%;flex-direction:row;overflow-x:auto;gap:20px;padding-bottom:8px}.bilcustom-tabs-media__tab{flex:0 0 auto;font-size:22px;white-space:nowrap}.bilcustom-tabs-media__panels{width:100%}.bilcustom-tabs-media__panel,.bilcustom-tabs-media__image{min-height:360px}.bilcustom-tabs-media__overlay{left:5%;right:5%;bottom:5%;padding:22px 24px;border-radius:22px}}@media(prefers-reduced-motion:reduce){.bilcustom-tabs-media__panel.is-active{animation:none}.bilcustom-tabs-media__tab{transition:none}}
/* V5.3 Tabs / Media tuning */

/* Keep the section title inside the same content width as the component,
   but never let a left-aligned title collide with the rounded component edge. */
.bilcustom-tabs-media__section-title{
  box-sizing:border-box;
  width:100%;
  padding-left:clamp(24px,3vw,48px);
  padding-right:clamp(24px,3vw,48px);
}
.bilcustom-tabs-media__section-title[style*="text-align:center"]{
  padding-left:0;
  padding-right:0;
}

/* Fixed media frame: every tab keeps exactly the same visual dimensions. */
.bilcustom-tabs-media__panels{
  width:100%;
  height:520px;
}
.bilcustom-tabs-media__panel{
  width:100%;
  height:520px;
  min-height:520px;
}
.bilcustom-tabs-media__image{
  width:100%;
  height:520px;
  min-height:0;
  object-fit:cover;
  object-position:center;
}

/* Per-tab overlay text alignment. */
.bilcustom-tabs-media__overlay--left{text-align:left}
.bilcustom-tabs-media__overlay--center{text-align:center}
.bilcustom-tabs-media__overlay--right{text-align:right}

@media(max-width:767px){
  .bilcustom-tabs-media__section-title{
    padding-left:20px;
    padding-right:20px;
  }
  .bilcustom-tabs-media__panels,
  .bilcustom-tabs-media__panel,
  .bilcustom-tabs-media__image{
    height:360px;
    min-height:360px;
  }
}

/* V5.4 — preserve Figma proportions in both layout directions.
   The media stays the dominant ~66% column; only its side changes. */
.bilcustom-tabs-media__layout{
  grid-template-columns:minmax(260px,34%) minmax(0,66%);
  gap:clamp(40px,5vw,72px);
  align-items:center;
}

/* Reversed layout must reverse the column proportions too:
   media left = 66%, tabs right = 34%. */
.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__layout{
  grid-template-columns:minmax(0,66%) minmax(260px,34%);
}
.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__panels{
  grid-column:1;
  grid-row:1;
}
.bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__tabs{
  grid-column:2;
  grid-row:1;
}

/* Stable landscape media ratio like the Figma, independent of source image dimensions. */
.bilcustom-tabs-media__panels{
  height:auto;
  aspect-ratio:1.55 / 1;
}
.bilcustom-tabs-media__panel{
  height:100%;
  min-height:0;
}
.bilcustom-tabs-media__image{
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:center;
}

@media(max-width:767px){
  .bilcustom-tabs-media__layout,
  .bilcustom-tabs-media--tabsRight .bilcustom-tabs-media__layout{
    display:flex;
    flex-direction:column;
  }
  .bilcustom-tabs-media__panels{
    width:100%;
    height:auto;
    aspect-ratio:1.35 / 1;
  }
  .bilcustom-tabs-media__panel,
  .bilcustom-tabs-media__image{
    height:100%;
    min-height:0;
  }
}


/* V5.35 — Tabs / Media image crop anchored to top. */
.bilcustom-tabs-media__image{
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:top;
}

/* V5.39 mobile gutter audit */

@media(max-width:767px){
  .bilcustom-tabs-media{
    width:calc(100% - 40px);
    margin-inline:auto;
  }
}

/* V5.70 — apply the White option available in the dialog. */
.bilcustom-tabs-media--white { background: var(--bil-white, #fff); color: var(--bil-dark, #2d153f); }
