/**
 * module.rwd.css 
 * RWD Specific Queries for IGS MED, LLC
 * @author Tony Collings <tony.collings{at}the-collings-group.com>
 * @package IGSMED
 * @version 1.0 
 * @date Apr 2015
 *
 * NOTES: Cascade size larger to small !
 */
 
  	@media all and (max-width: 1024px){
		
		.photo-gallery ul {
			-webkit-column-count: 4;
			   -moz-column-count: 4;
					column-count: 4;			
		}	
		
	}
	
 	@media all and (max-width: 850px){
		
		.photo-gallery ul {
			-webkit-column-count: 3;
			   -moz-column-count: 3;
					column-count: 3;			
		}	
		
		#primary-navigation ul {
			text-align: center; 	
		}
		
			
	}
	
	
 	@media all and (max-width: 720px){
		

		
		#pp-form ul li span.currency {
			display: block; clear: both; 
			margin-top: 20px; 
		}
		
		#payme .colgroup .col:nth-child(2){
			text-align: center;
			width: 100%; clear: both;  	
		}
		#pp-form {
			text-align: left; 
			margin: 0px auto; 
			display: inline-block; 	
			width: auto; 
		}
		
		#footer .inner {
			text-align: center; 	
			padding: 0px 10px; 
		}
		#footer ul {
			display: block; 
			clear: both !important; 
			float: none !important; 
			margin: 0px auto; 
			padding: 5px; 
			box-sizing: border-box; 
			
		}		
			
	}
	
			
 	@media all and (max-width: 640px){
	
		#contact .colgroup .col {
			width: 100% !important; 
			clear: both; 	
		}
		
		#primary-navigation ul li {
			display: none; 
		}
		#primary-navigation ul li#hamburger {
			display: block !important; 	
		}
		

		

		
	
	}
	
  	@media all and (max-width: 550px){
		


		.photo-gallery ul {
			-webkit-column-count: 2;
			   -moz-column-count: 2;
					column-count: 2;			
		}			
		

		#footer ul.links li {
			font-size: 0.85rem; 
		}
		#footer ul.links li:first-child {
			margin-left: 0px; 	
		}
		#footer ul.links li a {
			padding: 0px 5px; 
		}
		
		
	}
	
  	@media all and (max-width: 480px){
		
		
		#intro .logo {
			width: 100%; 
			left: -20px; 	
		}
		
		ul.services {
			padding-left: 0px; 	
		}
		
		
		#footer ul:nth-child(1) {
			padding-top: 0px; 	
		}

		#footer li#quantcast {
			display: block; clear: both; 
			margin-top: 10px; 
			padding: 0px 0px; 
			text-align: center; 
		}

		
		
		input[type=text],
		input[type=search],
		input[type=password],
		input[type=number],
		input[type=email],
		select,
		textarea {
			width: 100%; 
		}	
		
		
		.photo-gallery ul li:nth-child(3n+0) {
				/* Hide every 3rd image to reduce page scroll */ 
				display: none; 
		}
		/*
		.photo-gallery ul {
			display: block; 
			clear: both; 
			box-sizing: border-box; 
			width: 100%; margin: 0px; padding: 0px; 
			-webkit-column-count: 1;
			   -moz-column-count: 1;
					column-count: 1;
			white-space: nowrap;
			overflow: auto;  
		}
		.photo-gallery ul li {
			display: inline-block !important;
			vertical-align: top; 
			width: 100%; 
			overflow: hidden; 
		}
		*/
		
					
	}
	
	
  	@media all and (max-width: 400px){

		#photos input#fotolia-submit{
			display: none !important; 	
		}
		#photos input {
			vertical-align: middle; 
		}	
		#photos input#fotolia-search {
			width: calc(100% - 65px); 	
		}
		#photos input#fotolia-submit-small {
			display: inline-block !important; 
			min-width: 50px; 
			background-image: url('../../../assets/images/icons/search.png');
			background-position: center center; 
			background-repeat: no-repeat; 
		}	
		

	}
	

	
	
	@media all and (orientation: portrait){
	
	
		ul#backgrounds li img {
			max-height: 100%;
			max-width: inherit !important; 
		}
		
	}