﻿.newlyweds-box{
    width: 100%;
    display: block;
    position: relative;
}
.newlyweds-all-box{
    width: 1700px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 100px 0;
    padding-bottom: 190px;
}
.newlyweds-info{
    width: 800px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-right: 100px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.1);
    transition: all .3s linear;
}
.newlyweds-info:nth-child(2n){
    margin-right: 0;
    top: 100px;
}
.newlyweds-info:nth-child(n + 3){
    margin-top: 100px;
}

.newlyweds-info-text-box{
    width: calc(100% - 140px);
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    padding: 40px 18px 40px 30px;
}
.newlyweds-info-name{
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 0.06em;
    color: #000;
    font-family: MyRecommendFont;
}

@font-face {
    font-family: MyRecommendFont;
    src: local("Noto Sans TC Medium");
    unicode-range: U+4E00-9FFF;
}
@font-face {
    font-family: MyRecommendFont;
    src: local("Roboto Medium");
    unicode-range: U+00-024F;
}
.newlyweds-info-star{
    font-size: 18px;
    letter-spacing: 0.2em;
    line-height: 26px;
    color: #ffd801;
    margin-top: 20px;
}
.newlyweds-info-text{
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 0.1em;
    color: #666;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    margin-top: 50px;
    /* overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; */
    overflow: auto;
    max-height: 150px;
    min-height: 150px;
}
.newlyweds-info-img-box{
    width: 140px;
    height: calc((450 / 400) * 140px);
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    position: relative;
}
.newlyweds-info-text .mCSB_inside>.mCSB_container{
    margin-right: 20px;
}
.newlyweds-info-text .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{
    background-color: #7e99bd;
    background-color: rgba(126, 153, 189, 0.75);
    filter: "alpha(opacity=75)";
    -ms-filter: "alpha(opacity=75)";
}
.newlyweds-info-text .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{
    background-color: #7e99bd;
    background-color: rgba(126, 153, 189, 0.85);
    filter: "alpha(opacity=85)";
    -ms-filter: "alpha(opacity=85)";
}
.newlyweds-info-text .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, 
.newlyweds-info-text .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{
    background-color: #7e99bd;
    background-color: rgba(126, 153, 189, 0.9);
    filter: "alpha(opacity=90)";
    -ms-filter: "alpha(opacity=90)";
}



@media only screen and (max-width: 1700px){
    .newlyweds-all-box{
        width: 1400px;
    }
    .newlyweds-info{
        width: 670px;
        margin-right: 60px;
    }
    .newlyweds-info:nth-child(2n){
        margin-right: 0;
        top: 60px;
    }
    .newlyweds-info:nth-child(n + 3){
        margin-top: 60px;
    }
}
@media only screen and (max-width: 1400px){
    .newlyweds-all-box{
        width: 1200px;
    }
    .newlyweds-info{
        width: 570px;
    }
}
@media only screen and (max-width: 1200px){
    .newlyweds-all-box{
        width: 1000px;
        padding-bottom: 100px;
    }
    .newlyweds-info{
        width: 485px;
        margin-right: 30px;
    }
    .newlyweds-info:nth-child(2n){
        margin-right: 0;
        top: 30px;
    }
    .newlyweds-info:nth-child(n + 3){
        margin-top: 30px;
    }
    .newlyweds-info-text-box {
        padding: 30px 18px 30px 20px;
    }
    .newlyweds-info-text {
        margin-top: 20px;
    }
}
@media only screen and (max-width: 1000px){
    .newlyweds-box{
        padding-top: 60px;
    }
    .newlyweds-all-box{
        width: 750px;
        padding: 60px 0;
    }
    .newlyweds-info:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 40px;
        top: 0;
    }
    .newlyweds-info:first-child{
        margin-top: 0;
    }
    .newlyweds-title-box{
        padding: 60px 0;
    }
}
@media only screen and (max-width: 768px){
    .newlyweds-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .newlyweds-info:nth-child(n){
        margin-top: 30px;
    }
    .newlyweds-info:first-child{
        margin-top: 0;
    }
    .newlyweds-title-box{
        padding: 40px 0;
    }
    .newlyweds-info-name {
        font-size: 22px;
        line-height: 20px;
    }
    .newlyweds-info-star {
        font-size: 16px;
        line-height: 22px;
        margin-top: 10px;
    }
    .newlyweds-info-text {
        line-height: 26px;
    }
}
@media only screen and (max-width: 550px){
    .newlyweds-box{
        padding-top: 50px;
    }
    .newlyweds-all-box{
        width: 95vw;
        padding: 20px 0;
    }
    .newlyweds-info:nth-child(n){
        margin-top: 10px;
    }
    .newlyweds-info:first-child{
        margin-top: 0;
    }
    .newlyweds-title-box{
        padding: 20px 0;
    }
    .newlyweds-info-text-box {
        width: calc(100% - 100px);
        padding: 20px 13px 20px 10px;
    }
    .newlyweds-info-name {
        font-size: 18px;
    }
    .newlyweds-info-star {
        font-size: 14px;
        margin-top: 5px;
    }
    .newlyweds-info-text {
        font-size: 12px;
        margin-top: 10px;
        line-height: 20px;
    }
    .newlyweds-info-img-box {
        width: 100px;
        height: calc((450 / 400) * 100px);
    }
}




@keyframes leftIn {
    from {
        -webkit-transform: translate3d(-10%, 0, 0);
        transform: translate3d(-10%, 0, 0);
    }
  
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
  }
@media only screen and (min-width: 1001px){
    /* .newlyweds-info{
        opacity: 0;
    }
    .newlyweds-info.anima{
        animation: fadeInRight 1s ease 0s 1 both ;
    }
    .newlyweds-info:nth-child(even).anima{
        animation: fadeInLeft 1s ease 0s 1 both ;
    }
    .newlyweds-info.anima .newlyweds-info-img-box::after{
        animation: leftIn 1s ease .4s 1 both ;
    }
    .newlyweds-info:hover{
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    } */
    
    .newlyweds-info:hover .main-bg{
        transform: scale(1.1);
    }
}

