/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

/*
----------------------------------------
Tantek Celik's Whitespace Reset
     Author:    Tantek Celik, Shane Riley
    Version:    (CC) 2010 Some Rights Reserved - http://creativecommons.org/licenses/by/2.0
Description:  Resets default styling of browsers to a common base
----------------------------------------
*/

ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6, pre, code { font-size: 1em; }
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote,
fieldset, input, dl, dt, dd, figure, figcaption {
  margin: 0;
  padding: 0;
}
a img, :link img, :visited img, fieldset { border: none; }
address { font-style: normal; }
header, section, article, nav, footer, hgroup, details, summary, figure, main {
  display: block;
}
mark {
  color: inherit;
  background-color: transparent;
}
abbr { border: none; }
summary::-webkit-details-marker { display: none; }

/* Project CSS Starts here ************************************************/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
  --bg-gray: rgb(224, 224, 224);
  --text-gray: rgb(158, 158, 158);
  --header-font: "Rubik", monospace;
  --body-font: "Open-Sans", sans-serif;
  --transition: all ease 0.5s;
  --hover: rgb(230, 114, 20);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

html {
  font-family: var(--body-font);
  font-size: 14px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--header-font);
  font-weight: 600;
}

.project h1,
.project h2,
.project h3,
.project h4 {
  padding-top: 1rem;
}

.project h2 {
  font-size: 1.5rem;
}

/*--------------------------------------------------------------
# Structure
--------------------------------------------------------------*/

/*
Mobile-first
*/

div {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-width: 100%;
}

img, video {
  display: block;
  width: 100%;
  padding: 1rem, 0rem;
}

body {
  min-width: 380px;
  min-height: 100%;
  display: grid;
  grid-template-rows: min-content auto min-content;
  grid-template-areas: 
  "header"
  "main"
  "footer";
  transition: var(--transition);
}

main,
header {
  width: 100%;
}

main {
  grid-area: main;
}

header {
  grid-area: header;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
}

nav a {
  text-decoration: none;
  color: inherit;
}

nav h1 {
  margin-top: 60px;
  font-size: 20px;
  margin-bottom: 10px;
}
nav h2 {
  font-size: 16px;
  grid-area: tagline;
  display: inline;
  font-weight: normal;
}

nav ul {
  /* display:block; */
  font-family: var(--header-font);
  font-size: 14px;
  list-style: none;
  line-height: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

ul {
  list-style: disc;
}

blockquote {
  font-style: italic;
  padding-left: 2rem;
  /* text-indent: 2rem; */
}

div.gallery {
  box-sizing: border-box;
  padding: 4%;
  display: grid;
  gap: 20px 4%;  /* Using a relative value (ie 4%) on the vertical gap will cause a blowout at the bottom! */
  /* GRID */
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-content: center;
  transition: var(--transition);
}


div.gallery img {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1.6;
  }

div.gallery figure {
    display: block;
    box-sizing: border-box;
    align-content: center;
    text-align: center;
    transition: var(--transition);
}

div.gallery figcaption {
    font-size: 12px;
    margin-top: 1em;
  }

article.project {
  padding: 2rem 4%;
  /* min-height: 800px; */
}

article.project p {
  margin: 1rem 0;
}

article.project h1 {
  font-size: 2rem;
}

p.date {
  font-family: monospace;
  size: 0.8rem;
}

article.project img {
  display: block;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

footer {
  box-sizing: border-box;
  grid-area: footer;
  padding: 2rem 4%;
  color: var(--text-gray);
  font-size: 10px;
  text-align: left;
}

.mobile-pipe-after::after {
  padding: 0.5rem;
  content: " |";
}

/*
Large Screens
*/
@media screen and (min-width: 800px) {
  body {
    max-width: 1250px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-areas: 
    "header main"
    "header footer";
    grid-template-rows: 1fr auto;
  }
  div.gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  }
  header {
    justify-content: left;
    text-align: left;
    padding: 15%;
    grid-template-rows: 10px min-content min-content 1fr;
  }
  header h1 {
    margin-top: 0;
  }
  header > h2 {
    display: block;
  }
  .mobile-pipe-after::after {
    padding: 0;
    content: "";
    display: block;
  }
}


/*--------------------------------------------------------------
# Styling
--------------------------------------------------------------*/

header {
  color: black;
  background-color: var(--bg-gray);
}
  
header > h2 {
  font-family: var(--body-font);
  font-weight: 400;
}

div.gallery figcaption {
    font-weight: bold;
    font-family: var(--header-font);
}

div.gallery a {
  text-decoration-line: none;
  color: black;
}

div.gallery :hover {
  opacity: 50%;
}

nav a:hover {
  color: var(--hover)
}
