/* CONTENTS
 * 1. Body
 * 2. Headngs + General + Helpers
 * 3. About Page
 * 4. Portfolio Page
 * 5. Responsive Media Queries
 */

body { 
  background-color: #eee;
  color: #22271f;
  font-family: "Source Serif Pro", Times New Roman, serif;
  .font-family: Arial, sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/** HEADINGS + GENERAL + HELPERS **/

h1 {
  margin: 15px;
  font-size: 48px;
  font-weight: 500;
  font-family: 'Caveat', serif;
}

h1 a, h1 a:visited { 
  text-decoration: none;
}

h1 a:hover {
  border: 0;
}

h2 {
  font-size: 30px;
  margin: 0;
  font-weight: 300;
  font-family: 'Caveat', serif;
}

h3 {
  text-align:center;
  font-size: 18px;
  font-weight: 500;
}

h4 {
  font-weight: 700;
  font-size: 1.5em;
  margin: 0;
}

p {
  text-align: justify;
}

blockquote {
  text-align: justify;
}

img {
  width: 100%;
  max-width: 100%;
}

.centered {
  text-align: center;
}

.clear {
  clear: both;
}

.hidden {
  display: none;
}

/** HEADER + NAV **/

.header__landing {
  height: 100vh;
  background-image: url(/img/exclosure.jpg);
  background-size: cover;
  background-position: center center;
}

.header__page {
  height: 60vh;
  background-size: cover;
  border-bottom: solid 1px #000;
  background-position: center center;
}

.header__title {
  background-color: #fff;
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  opacity: 0.8;
  filter: alpha(opacity=80);
}

.header__title a:link,
.header__title a:visited {
  color: #22271f;
}

.nav__primary {
  text-align: center;
  background-color: #fff;
  padding: 0 10px 20px 10px;
  border-bottom: 3px double #000;
  opacity: 0.8;
  filter: alpha(opacity=80);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: bold;
}

.nav__primary a:link, .nav__primary a:visited {
  color: #082754;
  text-decoration: none;
  margin: 0 5px;
}

.nav__primary a:hover {
  text-decoration: underline;
}

.nav__secondary {
  width: 100%;
  padding: 10px;
  text-align: center;
  background-color: #fff;
}

/** ABOUT **/

.about__button-container {
  margin: 20px auto 40px;
  text-align: center;
}

.about__figure {
  display: flex;
  flex-wrap: wrap;
  background: #fff;  
  box-shadow: 0px 0px 50px -10px #9a7289
  justify-content: center;
  width: 80%;
  margin: 0px auto;
}

.flex-reverse-wrap {
  flex-wrap: wrap-reverse;
}

.about__figure img {
  flex: 1 1 48%;
  min-width: 250px;
  align-self: stretch;
}

.about__figure figcaption {
  flex: 1 1 48%;
  min-width: 250px;
  align-self: center;
}

.about__figure figcaption p {
  padding: 10%; 
  line-height: 2em;
  font-size: 1.2em;
}

/** PORTFOLIO **/

.portfolio__grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-gap: 50px;
	grid-auto-rows: minmax(20px, auto);
	grid-auto-flow: dense;
	padding: 35px;
}

.portfolio__box {
	padding: 0;
	color: #000;
	background-color: #fff;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.portfolio__box-links {
  background-color: #333;
  width: 100%;
  position: absolute;
  bottom: 0;
}

.portfolio__button-container {
  margin: 20px auto 0;
  text-align: center;
}

a.portfolio__button,
button.portfolio__button {
  background-color: transparent;
  color: inherit;
  display: inline-block;
  font: inherit;
  text-align: center;
  text-decoration: none;
  margin: 10px 3px 0;
  border: solid 1px #000;
  padding: 0.5em 1em;
  color: #000;
  background-color: #fff;
  outline: none;
  cursor: pointer;
}

a.portfolio__button:hover,
a.portfolio__button:focus,
a.portfolio__button:active,
button.portfolio__button:hover,
button.portfolio__button:focus,
button.portfolio__button:active,
button.active {
  color: #fff;
  border-color: #000;
  background-color: #333;
}

button.portfolio__button::-moz-focus-inner {
  border: none;
}

a.portfolio__button-link {
  display: inline-block;
  padding: 7px 13px;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  width: 50%;
  color: #fff;
  background-color: #333;
}

a.portfolio__button-link:hover {
  background-color: #555;
  color: #fff;
} 

.portfolio__box p { 
  padding: 0px 20px 0 20px;
  text-align: left;
}

.portfolio__box .tags {
  font-variant: small-caps;
  color: #333;
  margin: 0;
  margin-bottom: 53px;
}
  
.portfolio__box-year {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 
  display: inline-block;
  background-color: black;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 5px 60px 5px 40px; 
  line-height: 20px;
  font-size: 15px;
  position: relative;
  margin-left: -40px;
	box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}

.portfolio__box-year:before,
.portfolio__box-year:after {
  content: "";
  width: 100%;
	display: block;
	position: absolute;
	top: 1px;
	left: 0;
	height: 1px;
	background: #fff;
}

.portfolio__box-year::after {
  bottom: 1px;
  top: auto;
}

.portfolio__box h2 {
  margin: 10px 10px 0 10px;
  text-align: center;
}

.portfolio__box img {
  margin: -30px 0 0 0;
  width: 100%;
}

/** RESPONSIVE MEDIA QUERIES **/

@media only screen and (max-width: 600px) {
  .header__landing {
    background-image: url(/img/exclosure-mobile.jpg);
  }

  .header__page {
    height: 100vh;
  }
}


