.project-container {
  padding: 1px;
}

.project {
  padding: var(--page-margin);
  margin: 2rem auto;
  max-width: var(--max-width);
}

.project .intro {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.project .intro.link a {
  color: #222;
  text-decoration: none;
  font-size: 1.2rem;
}

.project img {
  max-width: 100%;
  border: var(--image-border);
  border-radius: 8px;
}

.project h1 {
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 800;
}

.project h2 {
  margin: 60px 0 20px;
  font-size: 28px;
}

.project p,
.project ul,
.project li {
  margin: .5rem 0;
  max-width: 700px;
  color: var(--text-secondary);
}

.video-container {
  position: relative;;
  padding-bottom: 56.25%; /*16:9*/
  height:0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.button-container {
  display: flex;
  margin: 1rem 0 2.8rem;
}

.button-item {
  margin: 0 1rem 0 0;
}

@media only screen and (max-width: 600px) {
  .button-container {
    flex-direction: column;
  }

  .button-item {
    margin: 0 0 1rem 0;
  }
}

.darkButton {
  background: #333;
}

.lightButton {
  background: #fff;
}

.darkButton, .lightButton {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  margin: 5px;
  border: 1px solid rgba(0,0,0,.2);
}

.darkMode .lightImage,
.lightMode .darkImage {
  display: none;
}

.darkMode .darkButton,
.lightMode .lightButton {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.projectImage {
  cursor: zoom-in;
}

.zoomContainer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  cursor: zoom-out;
}

.zoomContainer.show {
  display: block;
  z-index: 9999;
}

.zoomContainer #zoomImg {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.imageContainer {
  position: relative;
}

.modeContainer {
  position: absolute;
  bottom: 7px;
  left: 7px;
}

.project ul li {
  list-style-type: square;
  margin: 1.2rem 0 1rem 1.2rem;
}

video {
  max-width: 300px;
  margin: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.details {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 20px 0 80px;
}

@media only screen and (max-width: 600px) {
  .details {
    flex-direction: column;
  }
}