.pflex {
	display:flex;
	flex-flow:row wrap;
	flex-start:center;
	justify-content:space-evenly;
	padding-left:20%;
	padding-right:20%;
}

h1 {
	margin-bottom:0;
}

.container {
  position: relative;
  width: 25%;
}

.image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom:0;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90%;
  width: 85%;
  opacity: 0.5;
  background-color:#263238;
  transition: 2s ease;
  border-radius: 10px 10px;
}

.container:hover .overlay {
  opacity: 1;
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
	font-family:'Raleway', sans-serif;
	font-size:24px;
  padding:5px;
  color:#F5F5F5;
}

#gallery {
	display:flex;
	flex-flow:row wrap;
	flex-start:center;
	justify-content:center;
	align-items:flex-start;
}

#gallery img {
	width:200px;
	border-radius: 3px;
	border: 3px solid #263238;
	margin: 6px;
}

/* RESPONSIVENESS SETTINGS */

/* mobile / small tablet */
@media only screen and (max-width: 600px) {
	.pflex {
		flex-flow:column wrap;
	}
	.overlay {
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  height: 85%;
	  width: 100%;
	  opacity: 1;
	  background-color: #263238;
	}
	.image {
		visibility:collapse;
	}
	h4 {
		font-family:'Raleway', sans-serif;
		text-align:center;
		color:#F5F5F5;
		font-size:12pt;
		margin-bottom:0;
	}
	a:link {
		text-decoration:none;
	}
	.container {
	  width: 100%;
	}
}

/* everything else */
@media only screen and (min-width: 601px) {
	h4 {
		visibility:collapse;
	}
}

@media only screen and (min-width: 601px) and (max-width: 1000px) {
	.container {
	  width: 50%;
	}
	.image {
		visibility:collapse;
	}
	.overlay {
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  right: 0;
	  height: 70%;
	  width: 90%;
	  opacity: 0.8;
	  background-color: #263238;
	}
}