﻿.index-projects-box {
  width: 100%;
  display: block;
  position: relative;
  background-color: #f5f5f5;
}
.index-projects-all-box {
  width: 1300px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  position: relative;
  font-size: 0;
  box-sizing: border-box;
  padding-top: 40px;
  padding-bottom: 20px;
}
.index-projects-title-box {
  margin-bottom: 40px;
}
.index-projects-title-en {
  font-size: 48px;
  font-family: "Noto Sans TC";
  font-weight: 700;
  color: #000;
  letter-spacing: 2px;
  display: inline-block;
  vertical-align: bottom;
}
.index-projects-title-ch {
  font-size: 16px;
  font-family: "Noto Sans TC";
  color: #888;
  letter-spacing: 2px;
  display: inline-block;
  vertical-align: bottom;
  line-height: 52px;
  margin-left: 5px;
}
.index-projects-info {
  width: 640px;
  display: inline-block;
  vertical-align: top;
  margin-left: 20px;
  margin-bottom: 40px;
}
.index-projects-info:nth-child(2n + 1) {
  margin-left: 0;
}
.index-projects-info-img {
  width: 320px;
  height: 280px;
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.3s linear;
}
.index-projects-info-img:after {
  /* content: 'BEFORE'; */
  display: block;
  font-size: 16px;
  color: #fff;
  font-family: "Roboto";
  font-weight: 500;
  position: absolute;
  bottom: 0;
  left: 10px;
  letter-spacing: 1px;
}
.index-projects-info-img:nth-child(2):after {
  /* content: 'AFTER'; */
  left: initial;
  right: 10px;
}
.index-projects-info-img:before {
  content: "";
  width: 100%;
  height: 100%;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+64,000000+100&0+63,0.8+100 */
  background: -moz-linear-gradient(
    top,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.02) 80%,
    rgba(0, 0, 0, 0.8) 100%
  ); /* FF3.6-15 */
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.02) 80%,
    rgba(0, 0, 0, 0.8) 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.02) 80%,
    rgba(0, 0, 0, 0.8) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#cc000000',GradientType=0 ); /* IE6-9 */
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s linear;
}
.index-projects-info:hover .renovation-info-img:before {
  background-color: rgba(255, 255, 255, 0.5);
}

.index-projects-info-text-box {
  box-sizing: border-box;
  padding: 5px 10px;
  background-color: #fff;
}
.index-projects-info-tag {
  font-size: 14px;
  border: 1px solid #d1d1d1;
  text-align: center;
  letter-spacing: 1px;
  display: inline-block;
  box-sizing: border-box;
  padding: 0 10px;
  background-color: #905e27;
  color: #fff;
  transition: all 0.3s linear;
}
.index-projects-info-text-t {
  font-size: 14px;
  color: #905e27;
  font-weight: bold;
  letter-spacing: 1px;
}
.index-projects-info-text-t span {
  font-weight: bold;
}
.index-projects-info-text {
  font-size: 16px;
  letter-spacing: 1px;
  min-height: 75px;
  max-height: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: all 0.3s linear;
}
.index-projects-box .index-news-more-box {
  margin-top: 0;
}

/*---------------------hover-----------------------*/
.index-projects-info:hover .index-projects-info-text {
  color: #905e27;
}

@media only screen and (max-width: 1300px) {
  .index-projects-all-box {
    width: 1200px;
  }
  .index-projects-title-en {
    font-size: 44px;
  }
  .index-projects-title-ch {
    line-height: 50px;
  }
  .index-projects-info {
    width: 590px;
  }
  .index-projects-info-img {
    width: 295px;
    height: 258px;
  }
  .index-projects-info-text {
    font-size: 14px;
    min-height: 66px;
    max-height: 66px;
  }
}
@media only screen and (max-width: 1200px) {
  .index-projects-all-box {
    width: 1000px;
  }
  .index-projects-title-en {
    font-size: 40px;
  }
  .index-projects-title-ch {
    line-height: 46px;
  }
  .index-projects-info {
    width: 490px;
  }
  .index-projects-info-img {
    width: 245px;
    height: 214px;
  }
}

@media only screen and (max-width: 1000px) {
  .index-projects-all-box {
    width: 750px;
    padding-top: 0;
    padding-bottom: 20px;
  }
  .index-projects-title-en {
    font-size: 36px;
  }
  .index-projects-title-ch {
    line-height: 40px;
  }
  .index-projects-info {
    margin: 0;
  }
  .index-projects-info-img {
    width: 50%;
    height: 328px;
  }
  .index-projects-info-box .slick-dots {
    bottom: -32px;
  }
  .index-projects-title-box {
    padding-top: 20px;
    margin-bottom: 20px;
  }
  .index-projects-box .slick-dotted.slick-slider {
    margin-bottom: 40px;
  }
}
@media only screen and (max-width: 750px) {
  .index-projects-all-box {
    width: 550px;
  }
  .index-projects-title-en {
    font-size: 32px;
  }
  .index-projects-title-ch {
    line-height: 36px;
    font-size: 14px;
  }
  .index-projects-info-img {
    height: 240px;
  }
}
@media only screen and (max-width: 550px) {
  .index-projects-all-box {
    width: 400px;
  }
  .index-projects-title-en {
    font-size: 28px;
  }
  .index-projects-title-ch {
    line-height: 32px;
    font-size: 12px;
  }
  .index-projects-info-img {
    height: 175px;
  }
  .index-projects-info-text-t {
    font-size: 12px;
  }
  .index-projects-info-text {
    -webkit-line-clamp: 2;
    min-height: 44px;
    max-height: 44px;
  }
}
@media only screen and (max-width: 400px) {
  .index-projects-all-box {
    width: 300px;
  }
  .index-projects-title-en {
    font-size: 24px;
  }
  .index-projects-title-ch {
    line-height: 26px;
  }
  .index-projects-info-img {
    height: 131px;
  }
}

/*animation*/
/*<-------------動畫------------->*/

@media only screen and (min-width: 1001px) {
  .index-projects-title-box,
  .index-projects-info {
    opacity: 0;
  }
  .index-projects-title-box.anima {
    animation: fadeInDown 1s ease 0s both;
  }
  .index-projects-info.anima:nth-child(odd) {
    animation: fadeInLeft 1s ease 0s both;
  }
  .index-projects-info.anima:nth-child(even) {
    animation: fadeInRight 1s ease 0s both;
  }
}
