@import url("https://fonts.googleapis.com/css2?family=Poiret+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap");
img {
  max-width: 100%;
}

section {
  display: flex;
  width: max-content;
  position: relative;
}

.block {
  background-color: #FCFCFC;
}

section > div {
  position: relative;
  z-index: 1;
}

.project .work {
  display: flex;
  flex-flow: row wrap;
  height: calc(100vh - 17px);
  width: auto;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-content: center;
  align-content: center;
}
.project .work-title {
  font-weight: normal;
  margin: 20px;
  color: #000;
}
.project .work-title-inner {
  text-align: center;
}
.project .work-title-inner .caption {
  font-size: 1.25rem;
  text-transform: uppercase;
  border-bottom: 1px solid #aaaaaa;
  padding-bottom: 5px;
  margin-bottom: 10px;
  position: relative;
}
.project .work-title-inner .caption:before {
  content: "";
  position: absolute;
  left: calc( 50% - 3px);
  bottom: -3px;
  height: 6px;
  width: 6px;
  background: #aaaaaa;
}
.project .work-title-inner .subtitle {
  font-size: 0.875rem;
  position: relative;
  width: 100%;
  color: #888;
}
.project .work-info {
  font-size: 0.875rem;
  color: #666666;
  margin: 20px;
  max-width: 350px;
}
.project .work-photos {
  margin: auto;
  object-fit: contain;
}
.project .work-text {
  margin-bottom: 20px;
}
.project .work-back {
  text-transform: uppercase;
  padding: 5px 6px;
  position: fixed;
  right: 60px;
  bottom: 15px;
}
.project .smallInfo {
  text-align: justify;
  position: relative;
}
.project .smallInfo h1 {
  margin: 10px 0;
}
.project .smallInfo p {
  margin-bottom: 20px;
}

.btn {
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.work-btn {
  position: relative;
  z-index: 22;
}
.work-btn:hover {
  border: none;
}
.work-btn:before, .work-btn:after {
  position: absolute;
  content: "";
  width: 0%;
  height: 0%;
  border: 0.75px solid;
  z-index: -1;
  transition: all 0.3s ease;
}
.work-btn:before {
  top: 2px;
  left: 2px;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-top-color: #716650;
  border-left-color: #716650;
}
.work-btn:after {
  bottom: 0;
  right: 0;
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: #716650;
  border-right-color: #716650;
}
.work-btn:hover:before, .work-btn:hover:after {
  border-color: #716650;
  height: 100%;
  width: 100%;
}

.back-text {
  font-size: 0.75rem;
  display: block;
}

@media only screen and (min-width: 1101px) {
  .project .work-info {
    padding: 20px;
    max-width: 350px;
  }
  .project .work-content {
    padding: 0 190px;
  }
  .project .work-photos img {
    width: auto;
    height: calc(100vh - 200px);
    margin-right: 50px;
  }
}
@media screen and (max-height: 500px) {
  .block {
    margin: 0 50px;
  }
  .block.project {
    margin-top: 100px;
    margin-bottom: 40px;
  }

  .project {
    -webkit-flex-direction: column;
    flex-direction: column;
    width: 100%;
  }
  .project .work {
    margin: 0 auto;
    max-width: 1200px;
    height: auto;
  }
  .project .work-content {
    padding: 0;
    margin: 0 auto;
  }
  .project .work-photos {
    margin: 0 auto;
    width: 100%;
    height: auto;
  }
  .project .work-photos img {
    width: 100%;
    height: auto;
    margin-right: 0px;
    margin-bottom: 25px;
  }
  .project .smallInfo {
    padding: 0;
    width: 100%;
  }
}
@media screen and (max-width: 1100px) {
  .block {
    margin: 0 50px;
  }
  .block.project {
    margin-top: 80px;
    margin-bottom: 40px;
  }

  .project {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .project .work {
    height: auto;
  }
  .project .work-info {
    margin: 20px;
    max-width: 100%;
  }
  .project .work-content {
    padding: 0;
    margin: 0 auto;
  }
  .project .work-photos {
    margin: 0;
    width: 100%;
    height: auto;
  }
  .project .work-photos img {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
  }
  .project .smallInfo {
    padding: 0;
    width: 100%;
  }
}
@media screen and (max-width: 640px) {
  .block {
    margin: 0 25px;
  }

  .project .work {
    min-height: auto;
  }
  .project .work-info, .project .work-title {
    margin: 20px 0;
  }
  .project .work-content .title {
    -webkit-justify-content: center;
    justify-content: center;
  }
  .project .work-photos {
    margin: auto;
  }
  .project .work-photos img {
    width: 100%;
    height: auto;
  }
  .project .work-back {
    right: 25px;
  }
  .project .smallInfo {
    width: 100%;
  }
}
