/* Mediaqueries */
@media only screen and (max-width: 1279px) and (min-width: 990px) {
	#header.header_clone nav.sub_menu {
	    float: right;
	}
	
	#header.header_clone .sub_menu ul#avia2-menu li:last-child {
	    margin-right: 0;
	}
	
	#header.header_clone .logo img {
	    height: 95px;
	}
}
@media only screen and (max-width: 1199px) and (min-width: 1070px) {
	#top #wrap_all .main_menu ul:first-child > li a {
	    padding: 0 13px;
	}
	
	#top #wrap_all .main_menu ul:first-child > li:first-child a {
	    padding-left: 0;
	}

}
@media only screen and (max-width: 1069px) and (min-width: 990px) {
	#top #wrap_all .main_menu ul:first-child > li a {
	    padding: 0 8px;
	}
	
	#top #wrap_all .main_menu ul:first-child > li:first-child a {
	    padding-left: 0;
	}
	#top #header .av-main-nav > li > a > span {
	    font-size: 18px;
	}
}
/* Laptops and Small Desktop Screens */
@media only screen and (max-width: 1199px) and (min-width: 990px) {
	/*#top #wrap_all nav.main_menu {
	    float: none;
	    display: table;
	    margin: 0 auto;
	    clear: both;
	    overflow: hidden;
	    padding: 20px 0 10px;
	}*/
	
}
/* Tablets */
@media only screen and (max-width: 989px) and (min-width: 768px) {
	#top #wrap_all nav.main_menu {
	    float: none;
	    display: table;
	    margin: 0 auto;
	    clear: both;
	    overflow: hidden;
	    padding: 20px 0 10px;
	}
	
	#top #wrap_all .sub_menu {
	    float: none;
	    clear: both;
	    display: table;
	    margin: 0 auto;
	    padding: 22px 0 0;
	}
	
	#top #wrap_all .main_menu ul:first-child > li a {
	    padding: 0 10px;
	}
	#top #wrap_all .footer-stay-social .gform_footer {
		left: 270px;
	}
	#top #OTButton a#OT_Find_a_Table {
		width: 100%;
	}
	#top #OTButton {
		width: auto;	
	}
}

