* {
    margin: 0;
    padding: 0;
}

body {
  font-family: arial, helvetica, sans-serif;
  font-size: 14px;
  color: white;
  background-color: #303032;
  min-height: 100vh;
  height: 100%;
}

/* Header */

.banner img {
  display: flex;
  height: 100%;
  width: auto;
  max-height: 100px;
}

.banner a {
  padding-right: 0;
}

nav {
  background-image: linear-gradient(180deg, #394c6b, #2e3654, #1c1e36);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  box-shadow: 0 10px 10px rgba(0,0,0,0.2);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
    height: 100px;
}

nav a {
    font-weight: bold;
    height: 100%;
    padding: 0 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
}

nav a:hover {
  background-image: linear-gradient(180deg, rgba(46, 54, 84, 0), #1c1e36);
  cursor: pointer;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 600;
  background-image: linear-gradient(180deg, #2e3654, #1c1e36);
  box-shadow: -10px 0 10px rgba(0,0,0,0.1);  
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.sidebar li:last-child {
  max-height: 50px;
  margin-top: auto;
  margin-bottom: 50px;
}

.epithet {
  white-space: nowrap;
  overflow: hidden;
  margin: 24px;
  line-height: 24px;
  padding-left: 12px;
  border-left: solid white;
}

.menu-button {
  display: none;
}

/* Showcase */

.showcase-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: baseline;
  margin-top: 100px;
  z-index: 0;
  overflow: hidden;
}

.showcase-container img {
  padding: 0;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.render {
  position: absolute;
  left: 0;
  top: 0;
  transition: .5s ease;
  z-index: 1;
}

.showcase {
  position: relative;
  width: 100%;
}

.showcase-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-image: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0), rgba(20,20,20,1));
  z-index: 2;
}

.showcase:hover .showcase-overlay {
  opacity: 1;
}

.showcase:hover .render {
  transform: scale(1.05);
}

.showcase-text {
  color: white;
  font-size: 20px;
  position: absolute;
  bottom: 5%;
  left: 5%;
  padding-left: 15px;
  border-left-style: solid;
}

.showcase-text:hover {
  text-decoration: underline;
}

/* Page Title */

.page-title {
  position: relative;
  font-size:  20px;
  text-align: center;
  margin: auto;
  padding: 20px;
  margin-top: 100px;
}

/* Portfolio */

.portfolio-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  z-index: 0;
  overflow: hidden;
}

.portfolio-entry{
  display: flex;
  margin: 30px auto;
}

.portfolio-thumb a {
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 15px;
  border: #7297d1 solid;
  transition: 0.5s ease;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.thumb-1 img {
  transform: translateX(-55px);
  zoom: 1.5;
}

.thumb-2 img {
  object-position: 50% 10%;
}

.thumb-3 img {
  object-position: 50% 30%;
}

.thumb-4 img {
  object-position: 50% 40%;
}

.portfolio-blurb {
  max-width: 40vw;
  padding: 0 30px;
}

.portfolio-blurb h1 {
  padding: 20px 0;
}

.portfolio-thumb a:hover {
  transform: scale(1.025);
  border: white solid;
}

/* Artwork Pages */

.artwork-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.artwork-gallery {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.artwork-gallery img {
  max-width: 75vw;
  max-height: 650px;
  margin: 0 30px;
  margin-top: 30px;
  box-shadow: 0 5px 5px 5px rgba(0,0,0,0.2);
}

.artwork-gallery figcaption {
  padding: 2px;
  color: white;
  font-style: italic;
  text-align: center;
}

.artwork-container figure {
  position: relative;
}

.artwork-expand {
  position: absolute;
  bottom: 30px;
  right: 35px;
  height: 40px;
  width: 40px;
  opacity: 0.5;
  border: solid 3px;
  border-color: rgba(0,0,0,0);
  background-color: #303032;
  border-radius: 5px;
  transition: .5s ease;
  z-index: 50;
}

.artwork-expand:hover {
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}

.artwork-description {
  position: sticky;
  top: 100px;
  max-width: 650px;
  padding: 30px;
  align-self: flex-start;
  height: auto;
}

.artwork-description p {
  padding-bottom: 15px;
  text-align: justify;
}

.artwork-description li {
  list-style: none;
  padding: 5px 10px;
}

/** Lightbox **/

.lightbox-container {
  display: none;
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  padding: 20px 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: auto;
  padding: 0;
  width: fit-content;
  max-width: 1200px;
}

.lightbox-close {
  color: white;
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 35px;
  font-weight: bold;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-slides {
  display: none;
}

.lightbox-slides img {
  max-height: 90vh;
  max-width: 90vw;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 0;
  width: auto;
  height: 100%;
  padding: 0 35px;
  margin-top: 0;
  
  transition: 0.6s ease;
  user-select: none;
}

.lightbox-next {
  right: 0;
}

.lightbox-container p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}



.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0,0,0,0.5);
}

.lightbox-count {
  color: white;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/** Floating Buttons **/

.floating-nav-container {
  position: sticky;
  bottom: 20px;
  left: 20px;
  margin: 0 20px;
}

.back-button {
  width: 50px;
  height: 50px;
  background-color: #2e3654;
  border-radius: 50%;
  box-shadow: 0 10px 10px rgba(0,0,0,0.2);
  z-index: 99;
  margin-bottom: 20px;
}

.back-button:hover {
  transition: .5s ease;
  background-color: #394c6b;
  transform: scale(1.1);
}

.to-top-button {
  width: 50px;
  height: 50px;
  background-color: #2e3654;
  border-radius: 50%;
  box-shadow: 0 10px 10px rgba(0,0,0,0.2);
  z-index: 99;
  margin-bottom: 20px;
}

.to-top-button:hover {
  transition: .5s ease;
  background-color: #394c6b;
  transform: scale(1.1);
}

/* Footer */

.footer {
  color: white;
  border-top: solid white;
  position: relative;
  padding: 25px;
  background-image: linear-gradient(180deg, #2e3654, #1c1e36);
  box-shadow: 0 50vh 0 50vh #1c1e36;
  z-index: 1;
}

.socials {
  display: flex;
  align-items: center;
}

.footer svg {
  width: 100%;
  height: auto;
  max-width: 30px;
  padding-left: 10px;
  transition: .5s ease;
}

.footer svg:hover {
  transform: scale(1.2);
}

@media (max-width: 800px) {
    .banner img {
        max-width: 50vw;
        height: auto;
    }
    .menu-button {
        display: block;
    }
    .hideOnMobile {
        display: none;
    }
    .artwork-description {
    max-width: 75vw;
  }
}

@media screen and (max-width: 700px) {
  .portfolio-entry {
      margin: 20px auto;
      flex-direction: column;
    }
  .portfolio-container {
      flex-direction: column;
    }
  .portfolio-blurb {
      max-width: 300px;
      padding: 0;
    }
}

@media screen and (max-width: 600px) {
    .sidebar {
      width: 50%;
    }
    .showcase-container {
      flex-direction: column;
    }
}