﻿




.ttt {
    flex: 1;
}


#newsID {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

@media only screen and (max-width: 991px) {
    #newsID {
        width: 90%;
    }
}


@media only screen and (max-width: 767px) {

    #newsID {
        max-width: 360px;
    }
}



.ig-wrapper {
    display: flex;
    /*  padding: 12px 0;*/
    padding-bottom: 12px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
/*    padding-left: calc(50vw - 715px);
    padding-right: calc(50vw - 715px);*/
}

    .ig-wrapper::-webkit-scrollbar {
        height: 10px;
    }

    .ig-wrapper::-webkit-scrollbar-track {
        margin-right: max(calc(var(--bs-gutter-x) * .5), calc(50vw - 715px));
        margin-left: max(calc(var(--bs-gutter-x) * .5), calc(50vw - 715px));
    }



.ig-wrapper-item {
    flex: 0 0 340px;
    height: 100%;
    margin-right: 1rem;
}


.ig-wrapper-container {
    padding-bottom: 12px;
}


@media (max-width: 767px) {

    .ig-wrapper-item {
        flex: 0 0 280px;
    }

    .news_title {
        font-size: 24px;
    }

    .ig-wrapper {
        padding-left: initial;
    }

        .ig-wrapper::-webkit-scrollbar-track {
            padding-left: initial;
        }
}





.news_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 12px;
}

.news_grid_1 {
    grid-area: 1 / 1 / 3 / 3;
    background-size: cover;
    background-position: center;
}



.news_grid_2 {
    aspect-ratio: 4 / 3;
    grid-area: 1 / 3 / 2 / 4;
    background-size: cover;
    background-position: center;
}

.news_grid_3 {
    aspect-ratio: 4 / 3;
    grid-area: 2 / 3 / 3 / 4;
    background-size: cover;
    background-position: center;
}

/*  NEW TEST end*/


.news_title_1 {
    padding: 10px 20px;
    position: absolute;
    left: 0;
    margin-bottom: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
    width: 90%;
    bottom: 0;
}


.news_title_2 {
    margin: 0 0 12px;
}

.news_title_3 {
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    margin: 0;
}

.news_title_3b {
    color: #fff;
    font-size: 21px;
    font-weight: 500;
    margin: 0;
}

.news_title_3c {
    color: #fff;
    /*    font-size: 16px;*/
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.td-post-author-name span {
    display: inline-block;
}

.td-post-date, .td-post-date2 {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.td-post-tyt {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'LTRemarkItalic' !important;
    font-size: 21px;
}

.news_grid_item {
    position: relative;
    overflow: hidden;
/*    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;*/
}




.news_grid_img, .news_grid_img_tyt {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.25, 1) 0ms;
}

    .news_grid_img:before {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-transition: background-color 0.3s ease;
        transition: background-color 0.3s ease;
        z-index: 1;
        content: '';
        background: -webkit-linear-gradient(0deg,rgba(0,0,0,0.7),rgba(0,0,0,0) 60%,rgba(0,0,0,0));
        background: linear-gradient(0deg,rgba(0,0,0,0.7),rgba(0,0,0,0) 60%,rgba(0,0,0,0));
    }


    .news_grid_img_tyt:before {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-transition: background-color 0.3s ease;
        transition: background-color 0.3s ease;
        z-index: 1;
        content: '';
    }

.news_grid_item:hover .news_grid_img,
.news_grid_item:hover .news_grid_img_tyt {
    transform: scale3d(1.08, 1.08, 1);
    -webkit-transform: scale3d(1.08, 1.08, 1);
}


@media (max-width: 767px) {
    .news_grid {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .news_grid_item {
        aspect-ratio: 4 / 3;
        grid-area: auto;
    }

}


@media (max-width: 991px) {
    .news_title_3, .news_title_3b {
        font-size: 16px;
    }
}






/* 在 WebKit 瀏覽器中自定義 X 軸捲軸樣式 */
/*.ig-wrapper::-webkit-scrollbar {
    height: 10px;*/ /* 設定捲軸高度 */
/*}

.ig-wrapper::-webkit-scrollbar-track {
    background-color: yellow;*/ /* 設定捲軸軌道背景顏色 */
/*}

.ig-wrapper::-webkit-scrollbar-thumb {
    background-color: red;*/ /* 設定捲軸滑塊顏色 */
    /*transition: height 0.5s;
}

    .ig-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: blue;*/ /* 設定滑鼠懸停時捲軸滑塊顏色 */
        /*height: 20px;
    }*/

/* 添加一個額外的元素作為 X 軸捲軸軌道 */
/*.ig-wrapper::after {
    content: "";

    left: 0;
    right: 0;
    height: 10px;*/ /* 與捲軸高度相同 */
    /*background-color: #f1f1f1;*/ /* 與捲軸軌道背景顏色相同 */
    /*z-index: 1;*/ /* 將其置於內容之上 */
/*}*/
