/* When the screen is less than 1080 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 1080px) {
	.topnav a:not(:first-child) {display: none;}
	.topnav a.icon {
		float: right;
		display: block;
	}
	.topnav {position: fixed; z-index: 999; width: 100%;}
	.topnav.responsive a.icon {
		position: absolute;
		right: 0;
		top: 0;
		float: none;
		display: block;
		text-align: left;
	}
  /* Hide the logo */
	.logo {
		display: none;
	}
	#intro {
		width: 100%;
	}
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  .topnav.responsive {position: fixed; z-index: 999; width: 100%;}
  .topnav.responsive a.icon {
    position: absolute;
right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}



@media screen and (min-width: 841px) {
	.topnav {z-index: 999; width: 75%;}	
}
@media screen and (max-width: 900px) {
	h2.intro {
	top: 40%;
  }
  h3.intro {
	top: 60%;
  }
}
 /*------------------------------------
SECTIONS
------------------------------------*/
@media screen and (max-width: 840px) {

#about{
	width: 90%;
	margin: 0 auto;
	padding: 0 5%;
}
#people{
	width: 90%;
	margin: 0 auto;
	padding: 0 5%;
}
#partners{
	width: 90%;
	margin: 0 auto;
	padding: 0 5%;
}
#gallery{
	width: 100%;
	margin: 0 auto;
	padding: 0 5%;
}
#links{
	width: 90%;
	margin: 0 auto;
	padding: 0 5%;
}
#contact{
	width: 90%;
	margin: 0 auto;
	padding: 0 5%;
}
#footer{
	width: 100%;
	margin: 0 auto;
	padding: 5%;
}
}

@media screen and (max-width: 600px) {
	/* Expand wrapper to full width */
	#wrapper {
		width: 100%;
	}
	/* Expand the custom search */
	.custom-search {
		width: 90%;
	}
	/* Remove space around responsive elements */
	.row {
		margin: 0;
		padding: 0;
	}
	#intro {
		margin: 2% auto;
		padding: 2%;
	}
}


/* Makes a two column-layout instead of four columns
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}
 */
 
/* Makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 768px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
/* Make the title logo fit small screens in the right place*/
  img.title{
	top: 20%;
	width: 50%;
	left: 25%;
  }
}
/* Make the title logo fit big screens in the right place*/
@media screen and (min-width: 1800px){
	img.title{
	top: 5%;
	width: 30%;
	left: 35%;
  }
}

/* Make info tile flyouts full-width at small screen sizes */
@media screen and (max-width: 1200px) {
	.overlay .info-tile-content {
  width: 100%;
	}
}