@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;
}

.block {
  background-color: #FCFCFC;
  height: calc(100vh - 17px);
}

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

.picture .info-content {
  height: calc(100vh - 18px);
  text-align: center;
  margin: auto;
  -moz-transform: translateX(0px);
  -ms-transform: translateX(0px);
  -webkit-transform: translateX(0px);
  transform: translateX(0px);
}
.picture .info-img {
  height: 100%;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.picture .info-img img {
  position: relative;
  float: left;
}
.picture .info-img .img1 {
  clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%);
  -moz-transition: clip-path 0.6s;
  -o-transition: clip-path 0.6s;
  -webkit-transition: clip-path 0.6s;
  transition: clip-path 0.6s;
}
.picture .info-img .img1.show {
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}

.service {
  width: 65vh;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: #efefef;
}
.service .info-content {
  display: flex;
  flex-flow: row wrap;
  width: auto;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  -webkit-flex-direction: column;
  flex-direction: column;
}
.service .info-text .smallInfo {
  max-width: 400px;
  width: auto;
  text-align: center;
  position: relative;
}
.service .info-text .smallInfo .caption {
  font-size: 1.25rem;
}
.service .info-text .smallInfo .subtitle {
  font-size: 0.875rem;
}
.service .info-img {
  object-fit: contain;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
}

.news {
  width: auto;
  -webkit-align-content: center;
  align-content: center;
  -webkit-align-items: center;
  align-items: center;
  margin: 0 100px;
}
.news-wrap {
  display: flex;
}
.news-img {
  height: 56.5vh;
  width: 100vh;
  overflow: hidden;
}
.news-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 100px 0 0;
}
.news-item:hover .news-img img {
  transform: scale(1.1);
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.news-info {
  position: relative;
}
.news-info:after {
  content: "";
  height: 100%;
  width: 100%;
  background-color: #666;
  position: absolute;
  right: -15px;
  bottom: -15px;
  z-index: -1;
}
.news-title {
  position: absolute;
  top: calc(100% + 30px);
  left: 0;
  max-width: 90%;
}
.news-date {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  margin: 20px;
  text-transform: uppercase;
}
.news-view {
  position: absolute;
  top: calc(100% + 30px);
  right: 0;
}

@media screen and (max-height: 500px) {
  .picture {
    display: none;
  }

  .block {
    padding: 0 65px 0 50px;
    height: auto;
  }
  .block.service {
    margin-top: 100px;
    padding: 20px 0;
    width: 100%;
  }

  .news {
    margin-bottom: 50px;
    width: calc(100% - 115px );
  }
  .news-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .news-item {
    width: calc(50% - 100px);
    margin: 50px;
  }
  .news-img {
    width: 100%;
    height: 56.5%;
  }
}
@media screen and (min-width: 1101px) and (min-height: 501px) {
  .news-item:last-child {
    margin: 0;
    margin-right: 15px;
  }

  img {
    width: auto;
    height: 100%;
  }
}
@media screen and (max-width: 1100px) and (min-height: 501px) {
  .news-item:last-child {
    margin: 0;
    margin-bottom: 55px;
  }
}
@media screen and (max-width: 1100px) {
  .picture {
    display: none;
  }

  .title {
    margin-bottom: 20px;
  }

  .block {
    padding: 0 65px 0 50px;
    height: auto;
  }
  .block.service {
    margin-top: 80px;
    padding: 20px;
    width: 100%;
  }

  .news {
    margin: 50px 0;
    width: calc(100% - 115px);
    height: calc(56.5% - 115px);
  }
  .news-wrap {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .news-item {
    margin: 0 0 100px;
  }
  .news-img {
    width: 100%;
    height: 56.5%;
  }
}
@media screen and (max-width: 1100px) and (max-height: 500px) {
  .block {
    padding: 0 50px;
  }

  .news {
    margin: 0;
    width: calc(100% - 100px);
    height: calc(56.5% - 100px);
  }
  .news-item {
    margin: 50px 0;
    width: calc(100% - 15px);
  }
  .news-date {
    margin: 0;
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}
@media screen and (max-width: 640px) {
  .block {
    padding: 0 25px;
    width: calc(100% - 50px);
  }

  .news {
    width: calc(100% - 50px);
    height: calc(56.5% - 50px);
  }
  .news-item {
    width: calc(100% - 15px);
  }
  .news-date {
    margin: 0;
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}
