/*
The styles in this stylesheet only apply to resolutions 768px and up

CALCULATING DIMENSIONS:
----------------------
The layout is fluid. The sote wrapper (.col-full) has a fixed pixel max-width.
All subsequent dimensions are calculated based on that fixed pixel width, using the formula: target / context = result
Credit - http://www.alistapart.com/articles/fluidgrids/

-----
INDEX
-----

1. Global dropdown styles
2. Top Navigation
3. Main navigation dropdown menus
4. General layout related tweaks

*/
@media only screen and (min-width: 768px) {
  /* 1. GLOBAL DROPDOWN STYLES (these are purely for the dropdown layout and you should only edit the width of the dropdowns) */
  ul.nav {
    position: relative;
    margin-bottom: 0;
    width: auto;
    margin-right: 30px;
  }
  ul#main-nav {
	  margin: 0;
	  width: 100%;
	  font-size: 0;
  }
  ul.nav li {
    position: relative;
    display: inline-block;
    *display: inline;
    zoom: 1;
    list-style: none;
    font-size: 14px;
	line-height: 16px;
	font-weight: 900;
	font-family: "Helvetica Neue", Helvetica, Arial, Sans-serif;
	text-transform: uppercase;
	text-align: center;
  }
  ul.nav li a {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  ul.nav li a:hover {
    text-decoration: none;
  }
  ul.nav li ul li a:hover {
    text-decoration: underline;
  }
  ul.nav ul {
    visibility: hidden;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  ul.nav ul li {
    float: none;
  }
  ul.nav ul li a {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  ul.nav ul ul {
    left: 100%;
    top: 0;
  }
  ul.nav li:hover > ul {
    visibility: visible;
    background: inherit;
  }
  #wrapper #navigation ul.rss {
    top: 0;
    right: 0;
    float: right;
    border: none;
    margin-bottom: 0;
    padding: 0 10px 0 0;
  }
  #wrapper #navigation ul.rss li {
    margin: 0;
    display: inline;
  }
  #wrapper #navigation ul.rss li a {
    padding: 13px 5px;
  }
  /* 2. TOP NAVIGATION (Add top navigation presentational styles here) */
  #top {
    background: #000;
    margin: 0 -1.618em;
    padding: 0 1.618em;
  }
  #top #top-nav {
    display: block!important;
  }
  #top ul.nav li a {
    color: #ddd;
    padding-top: 0.3em!important;
    padding-bottom: 0.3em!important;
    font-size: 0.9em;
  }
  #top ul.nav > li a:hover {
    background: #555;
    color: #ddd;
  }
  #top ul.nav > li:hover {
    background: #555;
    color: #ddd;
  }
  #top ul.nav ul {
    background: #555;
  }
  #top ul.nav ul li a {
    color: #ddd!important;
  }
  #top ul.nav li.current_page_item a,
  #top ul.nav li.current_page_parent a,
  #top ul.nav li.current-menu-ancestor a,
  #top ul.nav li.current-cat a,
  #top ul.nav li.current-menu-item a {
    color: #333;
  }
  /* 3. MAIN NAVIGATION DROPDOWN MENUS (Add main navigation presentational styles here) */
  #navigation {
    display: block !important;
  }
  #navigation ul li:first-child,
  #navigation ul li:first-child a {
  }
  #navigation ul ul li:first-child,
  #navigation ul ul li:first-child a {
  }
  #navigation ul.nav > li {
  	width: 19%;
  }
  
  #navigation ul li.home-button {
	  width: 5%;
	  border-bottom: #014358 solid 4px;
  }
  
  #navigation ul li.home-button a {
	  text-indent: -9999px;
	  background: url('../includes/images/home_icon_off.png') no-repeat center center;
	  background-size: 50%;
  }
  
  #navigation ul li.home-button a:hover {
	  background: url('../includes/images/home_icon_on.png') no-repeat center center #014358;
	  background-size: 50%; 
  }
  
  #navigation ul.nav ul {
    background: inherit;
  }
  #navigation ul.nav li div.sub-menu {
    position: absolute;
    left: 0px;
    right: 0px;
    min-height: 100px;
    background-color: #F00;
  }
  #navigation ul.nav ul ul {
    top: -1px;
    left: 100%;
  }
  #top .nav li.parent > a {
    position: relative;
    padding-right: 2em;
  }
  #top .nav li.parent > a:after {
    content: "";
    display: block;
  }
  #navigation .nav li ul li.parent a {
    padding-right: 0;
  }
  #navigation .nav li ul li.parent a:after {
  }
  #navigation .nav li.parent > a {
    position: relative;
  }
  #navigation .nav li.parent > a:after {
    content: "";
    display: block;
  }
  #navigation .nav li ul li.parent a {
    padding-right: 0;
  }
  #navigation .nav li ul li.parent a:after {
  }
  #header h3.nav-toggle {
    display: none;
  }
  /* 4. GENERAL LAYOUT RELATED TWEAKS */
  /* Header */
  #logo {
  }
  #topad {
    float: right;
    margin: 0;
  }
  /* Columns & Containers */
  .col-left {
    float: left;
  }
  .col-right {
    float: right;
  }
  .col-full,
  #wrapper {
    max-width: 940px;
    margin: 0 auto;
  }
  #wrapper #sidebar {
    margin-top: 0;
  }
  .magazine .block {
  }
  .magazine .block .last {
    margin-bottom: 0px !important;
  }
  /* Sliders */
  #loopedSlider .content-outter {
	  position: absolute;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
  }
  #loopedSlider .content-inner {
	  width: 100%;
	  height: 100%;
	  display: table;
  }
  #loopedSlider .content-block {
    display: table-cell;
    vertical-align: middle;
  }
  #loopedSlider .content h2 {
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
  }
  #loopedSlider .content p {
    font-size: 14px;
    line-height: 22px;
    font-weight: normal;
    color: #FFF;
  }
  #loopedSlider .content p,
  #loopedSlider .content h2 {
    max-width: 350px;
  }
  /* Sidebar */
  #main-sidebar-container {
    position: relative;
  }
  #main-sidebar-container #main {
    position: relative;
  }
  #main-sidebar-container #sidebar {
    display: inline;
  }
  #sidebar-alt {
    display: inline;
    margin: 0;
  }
  /* Footer */
  #footer-widgets .block {
    margin-right: 3.8%;
    float: left;
  }
  /* 210 / 940 */
  #footer-widgets.col-1 .block {
    width: 100%;
    margin-right: 0;
  }
  #footer-widgets.col-2 .block {
    width: 48%;
  }
  #footer-widgets.col-3 .block {
    width: 30.75%;
  }
  #footer-widgets.col-4 .block {
    width: 22.05%;
  }
  #footer-widgets.col-2 .footer-widget-2,
  #footer-widgets.col-3 .footer-widget-3,
  #footer-widgets.col-4 .footer-widget-4 {
    margin-right: 0;
  }
  /* Column Widths */
  .one-col #main {
    float: none;
  }
  .two-col-left #main-sidebar-container #main,
  .two-col-right #main-sidebar-container #main {
    width: 66%;
  }
  
  .two-col-left #main-sidebar-container #main.main-table {
	  width: 100%;
  }
  
  /* 610 / 940 */
  .two-col-left #main-sidebar-container #sidebar,
  .two-col-right #main-sidebar-container #sidebar {
    width: 31.91%;
  }
  /* 300 / 940 */
  .three-col-left #main-sidebar-container #sidebar,
  .three-col-middle #main-sidebar-container #sidebar,
  .three-col-right #main-sidebar-container #sidebar {
    width: 39.47%;
  }
  /* 300 / 760 */
  .three-col-left #main-sidebar-container,
  .three-col-middle #main-sidebar-container,
  .three-col-right #main-sidebar-container {
    width: 80.85%;
  }
  /* 760 / 940 */
  .three-col-left #main-sidebar-container #main,
  .three-col-middle #main-sidebar-container #main,
  .three-col-right #main-sidebar-container #main {
    width: 57.89%;
  }
  /* 440 / 760 */
  #sidebar-alt {
    width: 17.02%;
  }
  /* 160 / 940 */
  /* Column Floating */
  .two-col-left #main-sidebar-container #main,
  .two-col-right #main-sidebar-container #sidebar,
  .three-col-left #main-sidebar-container,
  .three-col-left #main-sidebar-container #main,
  .three-col-middle #main-sidebar-container #main,
  .three-col-middle #sidebar-alt,
  .three-col-right #main-sidebar-container #sidebar,
  .three-col-right #sidebar-alt {
    float: left;
  }
  .two-col-left #main-sidebar-container #sidebar,
  .two-col-right #main-sidebar-container #main,
  .three-col-left #main-sidebar-container #sidebar,
  .three-col-left #sidebar-alt,
  .three-col-middle #main-sidebar-container,
  .three-col-middle #main-sidebar-container #sidebar,
  .three-col-right #main-sidebar-container,
  .three-col-right #main-sidebar-container #main {
    float: right;
  }
  /* Contact Page */
  .page-template-template-contact-php .location-twitter .col-left {
    float: left;
  }
  .page-template-template-contact-php .location-twitter #office-location {
    width: 48%;
    margin: 0 1em 0 0;
  }
  .page-template-template-contact-php .location-twitter .contact-social {
    float: left;
    width: 48%;
  }
  .page-template-template-contact-php .location-twitter .contact-social #twitter {
    margin: 0;
  }
  /* Subcribe & Connect */
  #main #connect .col-left {
    float: left;
  }
  #connect .col-right {
    float: right;
  }
  #main #connect .col-left,
  #connect .col-right {
    width: 48%;
  }
  #connect .related-posts {
    border-top: 0;
    border-left: 1px solid #e6e6e6;
    padding-top: 0;
    padding-left: 15px;
    margin-top: 0;
  }
  .ie8 .business #loopedSlider a.flex-prev {
    left: -20px;
  }
  .ie8 .business #loopedSlider a.flex-prev:before,
  .ie8 .business #loopedSlider a.flex-next:before {
    font-size: 16px;
  }
  .ie8 .business #loopedSlider a.flex-next {
    right: -30px;
  }
  
}

