/* One phone frame for every mobile screenshot on the case studies built from
   exports: the Glowlab phone (components/case-studies/case-intro.css) -
   flat #0D1117 bezel, 3px titanium rim, Dynamic Island, side keys, rounded
   screen. The screenshot fills the screen; it carries its own status bar. */
.a-phn:not(#\#), .j-phn:not(#\#), .tm-gp:not(#\#), .pn-gp:not(#\#), .gb .ph:not(#\#) {
  position: relative !important; overflow: visible !important; box-sizing: border-box;
  width: 100%; max-width: 290px; margin: 0 auto; padding: 7px !important; border: 0 !important;
  border-radius: 46px !important; background: #0d1117 !important;
  box-shadow: 0 30px 50px -28px rgba(20, 12, 28, 0.55) !important; aspect-ratio: auto !important; height: auto !important;
}
.a-phn:not(#\#)::before, .j-phn:not(#\#)::before, .tm-gp:not(#\#)::before, .pn-gp:not(#\#)::before, .gb .ph:not(#\#)::before {
  content: ""; position: absolute; inset: -3px; padding: 3px; border-radius: 49px; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, #e3e9f1 0%, #9ba8b9 14%, #6f7c8e 30%, #b9c4d2 48%, #9ba8b9 62%, #5f6b7c 80%, #d4dce6 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.a-phn:not(#\#)::after, .j-phn:not(#\#)::after, .tm-gp:not(#\#)::after, .pn-gp:not(#\#)::after, .gb .ph:not(#\#)::after {
  content: ""; position: absolute; top: 15px; left: 50%; z-index: 4; width: 30%; height: 20px;
  transform: translateX(-50%); border-radius: 99px; background: #0b0a0d; pointer-events: none;
}
.a-phn .nt:not(#\#) { display: none !important; }
.a-phn button:not(#\#), .j-phn button:not(#\#), .tm-gp button:not(#\#), .pn-gp button:not(#\#), .gb .ph > div:not(#\#) {
  position: relative; z-index: 1; display: block; width: 100%; padding: 0 !important; border: 0; background: #fff;
  border-radius: 39px !important; overflow: hidden !important; aspect-ratio: 9 / 19.5; height: auto !important;
}
.gb .ph > div > button:not(#\#) { border-radius: 0 !important; aspect-ratio: auto; height: 100% !important; }
.a-phn img:not(#\#), .j-phn img:not(#\#), .tm-gp img:not(#\#), .pn-gp img:not(#\#), .gb .ph img:not(#\#) {
  display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 0; border-radius: 0 !important;
}
@media (max-width: 640px) {
  .a-phn:not(#\#), .j-phn:not(#\#), .tm-gp:not(#\#), .pn-gp:not(#\#), .gb .ph:not(#\#) { max-width: 250px; border-radius: 40px !important; }
  .a-phn button:not(#\#), .j-phn button:not(#\#), .tm-gp button:not(#\#), .pn-gp button:not(#\#), .gb .ph > div:not(#\#) { border-radius: 33px !important; }
}

/* Responsive device views (website screenshots): the same phone, and a
   matching tablet, instead of the exports' plain dark boxes. Selectors:
   iVish .dev, J. B. Ludhani .j-dev, Trimurti .tm-dvc .fr, Hajari .dvc .f. */
.dev.m:not(#\#), .j-dev.m:not(#\#), .tm-dvc.m .fr:not(#\#), .dvc.m .f:not(#\#),
.dev.t:not(#\#), .j-dev.t:not(#\#), .tm-dvc.t .fr:not(#\#), .dvc.t .f:not(#\#) {
  position: relative !important; overflow: visible !important; background: #0d1117 !important; border: 0 !important;
  box-shadow: 0 30px 50px -28px rgba(20, 12, 28, 0.55) !important; margin-left: auto; margin-right: auto;
}
.dev.m:not(#\#), .j-dev.m:not(#\#), .tm-dvc.m .fr:not(#\#), .dvc.m .f:not(#\#) { width: min(270px, 100%) !important; padding: 7px !important; border-radius: 46px !important; }
.dev.t:not(#\#), .j-dev.t:not(#\#), .tm-dvc.t .fr:not(#\#), .dvc.t .f:not(#\#) { width: min(420px, 100%) !important; padding: 16px !important; border-radius: 30px !important; }
.dev.m:not(#\#)::before, .j-dev.m:not(#\#)::before, .tm-dvc.m .fr:not(#\#)::before, .dvc.m .f:not(#\#)::before,
.dev.t:not(#\#)::before, .j-dev.t:not(#\#)::before, .tm-dvc.t .fr:not(#\#)::before, .dvc.t .f:not(#\#)::before {
  content: ""; position: absolute; inset: -3px; padding: 3px; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, #e3e9f1 0%, #9ba8b9 14%, #6f7c8e 30%, #b9c4d2 48%, #9ba8b9 62%, #5f6b7c 80%, #d4dce6 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.dev.m:not(#\#)::after, .j-dev.m:not(#\#)::after, .tm-dvc.m .fr:not(#\#)::after, .dvc.m .f:not(#\#)::after {
  content: ""; position: absolute; top: 15px; left: 50%; z-index: 4; width: 30%; height: 20px;
  transform: translateX(-50%); border-radius: 99px; background: #0b0a0d; pointer-events: none;
}
.dev.t:not(#\#)::after, .j-dev.t:not(#\#)::after, .tm-dvc.t .fr:not(#\#)::after, .dvc.t .f:not(#\#)::after {
  content: ""; position: absolute; top: 6px; left: 50%; z-index: 4; width: 5px; height: 5px;
  transform: translateX(-50%); border-radius: 50%; background: #2a3140; pointer-events: none;
}
/* Screens: phone 9:19.5, tablet 3:4, scrollable with no visible scrollbar. */
.dev.m .scr:not(#\#), .j-dev.m .scr:not(#\#), .tm-dvc.m .fr .scr:not(#\#), .dvc.m .f .s:not(#\#),
.dev.t .scr:not(#\#), .j-dev.t .scr:not(#\#), .tm-dvc.t .fr .scr:not(#\#), .dvc.t .f .s:not(#\#) {
  position: relative; z-index: 1; height: auto !important; max-height: none !important; overflow-y: auto !important;
  scrollbar-width: none; background: #fff;
}
.dev.m .scr:not(#\#), .j-dev.m .scr:not(#\#), .tm-dvc.m .fr .scr:not(#\#), .dvc.m .f .s:not(#\#) { aspect-ratio: 9 / 19.5; border-radius: 39px !important; padding-top: 34px; }
.dev.t .scr:not(#\#), .j-dev.t .scr:not(#\#), .tm-dvc.t .fr .scr:not(#\#), .dvc.t .f .s:not(#\#) { aspect-ratio: 3 / 4; border-radius: 14px !important; }
.dev .scr::-webkit-scrollbar, .j-dev .scr::-webkit-scrollbar, .tm-dvc .scr::-webkit-scrollbar, .dvc .s::-webkit-scrollbar { display: none; }
