/* Phone-only photo economy; ordinary posts never receive this sheet.
 * Desktop layouts remain in their original owners. */
.jt-mobile-clinic-links { display:none; }
@media screen and (max-width:600px) {
  :is(
    html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment .k6-in .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sys.jt-sys--page .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys.jt-sys--lp .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys--archive .jt-owned-authority-media--archive .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sobre-v07 .v7-cred-grid,
    html body.jt-mobile-essential-media.page-id-6725 .jt-press-figuras__grid
  ) {
    --jt-mobile-media-rail:1;
    display:flex!important; flex-flow:row nowrap!important; align-items:flex-start!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    gap:12px!important; overflow-x:auto!important; overflow-y:hidden!important;
    overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:0;
    padding-bottom:10px!important; scrollbar-width:thin;
  }
  :is(
    html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment .k6-in .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sys.jt-sys--page .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys.jt-sys--lp .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys--archive .jt-owned-authority-media--archive .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sobre-v07 .v7-cred-grid,
    html body.jt-mobile-essential-media.page-id-6725 .jt-press-figuras__grid
  ) > figure {
    flex:0 0 86%!important; width:86%!important; min-width:0!important; max-width:none!important;
    grid-column:auto!important; grid-row:auto!important; margin:0!important; height:auto!important; min-height:0!important;
    scroll-snap-align:start; scroll-snap-stop:normal;
  }
  :is(
    html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment .k6-in .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sys.jt-sys--page .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys.jt-sys--lp .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)),
    html body.jt-mobile-essential-media.jt-sys--archive .jt-owned-authority-media--archive .jt-owned-authority-media__grid,
    html body.jt-mobile-essential-media.jt-sobre-v07 .v7-cred-grid,
    html body.jt-mobile-essential-media.page-id-6725 .jt-press-figuras__grid
  ) > figure > img {
    display:block; width:100%!important; height:clamp(180px,56vw,240px)!important;
    min-height:0!important; max-height:none!important; aspect-ratio:auto!important;
    object-fit:contain!important; object-position:0 50%!important;
  }
  body.jt-mobile-essential-media .jt-mobile-photo-rail:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
  body.jt-mobile-essential-media .jt-mobile-photo-rail::-webkit-scrollbar { display:block; height:6px; }
  body.jt-mobile-essential-media .jt-mobile-photo-rail::-webkit-scrollbar-thumb { background:#a9afa4; border-radius:3px; }
  /* The biography keeps its face, credentials and CTA without a full-screen portrait. */
  html body.jt-mobile-essential-media.jt-sys--lp #genesis-content .p4-in > .bk42 .b42-left img {
    width:150px!important; height:200px!important; max-width:150px!important;
    object-fit:cover!important; object-position:50% 18%!important; margin-inline:auto!important;
  }
  /* A page with its own clinic gallery needs only practical clinic details at the end. */
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in:has(.jt-owned-authority-media__grid) .bk57 :is(.b57-left,.b57-arr) { display:none!important; }
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in:has(.jt-owned-authority-media__grid) .bk57 .jt-mobile-clinic-links {
    display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:20px;
    font:inherit; font-size:15px;
  }
  .jt-mobile-clinic-links a { display:inline-flex; align-items:center; min-height:44px; text-underline-offset:4px; }
}
/* Restore the real frame of the legacy fade slider: width:auto collapsed it to
 * zero in the existing column flex layout. Desktop remains untouched. */
@media screen and (max-width:900px) {
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in .bk57 .b57-left {
    width:100%!important; height:300px!important; flex:none!important; aspect-ratio:auto!important;
  }
}
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in .bk57 .b57-left { height:220px!important; }
}

@media screen and (max-width:600px) {
  body.jt-mobile-essential-media.jt-laser-hub .jt-lh .hero__media { order:8; margin-top:24px; }
  body.jt-mobile-essential-media.jt-laser-hub .jt-lh .tec > figure { order:0; }
  body.jt-mobile-essential-media.jt-laser-hub .jt-lh .strip {
    --jt-mobile-media-rail:1;
    grid-template-columns:none; grid-template-rows:none; grid-auto-flow:column; grid-auto-columns:86%;
    gap:14px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; padding-bottom:8px;
  }
  body.jt-mobile-essential-media.jt-laser-hub .jt-lh .strip > li { min-width:0; scroll-snap-align:start; }
  body.jt-mobile-essential-media.jt-laser-hub .jt-lh .strip .ph { height:170px; aspect-ratio:auto; object-fit:contain; object-position:center; }
  body.jt-mobile-essential-media.contato-modern-page .bk57 .b57-right { order:1; }
  body.jt-mobile-essential-media.contato-modern-page .bk57 .b57-left { order:2; }
  body.jt-mobile-essential-media.page-id-6725 .jt-press-fecho__copy { order:1; }
  body.jt-mobile-essential-media.page-id-6725 .jt-press-fecho__media { order:2; }
  body.jt-mobile-essential-media.page-id-6725 .jt-press-fecho__media img { height:200px; object-fit:contain; object-position:center; }
}

