@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;
  position: relative;
}

.block {
  background-color: #FCFCFC;
}

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

.project .work {
  display: flex;
  flex-flow: row wrap;
  width: auto;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-content: center;
  align-content: center;
}
.project .work-content {
  background: #efefef;
  padding: 0 50px;
}
.project .work-title {
  width: 250px;
  font-weight: normal;
  margin: 0 auto 40px;
  color: #000;
}
.project .work-title-inner {
  text-align: center;
}
.project .work-title-inner .caption {
  font-size: 1.15rem;
  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 {
  max-width: 300px;
  font-size: 0.875rem;
  color: #666666;
}
.project .work-iframe {
  width: calc(100vw - 500px);
  padding: 0 50px;
  box-sizing: border-box;
}
.project .work-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.project .work-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.project .work-photos {
  margin: 0 50px;
  object-fit: contain;
}
.project .work-text {
  margin-bottom: 20px;
}
.project .work-back {
  text-transform: uppercase;
  padding: 5px 6px;
  position: fixed;
  right: 56px;
  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 screen and (max-height: 500px) {
  .block.project {
    margin-top: 100px;
    min-height: calc(100vh - 136px);
  }

  .project {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .project .work {
    height: auto;
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .project .work-content {
    padding: 20px 0;
    width: 100%;
  }
  .project .work-info {
    margin: 0 auto;
    width: calc(100% - 100px);
    max-width: 1200px;
    box-sizing: border-box;
  }
  .project .work-photos {
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: 25px auto;
  }
  .project .work-photos img {
    width: 100%;
    height: auto;
    margin: 25px 50px;
  }
  .project .work-if {
    width: 100%;
    display: block;
  }
  .project .work-iframe {
    width: calc(100% - 100px);
    max-width: 1200px;
    padding: 50px 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .project .work.overHeight {
    height: auto;
  }
  .project .smallInfo {
    padding: 0;
    width: 100%;
  }
}
@media screen and (min-width: 1101px) and (min-height: 501px) {
  .project .work {
    height: 100vh;
  }
  .project .work.overHeight {
    height: calc(100vh - 17px);
  }
  .project .work-photos img {
    width: auto;
    height: calc(100vh - 200px);
    margin-right: 50px;
  }
  .project .work-photos img:last-child {
    margin: 0;
  }
  .project .work-if {
    width: calc(100vw - 400px);
  }
  .project .work-iframe {
    width: calc(100vw - 400px);
  }
}
@media screen and (min-width: 1440px) and (min-height: 501px) {
  .project .work-content {
    padding: 0 100px;
  }
  .project .work-if {
    width: calc(100vw - 500px);
  }
  .project .work-iframe {
    width: calc(100vw - 500px);
    overflow: hidden;
  }
}
@media screen and (min-width: 1101px) and (min-height: 501px) and (max-height: 880px) {
  .project .work-if {
    width: calc(100vw - 400px);
  }
  .project .work-iframe {
    margin: 0 auto;
    width: 150vh;
  }
}
@media screen and (min-width: 1440px) and (min-height: 501px) and (max-height: 880px) {
  .project .work-if {
    width: calc(100vw - 500px);
  }
  .project .work-iframe {
    margin: 0 auto;
    width: 150vh;
  }
}
@media screen and (max-width: 1100px) {
  .block.project {
    margin-top: 80px;
    min-height: calc(100vh - 136px);
    overflow: hidden;
  }

  .project {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .project .work {
    height: auto;
  }
  .project .work-content {
    padding: 20px 0;
  }
  .project .work-info {
    margin: 0 50px;
    max-width: inherit;
  }
  .project .work-photos {
    margin: 25px auto;
    height: auto;
  }
  .project .work-photos img {
    max-width: calc(100% - 100px);
    height: auto;
    margin: 25px 50px;
  }
  .project .work-if {
    width: 100%;
    display: block;
  }
  .project .work-iframe {
    padding: 50px 0;
    margin: 0 auto;
    width: calc(100% - 100px);
  }
  .project .smallInfo {
    padding: 0;
    width: 100%;
  }
}
@media screen and (max-width: 640px) {
  .project .work {
    width: 100vw;
  }
  .project .work-content {
    max-width: 100%;
  }
  .project .work-info {
    margin: 0 25px;
    width: calc(100% - 50px);
  }
  .project .work-photos img {
    max-width: calc(100% - 50px);
    margin: 0 25px 25px;
  }
  .project .work-if {
    width: 100%;
  }
  .project .work-iframe {
    padding: 50px 0;
    margin: 0 auto;
    width: calc(100% - 50px);
  }
  .project .work-back {
    right: 30px;
  }
}
