:root {
	--pagebg: #36687f;
	--mainbg: #fff;
	--warmacc: #fe970c;
	--coolacc: #57a8d7;
	--headertxt: #fff;
	--mainfont: #243746;
	--navlinks: #243746;
	--navtabs: #57a8d7;
	--border: #243746;
	--bradius: 10px;
}

body {
	background-color: var(--pagebg);
	background-image: url("");
	background-repeat: repeat;
	background-attachment: fixed;
	font-family: "Lexend", sans serif;
	font-size: 14px;
	line-height: 1.6em;
	color:var(--mainfont);
	}
	
	a:link { color: var(--warmacc); text-decoration:underline var(--mainfont) solid 1px; }
	a:visited { color: var(--warmacc); text-decoration:underline var(--mainfont) solid 1px; }
	a:hover { color: var(--coolacc); text-decoration:underline var(--warmacc) solid 1px; cursor: help; }

/* Customize the way the grid is set up here. */
.container {
	display: grid;
		grid-template:
			"mySidebar myMainContent"
			"mySidebar myMainContent"
			"mySidebar myFooter"
			/ 1fr 4fr; /* These are fractions that tell each element how much space to take up. */
		grid-gap: 0px;
		width: 1000px; /* How big you want the entire grid to be, as a whole. */
		margin-right: auto; /* Center the entire container. */
		margin-left: auto; /* Center the entire container. */
		margin-top:1%;
}

/* Declare the names of elements. */
header { grid-area: myHeader; }
aside { grid-area: mySidebar; }
main { grid-area: myMainContent; }
footer { grid-area: myFooter; }

/* Now style some cool div elements to place in the grid areas. */
#headertxt {
	color: var(--headertxt);
	font-size:32px;
	font-family:"Lexend";
	text-transform:uppercase;
	letter-spacing: -2px;
	line-height: .9em;
	text-align:right;
	width:100%;
	padding-bottom:5px;
	margin-top:10%;
	margin-left:8%;
}

#sidebarcontain {
	position: sticky;
	top:100px;
	width:90%;
}

.navbutton {
  position:relative;
  display:inline-block;
  padding: 10px 30px;
  padding-right:70px;
  color: var(--navlinks);
  font-size:20px;
  text-align:left;
  width:100%;
  background:var(--navtabs);
  border:2px solid var(--border);
  border-radius:var(--bradius);
  z-index:0;
  transition:ease 0.5s;
  margin-top:5px;
}

.navbutton:hover {
	transform: translateX(-50px);
	transition:ease 0.5s;
}

#main {
	background-color: var(--mainbg);
	font-size:16px;
	padding:20px 30px;
	border: 2px solid var(--border);
	border-radius:var(--bradius);
	position:relative;
	text-align:justify;
	min-height:600px;
}

.inliner {
	float: right;
	padding-left: 24px;
	padding-top: 12px;
	padding-bottom:12px;
	max-width: 70%;
}

.inlinel {
	float: left;
	padding-right: 24px;
	padding-top: 12px;
	padding-bottom:12px;
	max-width: 70%;
}

#footer {
	background-color: var(--mainbg);
	font-size:12px;
	text-align:center;
	padding:12px;
	border: 2px solid var(--border);
	border-radius: var(--bradius);
	margin-top:10px;
}

h1 {
	color: var(--warmacc);
	font-size:38px;
}

h2 {
	color:var(--coolacc);
	font-size:28px;
	line-height:1;
}

h3 {
	color:var(--coolacc);
	font-size:18px;
}

hr {
	border: 1px dotted var(--warmacc);
	width:100%;
}

/* GALLERY PAGE SPECIFIC CSS */

#galcontain {
	width:100%;
	text-align:center;
}

.galbutton {
	display:inline-block;
	padding: 10px 5px;
	margin-left:5px;
	margin-bottom:5px;
	color:var(--navlinks);
	font-size:16px;
	text-align:center;
	width:20%;
	background:var(--navtabs);
	border-radius:5px 10px;
	border-bottom:4px double var(--border);
	border-left:2px solid var(--border);
	border-right:1px solid var(--border);
	border-top:1px solid var(--border);
}

.galbutton:hover {
	transform: scale(1.05);
	cursor: help;
}

/* Wrapper */
.gallery {
  display: flex;
  flex-wrap: wrap;
}

/* Items */
.galbox {
	box-sizing: border-box;
	width: calc(25% - 10px);
	margin: 5px;
	overflow: hidden;
	position: relative;
}

/* Images */
.galbox img {
  width: 100%;
  height: 100%;
  transform: scale(1.2);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galbox img:hover {
  transition: transform 0.5s ease;
  object-fit: cover;
  transform: scale(1.5);
  cursor: zoom-in;
  transition: 0.3s;
}

.galbox:hover span {
  opacity: 1;
  transform: none;
}

.galbox span {
  position: absolute;
  bottom: 0px;
  left: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  color: black;
  padding: 5px 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(100px);
  transition: transform 0.4s ease, opacity 0.5s ease;
}

.galbox a:link { color: var(--mainfont); text-decoration:none; cursor:help;}
.galbox a:visited { color: var(--mainfont); text-decoration:none; cursor:help; }
.galbox a:hover { color: var(--mainfont); text-decoration:underline; cursor:help; }

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 50px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  max-width:80%;
  max-height:90%;
  height:auto;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }
  to {
    transform: scale(1)
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}