/* LP owners have existing ID-scoped important declarations; isolate their override
 * so the specificity of the other page families remains unchanged. */
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--lp #genesis-content .p4-in .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)) {
    --jt-mobile-media-rail:1;
    display:flex!important; flex-flow:row nowrap!important; align-items:flex-start!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    gap:12px!important; overflow-x:auto!important; overflow-y:hidden!important;
    overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:0;
    padding-bottom:10px!important; scrollbar-width:thin;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--lp #genesis-content .p4-in .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)) > figure {
    flex:0 0 86%!important; width:86%!important; min-width:0!important; max-width:none!important;
    grid-column:auto!important; grid-row:auto!important; margin:0!important; height:auto!important; min-height:0!important;
    scroll-snap-align:start; scroll-snap-stop:normal;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--lp #genesis-content .p4-in .jt-owned-authority-media .jt-owned-authority-media__grid:has(> figure:nth-child(3)) > figure > img {
    display:block; width:100%!important; height:clamp(180px,56vw,240px)!important;
    min-height:0!important; max-height:none!important; aspect-ratio:auto!important;
    object-fit:contain!important; object-position:0 50%!important;
  }
}

@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.page-id-7874 #genesis-content .p4-in > .bk42 .b42-left { aspect-ratio:auto; }
}

/* The restored compact clinic photo follows the practical address/structure copy. */
@media screen and (max-width:900px) {
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in .bk57 .b57-right { order:1!important; }
  html body.jt-mobile-essential-media.jt-sys--treatment .k6-in .bk57 .b57-left { order:2!important; }
}

/* Reviewed phone rails: keep first portraits compact beside full-frame landscape photos. */
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment:is(.postid-9964,.postid-9966,.postid-9967) .k6-in .jt-owned-authority-media__grid > figure.jt-owned-authority-media__figure--portrait:first-child {
    flex:0 0 calc(clamp(180px,56vw,240px) * 2 / 3)!important;
    width:calc(clamp(180px,56vw,240px) * 2 / 3)!important;
  }
}

/* Reviewed narrow-phone portrait cards on the acne-scar and facial-laser pages. */
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9971 .k6-in .jt-owned-authority-media__grid > figure.jt-owned-authority-media__figure--portrait:nth-child(3) {
    flex:0 0 calc(clamp(180px,56vw,240px) * 2 / 3)!important;
    width:calc(clamp(180px,56vw,240px) * 2 / 3)!important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9972 .k6-in .jt-owned-authority-media__grid > figure.jt-owned-authority-media__figure--portrait:nth-child(2) {
    flex:0 0 calc(clamp(180px,56vw,240px) * 9 / 16)!important;
    width:calc(clamp(180px,56vw,240px) * 9 / 16)!important;
  }
}

/* Exact reviewed portrait cards; retain image height, contain/full frame and every other card. */
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-5918 .k6-in .jt-owned-authority-media__grid > figure:nth-child(1):has(> img[src$="/wp-content/uploads/2026/07/toxina-botulinica-hiperidrose-axilar-dra-juliana-toma-576x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-5923 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-6210 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-6210 .k6-in .jt-owned-authority-media__grid > figure:nth-child(3):has(> img[src$="/wp-content/uploads/2022/03/DRA-JULIANA-TOMA-MEDIA-683x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 683 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 683 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9956 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9957 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9958 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9959 .k6-in .jt-owned-authority-media__grid > figure:nth-child(1):has(> img[src$="/wp-content/uploads/2026/07/mmp-microagulhamento-face-dra-juliana-toma-576x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9959 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9968 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9970 .k6-in .jt-owned-authority-media__grid > figure:nth-child(1):has(> img[src$="/wp-content/uploads/2022/03/LASER-PICOSSEGUNDOS-JULIANA-TOMA-683x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 683 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 683 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9970 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
}

/* Exact wave05 card: preserve image height/full frame and existing rules. */
@media (max-width: 600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9979 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/03/ESTRUTURA-DRA-JULIANA-TOMA-CENTRO-CLINICO-683x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px, 56vw, 240px) * 683 / 1024) !important;
    width: calc(clamp(180px, 56vw, 240px) * 683 / 1024) !important;
  }
}

/* Remaining treatment gallery portraits: exact reviewed cards and sources only. */
@media screen and (max-width:600px) {
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9995 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2026/07/mmp-microagulhamento-face-dra-juliana-toma-576x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9996 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9996 .k6-in .jt-owned-authority-media__grid > figure:nth-child(3):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9997 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-9999 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-10006 .k6-in .jt-owned-authority-media__grid > figure:nth-child(3):has(> img[src$="/wp-content/uploads/2022/03/JULIANA-TOMA-CLINICA-682x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 682 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-10007 .k6-in .jt-owned-authority-media__grid > figure:nth-child(1):has(> img[src$="/wp-content/uploads/2026/07/mmp-microagulhamento-face-dra-juliana-toma-576x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-10007 .k6-in .jt-owned-authority-media__grid > figure:nth-child(3):has(> img[src$="/wp-content/uploads/2022/08/CLINICA-AL-JAU-695-JULIANA-TOMA-860x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 860 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 860 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-10012 .k6-in .jt-owned-authority-media__grid > figure:nth-child(2):has(> img[src$="/wp-content/uploads/2026/07/mmp-microagulhamento-face-dra-juliana-toma-576x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 576 / 1024) !important;
  }
  html body.jt-mobile-essential-media.jt-sys.jt-sys--treatment.postid-10012 .k6-in .jt-owned-authority-media__grid > figure:nth-child(3):has(> img[src$="/wp-content/uploads/2022/08/LAGO-AL-JAU-695-JULIANA-TOMA-876x1024.jpg"]) {
    flex: 0 0 calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
    width: calc(clamp(180px,56vw,240px) * 876 / 1024) !important;
  }
}
