#fancybox-wrap { width: 100%!important; height: auto!important; max-width: 640px!important; box-sizing: border-box; position: fixed; top: 15%!important; left: 0!important; right: 0!important; bottom: 0!important; margin: auto!important; } #fancybox-outer { height: auto!important } div#fancybox-content { width: 640px!important; height: 510px!important; border-color: #222; background-color: #222; padding-bottom: 10px; padding-left: 15px; padding-right: 0; padding-top: 10px; border: 0; background: #000; } .touch body { min-width: 1046px; width: 100%; position: relative; } .touch div#fancybox-wrap { width: 100%!important; max-width: 600px!important; height: 350px!important; margin: auto; top: 0!important; bottom: 0!important; left: 0!important; right: 0!important; position: fixed; } .touch div#fancybox-content { width: 100%!important } #fancybox-close { right: -42px } .android div#fancybox-wrap { position: absolute!important; bottom: inherit!important; width: 640px!important; left: 50%!important; margin-left: -320px!important; /*right: 0!important;; margin: auto!important;*/ top: 250px!important; }