body{height:100%;background-image:url(img/backstar.gif);font-family:'Source Sans Pro', sans-serif; font-size:15px; color: #666;letter-spacing:0.5px;}
#header {position:absolute; top:0px; left:0px; width:100%; background-color:#3d423d;line-height:80px;text-align:center;font-family: 'Oswald', sans-serif;font-size:60px;color:#ffffff; letter-spacing:3px;}
#linkity{position:relative; top:-30px}
#box1{margin:0 auto; margin-top:142px; width:800px;padding:26px;background-color:#fff;font-size:16px;line-height:22px;height:100%;}
#box2{position:relative;margin-bottom:16px;width:556px;}
#box3{position:relative;float:right;width:200px;}
#foot{clear:both;text-align:center;font-size:11px;}
h1{display:block;border-right: 10px solid #d45558;font-family:'Source Sans Pro';font-size:18px;line-height:22px;font-weight:normal;background-color:#3d423d;letter-spacing:1px;padding:6px;color:#fff}
a{text-decoration:none;color:#cc564c;}
a:hover{background-color:#3d423d;color:#fff;}
a.linkit{display:inline-block;width:100px;font-size:16px;color:#feca24;text-transform:uppercase;line-height:16px;letter-spacing:2px;padding:10px;border:2px #e1e1e1 solid;}
a.linkit:hover, a.longan:active{background-color:#c45b2d;color:#fff;border-color:#c45b2d;-o-transition:0.3s;-ms-transition:0.3s;  -moz-transition:0.3s; -webkit-transition:0.3s; transition:0.3s;}
textarea{width:100%}

#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;
}

/* 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%;
  }
}

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}