.life_banner {
    background-image: url("../img/life/banner.webp");
}

.inner-container {
    background-color: #fff;
}

.inner-container::before {
    background-color: #eaebed;
}

.s1 {
    max-width: 1280px;
    margin: auto;
    position: relative;
}

.back_btn{
    color: #ffffff;
    background-color: #4b6866;
    display: inline-block;
    padding: 8px 9px;
    height: 35px;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.3s;
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 50;
    font-size: 18px;
}
.back_btn i{
    letter-spacing: 0;
}

.back_btn:hover{
    color: #4b6866;
    background-color: #fff;
}

.lifeCard {
    padding: 20px;
    width: 33%;
    margin: auto;
}

.lifeCard .lifeCard-title {
    font-family: 'Noto Serif TC', serif;
    font-weight: 400;
    font-size: 1vw;
    color: #3F3B3A;
    letter-spacing: 0.05em;
    margin-bottom: 0px;
    overflow: hidden;
    white-space: nowrap;
}

.lifeCard .lifeCard-title a {
    font-family: 'Noto Serif TC', serif;
    font-weight: 400;
    font-size: 18px;
    color: #3F3B3A;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.lifeCard .lifeCard-title a:hover {
    color: #9dc5bf;
}

.lifeCard .titleDiv .tag {
    color: #464646;
    font-family: 'Noto Serif TC', serif;
    font-size: 0.7vw;
    border: 1px solid #5A5858;
    padding: 0.1em 1em;
    letter-spacing: 0.1em;
    margin-left: 1vw;
    transition: 0.3s;
    white-space: nowrap;
    display: block;
}

.lifeCard .titleDiv .tag:hover {
    color: #fff;
    background-color: #5A5858;
}

.date {
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 16px;
    color: #464646;
    margin-bottom: 1rem;
}

.lifeCard .life_p_a{
    height: 100px;
    display: block;
}

.lifeCard p {
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #464646;
    text-align: justify;
    
}

.lifeCard .info {
    padding: 0.5em;
    padding-top: 2em;
    padding-right: 0;
}

.lifeCard .titleDiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.lifeCard .imgDiv {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.lifeCard .imgDiv img {
    transition: 0.5s;
    height: 100%;
    object-fit: cover;
}

.lifeCard .imgDiv:hover img {
    transform: scale(1.1);
}

.s1 {
    min-height: 70vh;
    /*display: grid;
     align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap; 
    grid-template-columns: repeat(3, 1fr); */
}

.secondNav .nav-link {
    color: #231815;
    font-size: 0.95vw;
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    letter-spacing: 0.2em;
    position: relative;
    display: block;
    padding: 2em 5em;
    margin: 0px;
    background: none;
    border: none;
    outline: none;
}

.secondNav .nav-link.is-checked::after {
    position: absolute;
    content: " ";
    left: 20%;
    right: 20%;
    bottom: -1px;
    height: 3px;
    background-color: #4F6666;
    transition: all 0.5s;
    opacity: 1;
}

.life-innerPage .s1 {
    width: 65%;
    margin: auto;
    padding-left: 0px;
    padding-right: 0px;
}

.life-innerPage .s1 .titleDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 2vw;
    padding-bottom: 2vw;
}

.life-innerPage .s1 .title {
    writing-mode: horizontal-tb;
}

.life-innerPage .s1 .date {
    font-weight: 500;
    margin-bottom: 1vw;
}

.life-innerPage .s1 .article {
    padding-top: 4vw;
    padding-bottom: 2vw;
    color: #464646;
    letter-spacing: 0.2em;
}
.life-innerPage .s1 .article img{width: 100% !important; height: auto !important;}

@media (max-width: 1024px) {
    .lifeCard {
        padding: 20px;
        width: 50%;
    }

    .life-innerPage .s1 .article p{
        display: inline;
        margin: 0;
    }
    
    .life-innerPage .s1 .article img{
        margin: 3vw 0;
        width: 100% !important;
        height: auto !important;
    }
}

/* 手機板 */

@media screen and (max-width: 768px) {
    .life_banner {
        background-image: url("../img/life/banner-ph.webp");
    }
    .secondNav {
        margin: auto;
        width: 80%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .secondNav .nav-item button {
        text-align: center;
        margin: auto;
        font-size: 16px;
        padding: 1em 1.5em;
    }
    .secondNav::after {
        left: 10%;
        right: 10%;
    }
    .secondNav .nav-item:nth-child(even)::after {
        display: none;
    }
    .inner-container .section {
        padding-top: 3vh;
    }
    .lifeCard {
        width: 85vw;
        padding-left: 0px;
        padding-right: 0px;
    }
    .lifeCard .lifeCard-title a,
    .lifeCard .lifeCard-title {
        font-size: 18px;
    }
    .lifeCard .titleDiv .tag {
        font-size: 12px;
        margin-left: 10px;
        padding: 0.5px 5px
    }
    .date {
        font-size: 12px;
    }
    .lifeCard p {
        font-size: 16px;
        text-align: left;
    }
    .lifeCard .imgDiv {
        height: 48vw;
        border-radius: 3vh;
    }
    .life-innerPage .s1,
    .s1 {
        width: 100%;
        padding-left: 7vw;
        padding-right: 7vw;
    }
    .life-innerPage .s1 .date,
    .life-innerPage .s1 .title {
        margin-bottom: 1vh;
        white-space: initial;
    }
    .life-innerPage .s1 .imgDiv {
        border-radius: 3vh;
        overflow: hidden;
    }
}