:root {
  --blood-red:   #CA2026;
  --bright-red:  #dd272d;
  --slate:       #565656;
  --dark-grey:   #282828;
  --black:       #000000;
  --white:       #FFFFFF;
  --dark-cherry: #7F141B;
  --silver:      #777677;

  --base-font-family: 'Oxygen', 'Helvetica', sans-serif;
  --base-font-size:   16px;
  --small-font-size:  12px;
  --base-line-height: 1.5;

  --navbar-height: 79px;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-cherry) var(--blood-red);
}

* { box-sizing: border-box; }

@font-face { font-family: Trend-Sans-One; src: url("/fonts/Trend-Sans-One.otf") format("opentype"); }
@font-face { font-family: Trend-Sans-One; src: url("/fonts/Trend-Sans-One-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Trend-Sans-Four; src: url("/fonts/Trend-Sans-Four.otf") format("opentype"); }
@font-face { font-family: Trend-Sans-Four; src: url("/fonts/Trend-Sans-Four-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Trend-Sans-Five; src: url("/fonts/Trend-Sans-Five.otf") format("opentype"); }
@font-face { font-family: Trend-Sans-Five; src: url("/fonts/Trend-Sans-Five-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Trend-HM-Sans-One; src: url("/fonts/Trend-HM-Sans-One.otf") format("opentype"); }
@font-face { font-family: Trend-HM-Sans-One; src: url("/fonts/Trend-HM-Sans-One-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Trend-HM-Sans-Four; src: url("/fonts/Trend-HM-Sans-Four.otf") format("opentype"); }
@font-face { font-family: Trend-HM-Sans-Four; src: url("/fonts/Trend-HM-Sans-Four-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Trend-HM-Sans-Five; src: url("/fonts/Trend-HM-Sans-Five.otf") format("opentype"); }
@font-face { font-family: Trend-HM-Sans-Five; src: url("/fonts/Trend-HM-Sans-Five-Italic.otf") format("opentype"); font-style: italic; }
@font-face { font-family: Oxygen; src: url("/fonts/Oxygen.otf") format("opentype"); }
@font-face { font-family: Oxygen; src: url("/fonts/Oxygen-Bold.otf") format("opentype"); font-weight: bold; }
@font-face { font-family: Oxygen; src: url("/fonts/Oxygen-BoldItalic.otf") format("opentype"); font-style: italic; font-weight: bold; }
@font-face { font-family: Oxygen; src: url("/fonts/Oxygen-Italic.otf") format("opentype"); font-style: italic; }

/* Type Styling */
h1, h2, h3, h4, h5, h6 { font-family: 'Trend-Sans-One'; text-transform: uppercase; }

.red-text { color: var(--blood-red); }
.silver-text { color: var(--silver); }
.black-text { color: var(--black); }
.with-underline.silver-text { border-bottom: 3px solid var(--silver); }
.with-underline.red-text { border-bottom: 3px solid var(--blood-red); }
.with-overline.red-text { border-top: 3px solid var(--blood-red); }
.with-underline.black-text { border-bottom: 3px solid var(--black); }

body {
  font-family: var(--base-font-family);
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  font-weight: 300;
  color: var(--silver);
  background-color: var(--black);
  background-image: url('/images/grayscale-logo-repeating-with-offset-400.jpg');
  background-repeat: repeat;
  background-size: 300px;
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  margin: 0;
}

.link-description {
  font-size: var(--small-font-size);
  color: var(--slate);
  padding-left: 10px;
  padding-right: 2px;
}

.content-container {
  background-color: rgba(0, 0, 0, 0.6);
  width: 94vw;
  min-height: 96vh;

  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2vh;

  scroll-snap-type: y proximity;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.content-container > section {
  padding-left: 2vw;
  padding-right: 2vw;

  scroll-snap-align: start;
}
section {
  margin-top: 3vh;
  margin-bottom: 3vh;
}
footer.site-footer {
  background-color: var(--black);
  text-align: right;
  position: relative;
  bottom: 0;
  padding: 1em;
  border-top: 1px solid var(--dark-grey);
}
footer h4 {
  margin: 0;
}
footer .page-updated-at {
  font-size: var(--small-font-size);
  color: var(--dark-grey);
}

/** Links */
a { color: var(--blood-red); text-decoration: underline; }
a:visited, a:focus { color: var(--dark-cherry); }
a:hover { color: var(--bright-red); }

/** Page Navigation **/

header.site-header {
  background: var(--black);
  display: table;
  width: 94vw;
  margin-left: auto;
  margin-right: auto;
  top: 0;
  border-bottom: 1px solid var(--dark-cherry);
}
header.sticky {
  position: fixed;
  z-index: 9999;
}
header.sticky + section,
header.sticky + section#page-header {
  margin-top: var(--navbar-height);
}
header .nav-container {
  display: table-row;
  vertical-align: middle;
}

header .nav-home {
  margin: 5px;
  display: table-cell;
  width: 80px;
}
header .nav-home img { display: inline-block; margin: 10px; }

header .site-nav {
  display: table-cell;
  width: auto;
  height: 100%;
  text-align: right;
  vertical-align: middle;
}

.site-nav ul {
  font-size: var(--small-font-size);
  display: inline-block;
  list-style-type: none;
}
.site-nav li {
  font-family: 'Trend-Sans-One';
  text-transform: uppercase;
}
.site-nav a {
  color: var(--silver);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--bright-red);
}

/** HOME **/
#site-title {
  background-image: url('/images/dwil.jpg');
  background-attachment: fixed;
  background-size: 94vw auto;
  background-position: 3vw var(--navbar-height);

  height: 31vw;
  width: 94vw;
  display: table;
  padding: 0;
}

#site-title .backdrop-filter {
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  display: table-cell;
  vertical-align: middle;
}

#site-title .title {
  background-color: var(--blood-red);
  margin: auto;
  opacity: 0.9;
  padding: 1em;
  max-width: 800px;
  width: 80vw;
}

#site-title img {
  width: 100%;
}

.fancy-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, 252px);
  grid-auto-rows: 252px;
  place-items: center;
  justify-content: center;
  column-gap: 6vh;
  row-gap: 6vh;
}
.fancy-nav-block {
  height: 252px;
  width: 252px;
  background-size: 250px 250px;
  text-align: center;
  border: 1px solid var(--blood-red);
}

.fancy-nav-block a {
  text-decoration: none;
  height: 250px;
  width: 250px;
}
.fancy-nav-block .title {
  font-family: 'Trend-Sans-One';
  text-transform: uppercase;
  line-height: 180px;
  width: 180px;
  margin: 35px;
  text-shadow: 0px 0px 4px #000;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.6);
}

#fancy-nav-portfolio {
  background-image: url('/images/dwil-trista-square.jpg');
}
#fancy-nav-archive {
  background-image: url('/images/q-marionette-square.jpg');
}
#fancy-nav-blog {
  background-image: url('/images/blog-square.jpg');
}
#fancy-nav-about {
  background-image: url('/images/self-with-camera-circle-square.jpg');
}

