.mb-app-gallery .mb-app-phone--screenshot, .mb-app-preview--original .mb-app-phone--hero {
  display: block;
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 9 / 20;
  box-sizing: border-box;
  padding: 0;
  border: 6px solid #18304d;
  border-radius: 30px;
  background: #18304d;
  overflow: hidden;
  text-decoration: none;
}
.mb-app-phone--screenshot .mb-phone-camera { top: 8px; left: calc(50% - 21px); background: #a2b0bf; }
.mb-app-phone--screenshot .mb-app-screen {
  display: block;
  position: absolute;
  left: 7px;
  top: 25px;
  width: calc(100% - 14px);
  height: calc(100% - 48px);
  border-radius: 16px;
  background: #fff;
}
.mb-app-phone--screenshot .mb-app-enlarge {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.mb-app-gallery .mb-app-phone--screenshot:hover { box-shadow: 0 12px 28px rgb(23 54 80 / 28%); }
.mb-app-gallery .mb-app-phone--screenshot:focus-visible { outline: 3px solid #c37a0e; outline-offset: 5px; }
.mb-app-gallery-note { max-width: 1040px; margin: 0 auto; color: #53677c; font-size: .9rem; line-height: 1.6; }
.mb-gallery-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(800px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #18304d;
  overflow: auto;
  box-shadow: 0 20px 80px rgb(0 0 0 / 35%);
}
.mb-gallery-dialog::backdrop { background: rgb(12 27 39 / 75%); }
.mb-gallery-dialog h2 { margin: 0 3rem .75rem 0; font-size: 1.25rem; color: #18304d; line-height: 1.4; }
.mb-gallery-dialog .mb-app-screen { display: block; width: 100%; height: calc(100vh - 8rem); height: calc(100dvh - 8rem); max-height: 1100px; background: #fff; }
.mb-gallery-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c7d5df;
  border-radius: 50%;
  background: #f1f5f8;
  color: #173d50;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.mb-gallery-close:hover { background: #e3ebf1; }
.mb-gallery-close:focus-visible { outline: 3px solid #c37a0e; outline-offset: 3px; }
html.mb-gallery-dialog-open { overflow: hidden; }
@media (max-width: 540px) {
  .mb-app-gallery .mb-app-phone--screenshot { border-width: 5px; border-radius: 24px; }
  .mb-app-phone--screenshot .mb-app-screen { left: 4px; width: calc(100% - 8px); border-radius: 12px; }
  .mb-gallery-dialog { width: calc(100vw - 1rem); max-width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: 1rem .5rem; }
}

.mb-guide-visual .mb-app-preview--original { max-width: 300px; margin: 0 auto; }
.mb-app-preview--original .mb-app-phone--hero { max-width: 280px; margin: 0 auto; }
.mb-app-preview--original .mb-app-phone--hero:hover { box-shadow: 0 12px 28px rgb(23 54 80 / 28%); }
.mb-app-preview--original .mb-app-phone--hero:focus-visible { outline: 3px solid #c37a0e; outline-offset: 5px; }
@media (max-width: 540px) {
  .mb-app-preview--original .mb-app-phone--hero { max-width: 250px; border-width: 5px; border-radius: 24px; }
}
