.ModalistOverlay { background: #00000050; height: 100%; display: flex; justify-content: center; align-items: center; position: fixed; width: 100%; top: 0; }
.Modalist  { background: #fafbd3; width: 400px; box-shadow: 0 0 30px #000; border: 2px solid #fff; font-size: 18px; transition: all 0.1s ease; }
.Modalist ._head i { float: right; cursor: pointer; }
.Modalist ._body { background: #fff; text-align: left; border: 1px solid #ddd; border-top: 0; padding: 20px; }

.onsModal       div.Modalist { width: 100%; height: 100%; text-align: left; }

body.mobileType div.ModalistOverlay { padding: 15px; display: block; width: 100vw; height: 100vh; }
body.mobileType div.Modalist        { width: 100% !important; height: 100%; }

@media only screen and ( min-width: 1px ) and ( max-width: 360px  )   { body.mobileType div.ModalistOverlay { padding: 0;   } }
@media only screen and ( min-width: 364px ) and ( max-width: 480px  ) { body.mobileType div.ModalistOverlay { padding: 5px; } }