.new-thing-meta {
  font-size: .8em;
}

.newest-stuff i {
  padding-right: 10px;
}

ul.newest-stuff {
  list-style: none;
  display: grid;
  column-gap: 6vh;
  row-gap: 6vh;
  place-items: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, 400px);
  margin-bottom: 6vh;
}

.newest-stuff li {
  display: inline-block;
/*  border: 1px solid var(--blood-red);*/
  width: 400px;
}

.newest-stuff img {
  display: block;
}

/** About **/

#bio img {
  float: left;
  height: auto;
  width: 40vw;
  max-width: 250px;
  margin-right: 20px;
  margin-bottom: 20px;
}

#elsewhere table {
  font-size: 0.9em;
}
#elsewhere td {
  padding: 2px 2vw;
}

/** Blog **/
#post-content img {
  max-width: 90vw;
  margin: 2vh 2vw;
  display: inline-block;
  border: 1px solid var(--slate);
}

a.blog-post-title-link {
  text-decoration: none;
}

img.blog-post-excerpt-image {
  max-width: 40vw;
  max-height: 40vh;
  margin-right: 2vw;
}

/** Portfolio **/
.portfolio-header {
  min-height: 20vw;
}

.portfolio-album-block {
  display: table;
  width: 100%;
  min-height: 33vh;
  margin-bottom: 20vh;
  text-align: center;
}

