@charset "UTF-8";
/* CSS Document */

*,
*::before,
*::after 
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
}


html{
  /*   *****   Storing Colors In Variables   *****  */
  --body-clr: #f6f9fe;
  --primary-clr: #142035;
  --primary-light-clr: #eaf3fa;
  --links-clr: #186f78;
  --text-clr: #3f7277;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* Ensures the body is at least as tall as the screen */
	margin: 0;
	width: 100%;
}

main {
	flex: 1;
}

/* Default banner */
.banner {
  position: relative;
  width: 100%;
  height: 20rem;
  padding: 0 5%;
  overflow: hidden;
  backface-visibility: hidden;
	background: #142035;
}


/* Other stuff */
.banner h1 {
  color: #EEE;
font-size: 45px;
  margin: 0;
  line-height: 20rem;
  text-transform: uppercase;
  text-shadow: 0 0 .3rem black;
}

.portfolio {
	width: 100%;
	padding: 30px 8%;
	background-color: var(--body-clr);
}

.portfolio .section-head {
	max-width: 700px;
	margin: 0px auto 25px;
	text-align: center;
}

.section-head h1 {
	position: relative;
	font-size: 32px;
	margin: 10px 0px 30px;
	color: var(--primary-clr);
}


.button-group {
	text-align: center;
	margin-bottom: 40px;
}

.button-group .button {
	display: inline-block;
	padding: 10px 20px;
	margin: 5px;
	background-color: #c8d1d8;
	color: var(--primary-clr);
	font-style: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.4s;
	border: none;
	border-radius: 1px;
	outline: none;
	cursor: pointer;
}

.button-group .button.active {
	background-color: var(--primary-clr);
	color: var(--body-clr);
}

.button-group .button:hover {
	background-color: var(--primary-clr);
	color: var(--body-clr);
}

div.gallery {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

div.gallery .item {
	position: relative;
	margin: 4px;
	width: calc(33.33% - 8px);
	overflow: hidden;
	cursor: pointer;
}

.item img {
	width: auto;
	height: 300px;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: 0.3s;
}

div.gallery .item:hover img {
  transform: scale(1.15);
}


.item .overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(5,85,92,0.7);
	color: var(--body-clr);
	padding: 15px;
	overflow: hidden;
	transition: opacity 0.2s ease-in-out;
	opacity: 0;
}

.item:hover .overlay {
	opacity: 1;
}

.item .overlay a {
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid var(--body-clr);
	color: var(--body-clr);
	text-decoration: none;
	font-size: 14px;
	transition: 0.3s;
}

.item .overlay a:hover {
	background-color: var(--body-clr);
	color: var(--primary-clr);
}

@media(max-width: 1024px) {
div.gallery .item {
	width: calc(50% - 8px);
  }
}

@media(max-width: 600px) {
div.gallery .item {
	width: 100%;
    margin: 4px 0px;
  }
}
