/* work */
.work {
  margin-bottom: var(--section-gutter);
}
.work h1 {
  margin-top: 10px;
}
.work h1 + h5 {
  margin-top: -17px;
}
.work .project {
  display: flex;
  margin-top: 30px;
  position: relative;
}
.work .project .picture {
  flex: 2;
  overflow: hidden;
  position: relative;
}
.work .project .left {
  cursor: url(../arrow-left.png), pointer;
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
}
.work .project .right {
  cursor: url(../arrow-right.png), pointer;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 25%;
  padding: 0 28px;
  display: flex;
  justify-content: center;
}
.work .project .dots {
  display: none;
  position: absolute;
  bottom: 20px;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.work .project .picture:hover .dots {
  display: flex;
}
.work .project .dots .dot {
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: white;
}
.dot:not(:last-child) {
  margin-right: 10px;
}
.work .project .dots .dot.active {
  background-color: var(--gold);
}
.work .project .picture .controls {
  position: absolute;
  font-size: 85px;
  z-index: 1;
}
.work .project .picture img {
  width: 100%;
}
.work .project .description {
  transform: translateY(20px);
  opacity: 0;
  transition: all 1s;
  flex: 1;
  padding-left: 30px;
}
@media only screen and (max-width: 768px) {
  .work .project {
    flex-direction: column-reverse;
  }
  .work .project .left, .work .project .right {
    display: none;
  }
  .work .project .picture {
    margin-left: calc(var(--body-padding) * -1);
    margin-right: calc(var(--body-padding) * -1);
  }
  .work .project .description {
    padding-left: 0;
  }
}