.portfolio-album-block div {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

.portfolio-album-block h3 {
  padding-top: 1em;
  padding-bottom: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
}

.portfolio-album-block a {
  text-decoration: none;
}
.portfolio-album-block a:hover,
.portfolio-album-block h3:hover{
  color: var(--bright-red);
  background-color: rgba(20, 0, 0, 0.4);
}


section.portfolio-gallery {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 0;
  scroll-snap-type: x mandatory;
  min-height: 100vh;
  border-bottom: 1px solid var(--dark-cherry);
}

section.portfolio-gallery::-webkit-scrollbar {
  height: 11px;
}

section.portfolio-gallery::-webkit-scrollbar-track {
  background: var(--dark-cherry);
}
section.portfolio-gallery::-webkit-scrollbar-thumb {
  background-color: var(--blood-red) ;
  border-radius: 6px;
  border: 3px solid var(--dark-cherry);
}

.portfolio-photo-container {
  scroll-snap-align: start;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding-bottom: 2vh;
  vertical-align: top;
  white-space: normal;
}

.portfolio-photo-container img {
  max-height: calc(96vh - 2em);
  max-width: 96%;
  height: auto;
  width: auto;
  margin: 1vh 2vw;
  border: 1px solid var(--slate);
}

ul.links-list {
  list-style: none;
}

ul.subject-multiple-links {
  display: inline-block;
  list-style: none;
  padding-left: 2px;
}

ul.subject-multiple-links li {
  display: inline-block;
  padding-inline: 6px;
  font-size: var(--small-font-size);
}


/** Preview Album **/

.preview-photo-container {
  padding-bottom: 5vh;
  text-align: center;
}

.preview-photo-container img {
  max-height: 96%;
  max-width: 96%;
  height: auto;
  width: auto;
  margin: 1vh 2vw;
  border: 1px solid var(--slate);
}

/** Gallery Page **/

section.gallery {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  grid-auto-rows: 150px;
  column-gap: 30px;
  row-gap: 30px;
  place-items: center;
  justify-content: center;
}
.preview-album section.gallery {
  grid-template-columns: repeat(auto-fill, 250px);
  grid-auto-rows: 250px;
}

.gallery .thumbnail {
  max-height: calc(100% - 2px);
  max-width: calc(100% - 2px);
  border: 1px solid var(--slate);
}
.gallery .thumbnail:hover, .gallery .thumbnail:focus {
  border: 1px solid var(--blood-red);
}

#page-header {
  text-align: center;
  padding: 0;
  margin: 0;
  display: table;
}
#page-header div{
  display: table-cell;
  vertical-align: middle;
  width: 94vw;
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
}
#page-header h1 {
  padding-top: 1em;
  padding-bottom: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: rgba(0, 0, 0, 0.4);
}

.credits li {
  list-style: none;
  margin-bottom: 1em;
}
.credits .model-list li {
  display: inline-block;
  margin-right: 1em;
}

.archive-album .description {
  text-align: center;
}

/** Photo Page **/
.photo-container {
  position: relative;
  bottom: 0;
  max-width: 94vw;
  max-height: calc(97vh - 25px - 24px);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2vh;
  bottom: 0;
}
.photo-container img {
  display: block;
  border: 1px solid var(--slate);
  max-width: 100%;
  max-height: calc(95vh - 25px - 24px);
  margin-left: auto;
  margin-right: auto;
}
img._35mm.orientation-horizontal { aspect-ratio: 3 / 2; }
img._35mm.orientation-vertical { aspect-ratio: 2 / 3; }
img.orientation-square { aspect-ratio: 1; }

.album-nav {
  padding: 0;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 20px;
  width: 100%;
  line-height: 1;
}
.album-nav a { color: white; text-decoration: none;}
.album-nav a:visited { color: var(--white); }
.album-nav a:hover, .album-nav a:focus { color: var(--blood-red); }

.album-nav span {
  font-size: 1.5em;
  text-align: center;
  display: inline-block;
  padding-right: 10vw;
  padding-left: 10vw;
  /*width: calc(100% / 3 - 1px);*/
}

section.photo-info {
  text-align: center;
}

