@media (min-width: 390px) {
    /* New Vendors */
    #newvendors .row > div {margin-bottom: 1rem;}
    #newvendors .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 5px 0.5rem; text-align: center; height:75px;}
    #newvendors .row a i {display: none;}
    
    /* Cats */
    #singlecat .row > div {margin-bottom: 1rem;}
    #singlecat .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 0.25rem 0.5rem; text-align: center; height:75px;}
    #singlecat .row a i {display: none;}
    
    /* Search */
    #resultsgrid .mix {margin-bottom: 1rem;}
    #resultsgrid .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding: 5px 0.5rem; text-align: center; height:75px;}
    #resultsgrid .row a i {display: none;}
}

@media (min-width: 480px) {
    
    /* Main Site */
    .locations a.card {min-height: 130px;}
    
    /* Discounts by Category */
    .discountpage .card-body ul li {width:50%;}
    
    /* Business */
    #business-buttons {-webkit-flex-flow:row wrap;-moz-flex-flow: row wrap;-ms-flex-flow: row wrap;flex-flow: row wrap; }
    #business-buttons a.btn {width:auto;}
    
    /* LTO */
    .ltoinfo > .links {-webkit-flex-flow:row wrap;-moz-flex-flow: row wrap;-ms-flex-flow: row wrap;flex-flow: row wrap; }
    .ltoinfo > .links a.btn {width:auto;}
}

@media (min-width: 576px) {
    
    .modal.lto .modal-dialog {max-width: 800px; width: auto;}
    .modal.adimage .modal-dialog {max-width: 700px; width: auto;}
    
    /* Discounts by Category */
    .discountpage .card-body ul li {width:33.333333%;}
    
    /* Business */
    #business-buttons a.btn {width:auto; margin: 5px;}
    
    /* Directions */
    .mapouter {height:400px;}
    
    /* LTO */
    #all.ltocontent .col-6 {margin-bottom: 1rem;}
    .ltoinfo > .links a.btn {width:auto; margin: 5px;}
    
    /* Search */
    .resultstext {font-size: 1.5rem;}
}

@media (min-width: 767px) {
    
    body {font-size: 18px; font-size: 1.125rem;}
    .btn {font-size: 18px; font-size: 1.125rem;}
    
    h1 {font-size: 34px; font-size: 2.125rem;}
    h2 {font-size: 26px; font-size: 1.625rem;}
    h3 {font-size: 24px; font-size: 1.5rem;}
    h4 {font-size: 22px; font-size: 1.375rem;}
    
    /* Main Site */
    .locations a.card {min-height: 160px;}
    .locations a.card .card-body img {height:50px;margin-bottom: 1rem;}
    .locations a.card .card-body h2 {font-size: 26px; font-size: 1.625rem;}
    .locations a.card .card-body h2 br {display: none;}
    
    /* Inside Pages */
    .sitetitle {height:32px;}
    .sitetitle > span {font-size: 1.125rem;}
    
    /* FAQs (Main site) */
    #faqsaccordion .accordion-item h2 button {font-size: 1.2rem;}
    
    /* FAQs (programs) */
    #faqs.accordion .accordion-item h3 a.accordion-button {font-size: 1.2rem;}
    
    /* Contact (Main Site) */
    .contactinfo h5 {font-size: 1.25rem;}
    
    /* Discounts & Program Info */
    .toplinks a {-webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-direction: column; flex-direction:column; font-size: 1.5rem; border-radius: 10px;}
    .toplinks a i {font-size: 2.25rem; margin: 0 auto 1rem;}
    .toplinks .row > div:last-child {margin-bottom: 1.5rem;}
    
    /* New Vendors */
    #newvendors .row > div {margin-bottom: 1.5rem;}
    
    /* Cats */
    #singlecat .row > div {margin-bottom: 1.5rem;}
    
    /* Search */
    #resultsgrid .mix {margin-bottom: 1.5rem;}
    
    /* Directions */
    #directionslist {top:125px;}
    
}

@media (min-width: 992px) {
    h1 {font-size: 42px; font-size: 2.625rem;}
    h2 {font-size: 34px; font-size: 2.125rem;}
    h3 {font-size: 30px; font-size: 1.875rem;}
    h4 {font-size: 26px; font-size: 1.625rem;}
    
    /* Directions */
    #directionslist {top:150px;}
}

@media (max-height: 667px) and (orientation: landscape) { 
    /* Vendors */
     #alpha > div > span > a {font-size:12px;margin: 0px 0px 0px 0px;}
}

@media (max-width:667px) and (max-height:375px) {
    /* Vendors */
    #alpha {}
    #alpha > div > span > a {font-size:11px;margin: 0px 0px 0px 0px;}
}

