/* Genital Estetik V10 — ORIGINAL CIRCULAR PHOTOGRAPHS ONLY.
   Surgical source images keep their original interior pixels. The transparent
   circular PNGs provide their own pink rims; do NOT draw a square image frame. */

/* Carousel photo geometry: equal dimensions across every breakpoint.
   No crop, oval stretch, photo background, border or shadow. */
body.genital-theme .v1-home-hero .v1-procedure-slide.active img.hero-backdrop{
  display:block!important;
  position:static!important;
  transform:none!important;
  box-sizing:border-box!important;
  width:var(--md-circle-size, min(46vw,540px,calc(100svh - 220px)))!important;
  height:var(--md-circle-size, min(46vw,540px,calc(100svh - 220px)))!important;
  min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;object-position:center!important;
  border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;
  background:transparent!important;clip-path:none!important;
  -webkit-mask:none!important;mask:none!important;
  filter:none!important;opacity:1!important;
  padding:0!important;margin:0 auto!important;
}
body.genital-theme .v1-home-hero .v1-doctor-hero.active img.doctor-portrait-fill{
  width:var(--md-circle-size, min(46vw,540px,calc(100svh - 220px)))!important;
  height:var(--md-circle-size, min(46vw,540px,calc(100svh - 220px)))!important;
  min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;
  aspect-ratio:1/1!important;object-fit:contain!important;
  border:0!important;box-shadow:none!important;clip-path:none!important;
  background:transparent!important;
}
body.genital-theme .v1-home-hero{
  --md-circle-size:min(46vw,540px,calc(100svh - 220px));
}
/* Remove old artificially painted white square around carousel photographs. */
body.genital-theme .v1-home-hero .v1-procedure-slide.active,
body.genital-theme .v1-home-hero .v1-procedure-slide.active .hero-shade{
  box-shadow:none!important;
}

/* Home's six cards: neutral transparent square LAYOUT ONLY, visible photo
   circular with original outer pink border, never ellipse. */
body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .media,
body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .v2-card-main-image-link .media{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  width:min(100%,310px)!important;
  height:auto!important;
  min-width:0!important;min-height:0!important;
  max-width:310px!important;max-height:none!important;
  aspect-ratio:1/1!important;
  padding:0!important;margin:8px auto 6px!important;
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;overflow:visible!important;
  background:transparent!important;
}
body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .media img,
body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .v2-card-main-image-link .media img{
  display:block!important;position:static!important;
  box-sizing:border-box!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;outline:0!important;
  clip-path:none!important;-webkit-mask:none!important;mask:none!important;
  box-shadow:none!important;background:transparent!important;
  filter:none!important;opacity:1!important;transform:none!important;
}
/* Original Perinoplasti is 250x250: avoid blur from enlargement. */
body.genital-theme .cards-area.v1-cards .specialty.v6-perine-original-circle .media,
body.genital-theme .cards-area.v1-cards .specialty.v6-perine-original-circle .media img{
  width:min(100%,250px)!important;max-width:250px!important;
  height:auto!important;max-height:250px!important;
  min-width:0!important;min-height:0!important;
  aspect-ratio:1/1!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;clip-path:none!important;
}

/* Individual surgical pages: no WHITE BOX behind images; originals are now
   circular transparent assets. Remove old square image framing completely. */
body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  min-width:0!important;min-height:0!important;
  height:auto!important;max-height:none!important;
  padding:12px!important;
  border:0!important;border-radius:0!important;
  overflow:visible!important;box-shadow:none!important;
  background:transparent!important;
}
body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media img.genital-fit-photo{
  display:block!important;position:static!important;
  box-sizing:border-box!important;
  width:min(100%,470px)!important;
  height:auto!important;
  min-width:0!important;min-height:0!important;
  max-width:470px!important;max-height:none!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;margin:0 auto!important;
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;background:transparent!important;
  clip-path:none!important;-webkit-mask:none!important;mask:none!important;
  filter:none!important;opacity:1!important;transform:none!important;
}