/** Photo Index Page **/
section.archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, 202px);
  grid-auto-rows: 202px;
  column-gap: 30px;
  row-gap: 30px;
  place-items: center;
  justify-content: center;
}

.album-link {
  height: 202px;
  width: 202px;
  text-align: left;
  position: relative;
  border: 1px solid var(--slate);
}

.album-link .thumbnail {
  margin: 0;
  height: auto;
  width: auto;
}

@media (hover: hover){
  .album-link a {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hide;
    opacity: 0;
  }
  .album-link .album-title {
    text-align: center;
    display: table-cell;
    height: 200px;
    width: 200px;
    vertical-align: middle;
    padding: 5px;
  }
  .album-link a:hover {
    background-color: var(--blood-red);
    color: var(--black);
    opacity: 0.9;
    text-decoration: none;
  }
  .album-link:hover, .album-link:focus {
    border: 1px solid var(--white);
  }
}
@media (hover: none) {
  .album-link {
    text-align: left;
    position: relative;
    display: inline-block;
    margin: 10px;
    border: 1px solid var(--slate);
  }
  .album-link a {
    color: var(--silver);
    position: relative;
    overflow: hide;
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
    left: 0;
  }
  .album-link a,
  .album-link a:visited,
  .album-link a:focus {
    color: var(--silver);
  }
  .album-link .album-title {
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    height: auto;
    width: 200px;
    position: absolute;
    bottom: 0;
    left: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/** Instagram Links **/
.links-container {
  text-align: center;
  padding: 5vh;
}
.links-container ul {
  width: min(80vw, 600px);
  list-style: none;
  margin-right: auto;
  margin-left: auto;
}
.links-container ul.pinned {
  margin-bottom: 3em;
}
.links-container ul a {
  text-decoration: none;
  display: block;
  margin: 10px;
  text-shadow: var(--black) 0 0 10px;
}
.links-container li {
  border: 1px solid var(--blood-red);
  padding: 20px;
  background-color: rgba(100, 0, 0, 0.2);
}
.links-container .insta-link-with-background {
  backdrop-filter: blur(1.5px) grayscale(.5) brightness(15%);
  -webkit-backdrop-filter: blur(1.5px) grayscale(.5) brightness(15%);
}

.links-container i {
  display: table-cell;
}
.links-container span.insta-link-text {
  display: table-cell;
  text-align: center;
  padding-left: 1em;
}

/** Site Nav (responsive) */

.site-nav input[type='checkbox'] { display: none; }
@media only screen and (max-width: 599px) {
  ul.nav-menu {
    max-height: 0px;
    overflow: hidden;
    transition: max-height .25s ease-in-out;
    margin-top: 50px;
    margin-bottom: 0;
  }

  .site-nav li {
    margin-right: 2vw;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
  }

  #collapser:checked ~ .nav-menu {
    max-height: 100vh;
  }

  /** Hamburger menu **/
  .nav-collapser {
    position: absolute;
    top: 2vh;
    right: 2vh;
    display: inline-block;
    text-align: right;
    width: 30px;
    height: 30px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
  }

  .nav-collapser span {
    display: inline-block;
    position: absolute;
    right: 0vh;
    height: 2px;
    width: 30px;
    background: var(--blood-red);
    border-radius: 2px;
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  .nav-collapser span:nth-child(1) {
    top: 0px;
  }

  .nav-collapser span:nth-child(2) {
    top: 10px;
  }

  .nav-collapser span:nth-child(3) {
    top: 20px;
  }

  #collapser:checked ~ .nav-collapser span:nth-child(1) {
    top: 10px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #collapser:checked ~ .nav-collapser span:nth-child(2) {
    opacity: 0;
    right: -60px;
  }

  #collapser:checked ~ .nav-collapser span:nth-child(3) {
    top: 10px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }
}

@media only screen and (min-width: 600px) {
  .nav-collapser, .nav-collapser span { display: none; height: 0; width: 0;}

  ul.nav-menu {
    margin: 0;
    padding: 0;
  }

  .site-nav li {
    display: inline-block;
    margin-left: 0.5em;
    margin-right: 0.5em;
  }
}

@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  :root {
    /*--base-font-size: 2em;*/
  }
}
