:root {
  font-family: Inter, sans-serif; /* Inter is the default font */
  font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */
  font-size: 16px;
  --off-white: #f8f8f8;
  --light-grey: #c6c6c6;
  --medium-grey: #a8a8a8;
  --dark-grey: #525252;
  --off-black: #020202;
  --pageheight: 100vh; /* Placeholder for viewport height, updated by JS */
  --pagewidth: 100vw; /* Placeholder for viewport width updated by JS */
  --containerheight: 100vh /* Placeholder for container height, updated by JS */;
  --headnavheight: 10vh; /* Placeholder for headnav height, updated by JS */
  --photonavheight: 10vh; /* Placeholder for photonav height, updated by JS */
  --captionheight: 10vh; /* Placeholder for caption height, updated by JS */
  --imageheight: calc(
    var(--containerheight) - (2 * var(--headnavheight)) -
      (2 * var(--photonavheight)) - var(--captionheight)
  );
  --aboutheight: calc(
    var(--containerheight) - (2 * var(--headnavheight)) -
      (2 * var(--photonavheight))
  );
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

::selection {
  background-color: var(--off-black);
  color: var(--off-white);
}

.link {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit color from parent */
  font-family: inherit; /* Inherit font family from parent */
  font-size: inherit; /* Inherit font size from parent */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: var(--off-white);
  padding: 15px;
  font-family: Inter Variable, sans-serif;
  font-weight: 750;
  font-size: 1.25rem;
  font-optical-sizing: auto;
  letter-spacing: -0.05rem;
  color: var(--off-black);
}

.container {
  /* border: 1px solid black; */
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.caption {
  /* border: 1px solid blue; */
  width: 100%;
  font-family: IBM Plex Mono, monospace;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0rem;
  color: var(--dark-grey);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.date {
  text-align: left;
}

.location {
  text-align: right;
}

/* SLIDESHOW */

.slidecontainer {
  /* border: 1px solid red; */
  width: 100%;
  /* position: absolute;
  top: 50%;
  transform: translateY(-50%); */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .slideshow {
  border: 10px solid green;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.slide {
  /* border: 1px solid purple; */
  /* margin: auto; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image {
  /* border: 1px solid yellow; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.image img {
  object-fit: contain;
  max-width: 100%;
  /* max-height: 80vh; */
  max-height: var(--imageheight);
  width: auto;
  height: auto;
}

/* TEXT POSITIONING */

.headnav {
  /* border: 1px solid orange; */
  display: flex;
  justify-content: space-between;
}

.photonav {
  /* border: 1px solid green; */
  display: flex;
  justify-content: space-between;
}

.navwrap {
  /* border: 1px solid purple; */
  width: 30%;
}

.navwrap.left {
  text-align: left;
}

.navwrap.center {
  text-align: center;
}

.navwrap.right {
  text-align: right;
}

#archive {
  position: relative;
}

#jerryliu {
  position: relative;
}

#recent {
  position: relative;
}

#count {
  color: var(--light-grey);
  font-feature-settings: "cv01";
}

/* WARNING */

.warning {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  color: var(--off-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* MEDIA QUERIES */

/* @media (max-width: 1120px) {
} */

/* @media (max-width: 750px) {
} */

/* Decrease Image Height for Mobile */
@media (max-width: 600px), (max-height: 650px) {
  :root {
    --imageheight: calc(
      var(--containerheight) - (3 * var(--headnavheight)) -
        (3 * var(--photonavheight)) - var(--captionheight)
    );
  }
  body {
    font-size: 1rem;
  }
  .caption {
    font-size: 0.5rem;
  }
}

/* Too Small To Display */
@media (max-width: 350px), (max-height: 650px) {
  body {
    background-color: var(--off-black);
  }
  .container {
    display: none;
  }
  .warning {
    visibility: visible;
  }
}

/* ABOUT PAGE */

.abouttext {
  /* border: 1px solid red; */
  aspect-ratio: 2 / 3;
  max-width: 100%;
  max-height: var(--aboutheight);
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.copyright {
  color: var(--medium-grey);
}
