@media (min-width: 390px) {
    
    /* Header */
    header .sitetitle {font-size: 0.9rem;}
    
    /* Index */
    .indexgrid .grid-item {-ms-flex: 0 0 50%; flex: 0 0 50%; max-width:50%; }
    .indexgrid .grid-item:nth-child(3) {border-left: solid 2px #042e62;}
    .indexgrid .grid-item:nth-child(5) {border-left: solid 2px #042e62;}
    .indexgrid .grid-item:nth-child(7) {border-left: solid 2px #042e62;}
    .indexgrid .grid-item a {-webkit-box-pack:center; -ms-flex-pack:center; justify-content: center; -ms-flex-direction: column; flex-direction: column; font-size: 0.9rem; padding:10px 5px 10px 5px; height: 115px; line-height:1.2}
    .indexgrid .grid-item a br {display: block;}
    .indexgrid .grid-item a i.icon {display: none;}
    .indexgrid .grid-item a i.fas {font-size: 28px; margin: 5px auto 15px; width: auto;}
    
    .indexgrid .grid-item.wide {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width:100%;}
    .indexgrid .grid-item.wide a {-webkit-box-pack:center; -ms-flex-pack:center; justify-content: center; -ms-flex-direction: row; flex-direction: row; height: auto; padding:15px 10px 15px 10px; font-size: 1rem;}
    .indexgrid .grid-item.wide a i.fas {margin: 0 15px 0 0;}
    
    /* Locations */
    button#dropdownlocation {max-width: 300px;}
    #locationlist {max-width: 300px;}
}

@media (min-width: 480px) {
    /* Index */
    .indexgrid .grid-item a {font-size: 1.05rem; letter-spacing: 0.1em;}
    .indexgrid .grid-item.wide a {font-size: 1.05rem;}
}

@media (min-width: 576px) {
    .modal.lto .modal-dialog {max-width: 800px; width: auto;}
	#subscribemodal .modal-dialog {max-width: 800px;}
    .modal.resources .modal-dialog {max-width:800px;}
    
    /* Header */
    header .sitetitle {font-size: 0.95rem; line-height: 1.25}
    
    /* Index */
    .logo {}
    .logo a img {width:175px;}
    .indexgrid .grid-item a br {display: none;}
    
    /* Inside Pages */
    .pagetitle {height:48px;}
    .pagetitle h1 {font-size: 1.75rem;}
    
    .subtitle h2 {font-size: 1.4rem;}
    
    .toplinks .col-12 {margin-bottom: 15px; padding-left: 15px; padding-right: 15px;}
    .toplinks .card-body a {-ms-flex-direction: column; flex-direction: column; padding: 0px 15px; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; height: 135px;}
    .toplinks .card-body a i:not(.fa-chevron-right) {font-size: 32px; margin: 0 auto 15px; width: auto;}
    .toplinks .card-body a i.fa-chevron-right {display: none;}
    .toplinks .card-body a h5 {}
    
    /* Discounts by Category */
    .discountpage .card-body ul li {width:33.333333%;}
    
    /* Cats */
    div.singlecat .row > div {margin-bottom:1.2rem; padding-left: .6rem; padding-right:.6rem;}
    div.singlecat .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding-right: 1rem; text-align: center; height:65px;}
    div.singlecat .row a i {display: none;}
    
    /* New Vendors */
    #newvendors .row > div {margin-bottom:1.2rem; padding-left: .6rem; padding-right:.6rem;}
    #newvendors .row a {-webkit-box-pack: center; -ms-flex-pack:center; justify-content: center; padding-right: 1rem; text-align: center; height:65px;}
    #newvendors .row a i {display: none;}
    
    /* 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;}
    
    /* Locations */
    #locationlist > div {max-height:400px;}
    
    /** Form Pages **/
    .formContainer .form-group.half {width:48%;}
    .formContainer .form-group.half.left {margin-right:4%;}
    
    /* LTO */
    .ltoinfo > .links a.btn {width:auto; margin: 5px 5px;}
    
}

@media (min-width: 768px) {
    
    /* Header */
    header .sitetitle {font-size: 1rem;}
    
    /* Footer */
    footer {font-size: 0.8rem;}
    footer .container-fluid > div {-ms-flex-direction: row; flex-direction: row;}
    footer .copyright {margin-right:1rem;}
    footer .footerlinks {margin-top:0;}
    
    /* Index */
    .indexgrid .grid-item a {font-size: 20px; height:132px;}
    .indexgrid .grid-item.wide a {font-size: 20px;}
    .indexgrid .grid-item a i.fas {font-size: 30px; margin: 10px auto 15px;}
    
    .indexgrid .grid-item.wide a {height:auto;}
    
    /* Inside Pages */
    a#historyback.end {bottom:36px;}
    
    /* Directions */
    #form-outer > form {width: 80%; margin-left: 10%;}
    
    /* Resource Library */
    
}

@media (min-width: 1024px) {
    /* INdex */
    .indexgrid .grid-item a {font-size: 22px;}
    .indexgrid .grid-item a i.fas {font-size: 32px; margin: 10px auto 25px;}
    .indexgrid .grid-item.wide a {font-size: 22px;}
}

@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) {
    
    /* Inside Pages */
    .pagetitle h1 {font-size: 1.3rem;}
    
    /* National Discounts */
    .nationallinks a.card .card-body {height: 55px;}
    .nationallinks a.card .card-title {font-size: 0.9rem;line-height: 1.1;}
   
    /* Directions */
    .mapouter {height:300px;}
    #form-outer  {margin: 1rem auto 1rem auto;}
    #directionslist {left: 1rem;}
    
    /* LTO */
    #all .card .card-body {height: 50px;}
    #all .card .card-title {font-size: 1rem;line-height: 1;}
}

@media (max-width: 390px) {
    /* Category */
    #az ul li {-ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%;}
    
    /* Directions & Locations */
    .infowindow .title {font-size: .95rem;}
    .infowindow .title > span {font-size: .9rem;}
    .infowindow .address .address-line {font-size: .925rem;}
}

@media (max-width: 360px) {
    /* Category */
    #alpha > div span a {font-size: 13px;}
}

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;}