@media only screen and (max-width: 767px) {
  .header-wrapper {
	padding: 0;
  }

  #header .header_search_area {
	right: 15px;
  }
  
  #header #logo {
  	padding-left: 15px;
  	text-align: left;
  }
  
  ul#main-nav li.fpp-menu-one a, 
  ul#main-nav li.fpp-menu-two a,
  ul#main-nav li.fpp-menu-three a,
  ul#main-nav li.fpp-menu-four a,
  ul#main-nav li.fpp-menu-five a {
  	border: none;
  	padding: 0 15px 0 10px;
  	color: #FFF;
  	text-decoration: none;
  	font-weight: 900;
  	text-align: left;
  	font-size: 14px;
  	line-height: 48px;
  	text-transform: uppercase;
  }
  ul#main-nav li.fpp-menu-one ul li a, 
  ul#main-nav li.fpp-menu-two ul li a,
  ul#main-nav li.fpp-menu-three ul li a,
  ul#main-nav li.fpp-menu-four ul li a,
  ul#main-nav li.fpp-menu-five ul li a {
  	text-transform: capitalize;
  	font-weight: normal;
  	line-height: 48px;
  	padding-left: 30px;
  }
  ul#main-nav li.fpp-menu-one a {
  	background: #39a1bf;
  }
  ul#main-nav li.fpp-menu-two a {
  	background: #1f8a70;
  }
  ul#main-nav li.fpp-menu-three a {
  	background: #f47421;
  }
  ul#main-nav li.fpp-menu-four a {
  	background: #fee011;
  }
  ul#main-nav li.fpp-menu-five a {
  	background: #bed73c;
  }
  
  #navigation ul li.home-button {
	  width: 100%;
	  border-bottom: #014358 solid 4px;
  }
  
  #navigation ul li.home-button a {
	  text-indent: -9999px;
	  background: url('../includes/images/home_icon_off.png') no-repeat 10px center;
	  background-size: 21px;
	  padding-top: 10px;
	  padding-bottom: 10px; 
  }
  
  #navigation ul li.home-button a:hover {
	  background: url('../includes/images/home_icon_on.png') no-repeat 10px center #014358;
	  background-size: 21px; 
	  padding-top: 10px;
	  padding-bottom: 10px; 
  }
}

@media only screen and (max-width: 480px) {
.entry img,
img.thumbnail,
#portfolio .group.portfolio-img img {
	width: 40%
}

#tab-pop img, #tab-latest img {
	width: 25%;
}
}