/* HTML, Body */

* {
  box-sizing: border-box;
  vertical-align: bottom;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial;
  font-weight: normal;
  font-size: 22px;
  line-height: 1.25em;
  letter-spacing: .05em;
  color: black;
  text-transform: lowercase;
}

/* Typography */

p, a {
  font-size: 1em;
  margin-block-start: 0;
  margin-block-end: 0;
}

p + p {
  margin-block-end: 1em;
}

a:link {
  color: black;
  text-decoration: none;
}

a:visited {
  color: black;
  text-decoration: none;
}

a:hover {
  color: black;
  text-decoration: none;
}

a:active {
  color: black;
  text-decoration: none;
}

#year {
  vertical-align: baseline;
}

/* Slideshow Controls */

.prev, .next {
  opacity: 0;
  border: none;
  font-size: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover, .next:hover {
  cursor: pointer;
}

/* Slideshow Images and Modal Images*/

.slide_container, #modal_container {
  margin: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  overflow: hidden;
  z-index: -2;
}

#modal_container {
  display: none;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#modal_close {
  margin: .3em;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.image_container {
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.background_container {
  background-color: gray;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blur {
  object-fit: cover;
  margin: -15%;
  width: 130%;
  height: 130%;
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

.contain {
  object-fit: contain;
  width: 100%;
  height: 100%;
  vertical-align: top;
}

.fixed {
  position: fixed;
  top: 0;
  z-index: 1;
}

.caption {
  display: none;
}

/* Figure Images */

.large {
  display: block;
}

.large img {
  border-radius: .4em;
  max-height: 90vh;
  max-width: 100%;
}

.small {
  display: inline-block;
  padding: 0 .3em 0 .3em;
}

.small img {
  border-radius: .4em;
  max-height: 30vw;
  max-width: 30vw;
}

.large img, .small img {
  cursor: pointer;
}

/* Page Structure */

.flex_wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.menu_container {
  position: relative;
  padding: .3em;
  width: auto;
  height: auto;
  z-index: 1;
}

.project_container {
  min-height: 100%;
  margin: 0;
  padding: 1em .3em .3em .3em;
  width: auto;
  height: auto;
  text-align: center;
  flex-basis: auto;
  flex-shrink: 0;
  flex-grow: 1;
}

.tag_container {
  width: 100%;
  text-align: left;
  font-size: 0;
  padding: calc(.3*22px);
  position: relative;
  z-index: 1;
}

.fixed {
  position: fixed;
  padding-bottom: 0;
}

.overflow_hidden {
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
}

.overflow_scroll {
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
}

.footer_container {
  height: 3em;
  width: 100%;
  padding-left: .3em;
  padding-right: .3em;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
}

.number_container {
  padding: 1.3em .35em 1.7em .35em;
  text-align: center;
}

.text_container {
  padding: 0 .35em 1.7em .35em;
  text-align: justify;
}

/* Tags */

.name, .tag, .toggle, a.name, a.tag, a.toggle {
  display: inline-block;
  font-size: 22px;
  color: white;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: .1em .3em .2em .3em;
  border-radius: .4em;
  margin: 0 .3em .3em 0;
  vertical-align: baseline;
}

a.tag:hover, .highlight {
  color: white;
  text-decoration: none;
}

a.toggle:hover {
  cursor: pointer;
}

/* Media Queries */

@media only screen and (max-width: 1200px) {

  .small img {
    max-height: 40vw;
    max-width: 40vw;
  }

}

@media only screen and (max-width: 800px) {

  html, body {
    height: 100%;
    width: 100%;
  }

  p, a {
    font-size: 22px;
  }

  .overflow_hidden {
    white-space: normal;
  }

  .overflow_hidden .tag {
    display: none;
  }

  .overflow_hidden .highlight {
    display: inline-block;
  }

  .small {
    display: block;
    padding: 0;
  }

  .small img {
    max-height: 90vh;
    max-width: 100%;
  }

  .footer_container {
    height: 4em;
  }

}