@media (max-width: 575px) {
    .masonry-with-columns div {height:auto;margin: 0 auto 0.5rem auto;}
    .masonry-with-columns div > a {}
    .masonry-with-columns div > a br {display: none;}
    
    /* Inside Pages */
    #newvendors .top-pagination {flex-direction: column;}
    #newvendors .top-pagination > * {margin-bottom: 0.5rem;}
    
    .maincontent .dropdown-menu {max-width: 250px;}
    .maincontent .dropdown-menu a.dropdown-item {white-space: normal; }
    .maincontent .dropdown-menu a.dropdown-item:after {position: absolute; bottom:0; left: 5%; right:5%; height:0.005rem; content:''; background-color:rgba(0,0,0,0.05);}
}

@media (max-width: 480px) {
    /* Index */
    .locations .container-fluid {flex-wrap: wrap;}
    .locations a.card {width:100%; margin: 5px auto 10px auto;}
    /* Inside Pages */
    /*
    .pagination-buttons {flex-direction: column;}
    .pagination-buttons .newvendorfilter {margin-right:0;margin-bottom: 0.5rem;}
    */
    
    /* Directions & Locations */
    #form-outer > form#location-form .row {-ms-flex-direction: column; flex-direction: column; -webkit-box-align: center;-ms-flex-align: center;align-items: center;}
}

@media (max-width: 390px) {
    /* Discounts & Program Info */
    .toplinks a {font-size: 1.05rem;padding: 1rem;}
    .toplinks a i {font-size: 1.5rem; }
    
    /* Category */
    .discountpage .card-body ul li a.btn {}
    #az ul li {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; padding-left: 0.25rem !important; padding-right: 0.25rem !important;}
}
@media (max-width: 389px) {
    /* New Vendors */
    #newvendors .row {margin-left:auto; margin-right:auto;}
    #newvendors .row > div {width:100%; padding-right:0;padding-left:0;}
    
    /* Category */
    #singlecat .row {margin-left:auto; margin-right:auto;}
    #singlecat .row > div {width:100%; padding-right:0;padding-left:0;}
    
    /* Search */
    #resultsgrid .gridouter .grid {margin-left:auto; margin-right:auto;}
    #resultsgrid .mix {width:100%; padding-right:0;padding-left:0;}
}

@media (max-width: 375px) {
    /* Index (programs) */
    .container-fluid.index > .row {margin-left: auto !important; margin-right: auto !important;}
    .masonry-with-columns {padding-left: 0;padding-right:0;}
    .masonry-with-columns div {padding: 0 0;}
    .masonry-with-columns div:last-child {margin-bottom: 0;}
    .masonry-with-columns div:nth-child(2) {width: 100%;}
    .masonry-with-columns div:nth-child(3) {width: 100%;}
    .masonry-with-columns div > a {flex-direction: row; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; padding: 0.5rem 0.5rem 0.5rem 1rem;}
    .masonry-with-columns div > a i {margin: 0 0.75rem 0 0; font-size: 1.5rem;}
    .masonry-with-columns div:nth-child(2) a br {display: none;}
    .masonry-with-columns div:nth-child(3) a br {display: none;}
    
    /* Directions */
    #directionslist {top:110px;}
    #directionslist .btn {padding: 0.5rem 1rem;}
}
@media (max-width: 360px) {
    
    /* Main Site */
    .siteinfo h1 {font-size: 1.25rem;}
    .siteinfo p {font-size: 15px; line-height: 1.25;}
    
    .locations a.card {min-height: 120px;}
    .locations a.card .card-body img {height:30px;margin: 0 0 5px;}
    
    /* Inside Pages */
    #singlecat .top-pagination {padding: 0.75rem 0.5rem;}
    
    /* Discounts & Program Info */
    .toplinks .row > div {margin-bottom: 1rem;}
    .toplinks a {font-size: 1rem;}
    .toplinks a i {font-size: 1.25rem; margin-right:0.75rem;}
    
    /* Vendors */
    #alpha > div span a {font-size: 13px;}
    
    /* Cats */
    #singlecat .row a {font-size: 0.95rem; min-height: 50px;}
    
    /* Search */
    #resultsgrid .row a {font-size: 0.95rem; min-height: 50px;}
    #resultsgrid .pagination .page-item:not(.page-arrow) {display: none;}

html.ie .ltoImage img.img-fluid {width:100% !important;}
html.ie select::-ms-expand {display: none;}

html.webapp body.iphoneX footer .container-fluid {padding-bottom: 20px;}
html.webapp body.iphoneXR footer .container-fluid {padding-bottom: 20px;}
html.webapp body.iphone12 footer .container-fluid {padding-bottom: 20px;}