* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: rgb(219, 219, 219);
  user-select: none;
}

body {
  display: flex;
  align-items: center;
}

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

nav {
  padding: 0 48px 0 10%;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  background-color: white;
  z-index: 99;
}

nav ul {
  list-style: none;
  display: flex;
  flex-flow: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}

nav li {
  cursor: pointer;
  transition: all 500ms;
  min-width: 5em;
  text-align: center;
}

nav li:hover {
  transform: scale(1.05);
}

nav li:last-of-type {
  margin-block-start: 32px;
}

@media only screen and (max-width: 1000px) {
  body {
    flex-flow: column;
  }

  nav {
    height: fit-content;
    width: 100%;
    padding-top: 24px;
  }

  nav ul {
    gap: 8px;
    flex-flow: row;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  nav li {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav li:last-of-type {
    margin-block-start: 0;
  }
}

.gallery {
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  overflow: auto;
  display: grid;
  grid-template-columns: auto auto auto auto;
  padding: 16px;
  gap: 16px;
  max-height: 100vh;
  transition: all 500ms;
}

@media only screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: auto auto auto;
  }
}

@media only screen and (max-width: 450px) {
  .gallery {
    grid-template-columns: auto auto;
  }
}

@media only screen and (max-width: 300px) {
  .gallery {
    grid-template-columns: auto;
  }
}

.gallery img {
  transition: all 500ms;
  cursor: pointer;
  width: 100%;
}

.gallery img:not(:hover) {
  filter: grayscale(1);
}

.gallery img:hover {
  filter: grayscale(0) drop-shadow(0px 6px 6px 0.0000007);
}

.picture {
  width: 100vw;
  height: 100vh;
  padding: 50px 50px 100px 50px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  position: fixed;
  z-index: 100;

  transition: all 500ms;
}

@media only screen and (max-width: 1000px) {
  .picture {
    padding: 40px 40px 120px 40px;
  }
}

@media only screen and (max-width: 600px) {
  .picture {
    padding: 20px 20px 140px 20px;
  }
}

.picture img {
  transition: all 500ms;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.caption {
  z-index: 101;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 500ms;
  max-width: 500px;
}

.caption span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: black;
  vertical-align: middle;
  margin-right: 4px;
  margin-left: 4px;
}

.about {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 500ms;
}

.about span {
  padding: 24px;
  word-break: normal;
  max-width: 600px;
  text-align: justify;
}

.about a {
  text-decoration: underline;
}

.hide {
  visibility: hidden;
  filter: blur(5px);
  opacity: 0;
  transition: all 500ms;
}