@media(max-width:760px){
 body.genital-theme .v1-home-hero{
   --md-circle-size:min(92vw,390px,calc(100svh - 440px));
 }
 body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
   --md-circle-size:min(88vw,350px,calc(100svh - 460px));
 }
 body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .media,
 body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .v2-card-main-image-link .media{width:min(88vw,310px)!important;max-width:310px!important;}
 body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media img.genital-fit-photo{
   width:min(86vw,385px)!important;max-width:385px!important;
 }
}
@media(max-width:370px){
 body.genital-theme .v1-home-hero{
   --md-circle-size:min(90vw,340px,calc(100svh - 430px));
 }
 body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
   --md-circle-size:min(84vw,310px,calc(100svh - 480px));
 }
 body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .media,
 body.genital-theme .cards-area.v1-cards .specialty.v1-specialty .v2-card-main-image-link .media{width:min(86vw,290px)!important;max-width:290px!important;}
}
@media(min-width:761px) and (max-height:700px){
 body.genital-theme .v1-home-hero{
   --md-circle-size:min(45vw,490px,calc(100svh - 270px));
 }
}

/* Final viewport-fit safeguards. Every width and height is controlled by the
   SAME variable, even when an old German rule tries to change width alone. */
html[lang] body.genital-theme .v1-home-hero .v1-procedure-slide.active img.hero-backdrop{
  width:var(--md-circle-size)!important;
  height:var(--md-circle-size)!important;
  min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;
  aspect-ratio:1/1!important;
}
@media(max-width:760px) and (max-height:810px){
  body.genital-theme .v1-home-hero,
  html[lang="de"] body.genital-theme .v1-home-hero{
    --md-circle-size:min(90vw,390px,calc(100svh - 490px));
  }
  body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link),
  html[lang="de"] body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(88vw,350px,calc(100svh - 530px));
  }
}
@media (min-width:811px) and (max-width:760px){
  /* inert: viewport-specific overrides are authored below */
}
@media(min-width:0px) and (max-width:760px) and (min-height:811px){
  body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(86vw,350px,calc(100svh - 520px));
  }
  html[lang="de"] body.genital-theme .v1-home-hero{
    --md-circle-size:min(88vw,350px,calc(100svh - 505px));
  }
  html[lang="de"] body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(80vw,330px,calc(100svh - 548px));
  }
}
@media(max-width:760px) and (max-height:810px){
  html[lang="de"] body.genital-theme .v1-home-hero{
    --md-circle-size:min(90vw,390px,calc(100svh - 500px));
  }
}

/* V11 – only carousel circle sizing revision.
   Goal: all flow images (including doctor) stay perfectly circular with the
   original pink outer ring, grow to the maximum safe common size, and keep
   tabs / CTA / dots visible. No other layout section is changed. */
@media(max-width:760px){
  body.genital-theme .v1-home-hero{
    --md-circle-size:min(84vw,310px,calc(100svh - 530px))!important;
  }
  body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(84vw,310px,calc(100svh - 530px))!important;
  }
}
@media(max-width:370px){
  body.genital-theme .v1-home-hero{
    --md-circle-size:min(80vw,270px,calc(100svh - 530px))!important;
  }
  body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(80vw,270px,calc(100svh - 530px))!important;
  }
}
@media(min-width:371px) and (max-width:760px) and (min-height:800px){
  body.genital-theme .v1-home-hero{
    --md-circle-size:min(88vw,345px,calc(100svh - 500px))!important;
  }
  body.genital-theme .v1-home-hero .v1-procedure-slide.active:has(.v2-barbie-hero-link){
    --md-circle-size:min(88vw,345px,calc(100svh - 500px))!important;
  }
}


/* V11.1 – Labioplasti carousel image only: same round/pink frame, slightly
   increased inner visual scale so it does not look smaller than the others. */
body.genital-theme .v1-home-hero .v1-procedure-slide[data-hero-index="1"] .hero-backdrop{
  transform:scale(1.095)!important;
  transform-origin:center center!important;
}


/* V12 – desktop-only subpage circular-photo fit fix.
   Goal: keep the original circular PNGs and pink frame exactly as-is,
   but reduce desktop render size so no top/bottom overflow appears in the
   header-tab application pages. Mobile remains untouched. */
@media(min-width:761px){
 body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media{
   padding:18px 18px 18px 10px!important;
 }
 body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media img.genital-fit-photo{
   width:min(100%,420px)!important;
   max-width:420px!important;
   height:auto!important;
   max-height:420px!important;
 }
}
@media(min-width:761px) and (max-height:760px){
 body.genital-theme .page-hero.compact-surgery-page .page-hero-media.genital-fit-media img.genital-fit-photo{
   width:min(100%,390px)!important;
   max-width:390px!important;
   max-height:390px!important;
 }
}