/* Non-smartphones */
@media only screen and (min-width: 768px) {
	#top .OT_wrapper input[type="text"] {
	    margin: 0;
		padding: 14px 0 14px 30px;
	}
	#top .OT_day,
	#top .OT_time,
	#top .OT_party,
	#top .OT_submit {
	    margin: 0;
	    padding: 5px 0;
	    width: 25%;
	    height: auto;
	}
	#top .OT_list {
	    width: calc(100% - 187px);
	    margin: 0;
	    float: left;
	}
	
	#top .OT_wrapper {
	    width: 100%;
	}
	
	#top form#OT_form {
	    width: 100%;
	}
	#top .restaurant_profile_tabs #tab-id-3-container {
	    min-height: 250px;
	}
	
	#top #OT_timeList, #top #OT_partyList {
	    max-height: 176px;
	}
}
/* Fix */
@media only screen and (min-width: 768px) and (max-width: 793px) {
	#top a.OT_Find_a_Table:link,
	#top a.OT_Find_a_Table:visited,
	#top a.OT_Find_a_Table:hover,
	#top a.OT_Find_a_Table:active {
		font-size: 11px;
	}
}
@media only screen and (min-width: 768px) and (max-width: 867px) {
	.restaurant_profile_info_name .wpw-fp-button {
	    padding:  0;
	    width: 55px;
	    text-align: center;
	    font-size: 11px;
	}
	#top .OT_subtitle, #top .OT_title {
	    width: 125px;
	    margin-left: 5px;
	    font-size: 8px;
	    margin-top: 7px;
	}
	
	#top .OT_list {
	    width: calc(100% - 125px);
	}
	
	#top .OT_header {
	    width: 125px;
	}
}
/* Tables and Smartphones */
@media only screen and (max-width: 989px) {
	#top #wrap_all .sub_menu {
		display: none;
	}
	#header.header_clone {
	    display: none;
	}
	.event_info_left {
	    width: 100%;
	    float: none;
	    display: block;
	    max-width: 300px;
	    margin: 0 auto;
	}
	
	.event_info_left img {
	    display: block;
	}
	
	.event_info_middle {
	    float: none;
	    display: block;
	    width: 100%;
	}
	
	.event_info_middle .post_title {
	    text-align: center;
	}
}
/* Smartphones */
@media only screen and (max-width: 767px) {

  
	#top #wrap_all #main .header-banner .header-banner-inner .sub-title::before, #top #wrap_all #main .header-banner .header-banner-inner .sub-title::after {
	    display: none;
	}
	
	#top #wrap_all .phone-info {
    	display: none;
	}
	
	
	#top #wrap_all #main .header-banner .header-banner-inner .sub-title span {
	    display: block;
	    margin-top: 30px;
	}
	
	#top #footer .widget_nav_menu li a {
	    text-align: center;
	}
	.wp-count-down {
	    display: none;
	}
		h3.gform_title {
	    text-align: center;
	}
	#top #wrap_all #footer #text-2 {
	    margin: 0 auto;
	    display: table;
	}
	#top #wrap_all #footer .gform_wrapper {
	    width: 270px;
	    margin: 0 auto 15px;
	}
	#top #wrap_all #main .header-banner .header-banner-inner h1 {
	    font-size: 52px;
	    line-height: 52px;
	}
	#top #wrap_all #main .header-banner .header-banner-inner .sub-title {
	    font-size: 40px;
	    line-height: 40px;
	}
	/* Restaurant Page */
	.location_image {
	    display: block;
	    float: none;
	    width: 100%;
	    max-width: 300px;
		margin: 0 auto;
	}
	
	.location_cuisine a {
	    display: block;
	    padding: 10px;
	    text-align: center;
	    margin: 0 auto;
	    max-width: 300px;
	}
	
	.location_cuisine a.cuisine_href {
	    display: inline;
	}
	
	.location_info {
	    width: 100%;
	    float: none;
	}
	
	.location_icons ul li {
	    width: 23%;
	    float: none;
	    display: inline-block;
	    margin: 0;
	    padding: 0;
	}
	
	.location_actions {
	    float: none;
	    width: 100%;
	}
	
	.location_logo {
	    display: none;
	}
	
	.location_name {
	    text-align: center;
	}
	
	.location_divider {
	    margin: 5px auto;
	}
	
	.location_hood {
	    text-align: center;
	}
	
	.location_icons {
	    margin-top: 0;
	    border-bottom: 1px solid;
	    padding-bottom: 7px;
	    margin-bottom: 5px;
	}
	#top .restaurant_profile_info_map, .restaurant_profile_info_details {
	    display: block;
	    float: none;
	    width: 100%;
	}
	
	#top .OT_day,
	#top .OT_time,
	#top .OT_party,
	#top .OT_submit,
	#top .OT_header,
	#top .OT_title,
	#top .OT_subtitle {
	    display: block;
	    float: none;
	    margin: 0;
	    padding: 5px 0;
	    width: auto;
	    height: auto;
	}
	#top .OT_header * {
	    text-align: center;
	}
	#top .OT_wrapper {
	    width: auto;
	    height: auto;
	    float: none;
	    display: block;
	}
	
	#top ul.OT_list {
	    margin: 0;
	    width: auto;
	    height: auto;
	}
	
	#top .OT_wrapper input[type="text"] {
	    margin: 0;
	    padding: 14px 33px;
	}
	
	#top form#OT_form {
	    width: auto;
	    height: auto;
	}
	#top .featured-restaurants .restaurant_location {
	    padding: 20px 0;
	}
	
	#top .featured-restaurants .restaurant_location .location_image {
	    width: 60% !important;
	}
	#top .featured-restaurants .location_info {
	    width: 85% !important;
	}
	#top p {
	    font-size: 14px;
	    line-height: 1.8;
	}
	.offer_grid_item,
	.event_grid_item {
	    float: none;
	    display: block;
	    width: auto;
	    max-width: 360px;
	    margin: 0 auto;
	}
	div.logooos div.logooos_item {
	    width: 49% !important;
	    margin: 0 2% 0 0 !important;
	}
	
	div.logooos div.logooos_item:nth-child(2n) {
	    margin-right: 0 !important;
	}
}
/* Portrait */
@media only screen and (max-width: 480px) {
  #myfavorites-modal {
     font-size: 13px; position: fixed; z-index: 999999999; top: 50%; left: 50%; background: #fff; box-sizing: border-box; padding: 20px; width: 100%; max-width: 300px; height: 500px; margin: -250px 0 0 -150px !important;
  }
	.restaurant_profile_info_name .wpw-fp-button {
	    padding:  0;
	    width: 70px;
	    text-align: center;
	    font-size: 12px;
	    line-height: 35px
	}
	.restaurant_logo_right {
	    position: static;
	    width: auto;
	}
	.restaurant_profile_info_links .restaurant-logo {
	    display: none;
	}
	#restaurant-map-canvas {
	    min-height: 250px;
	}
}