.esg_soc_ban {
    background: url(../images/soc/esg_soc_ban.jpg) no-repeat;
}

.modal {
    display: none;
    /* 默認隱藏 */
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    /* 透明度 0.9 的黑色背景 */
}

.tai_red {
    color: #C43E4D;
}

.tai_blue {
    color: #324E73;
}

.ml {
    margin-left: 1.8rem;
}

.esgBlock {
    width: 100%;
    padding: 2rem 1.5% 2rem;
    margin: 2rem 0;
    font-family: 'Microsoft JhengHei';
    font-size: 18px;
    line-height: 30px;
    width: 100%;
    position: relative;
}

.esgBlock:last-child {
    margin: 0;
    padding-bottom: 4rem;
}

.csr_bg {
    background: none;
}

.esg_socBg {
    background: url(../images/esg_soc_bg.png) bottom no-repeat;
    background-size: 100%;
    background-position: right bottom;
}

/* .page_Txt::before{
    content:"";
    background: url(../images/soc/esg_soc_img.png) no-repeat;
    background-position: 95% bottom;
    background-size: 21%;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
} */

#swiper_modal .swiper-slide {
    width: 100% !important;
}

#myModal .img-content {
    margin: auto;
    max-width: 1280px;
    height: 660px;
    /* 調整放大後的圖片寬度 */
}

#myModal .swiper-slide .img-content img {
    object-fit: contain;
}

#myModal .swiper-slide .img-content iframe {
    max-width: 1280px;
    max-height: 720px;
}

.img-content {
    margin: auto;
    display: block;
    width: 100%;
    height: 450px;
    background-color: #EEF0F1;
    overflow-y: hidden;
}

#myModal .img-content {
    background: none;
}

/* .section_padding{
    padding-bottom: 0;
} */

.page_img_bg::before {
    width: 91%;
    height: 100%;
}

.img-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-content iframe {
    max-width: 800px;
    max-height: 450px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iframeYT iframe {
    aspect-ratio: 1.77;
}

.iframeYT iframe {
    width: 100%;
    height: 100%;
}

.item_title {
    margin-top: 1rem;
}

.time_title {
    width: 100%;
    padding: 0 50px;
    margin: 1rem 0 0;
    font-family: 'Verdana';
    font-size: 50px;
    font-style: italic;
    font-weight: 700;
    color: brown;
    line-height: 30px;
    opacity: 0.3;
}

/* 關閉按鈕的樣式 */
.closeButton {
    position: absolute;
    transition: all 0.3s ease 0s;
    width: 40px;
    height: 40px;
    top: 80px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

.closeButton:hover {
    transform: rotate(90deg);
}

.swiper-container {
    overflow-x: hidden;
}

.swiper-button-next i, .swiper-button-prev i {
    font-size: 40px;
    color: #999;
}

.swiper-button-next:hover {
    color: #CD5D67 !important;
    border: 1px solid #CD5D67;
}

.swiper-button-prev:hover {
    color: #CD5D67 !important;
    border: 1px solid #CD5D67;
}

.swiper-button-next, .swiper-button-prev {
    width: 60px !important;
    height: 60px !important;
    border: 1px solid #ccc;
    color: #ccc !important;
}

.socImg .swiper-button-next,
.socImg .swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
}

.socImg .swiper-button-next::after,
.socImg .swiper-button-prev::after {
    font-size: 28px !important;
}

.socImg .swiper-button-next,
.socImg .swiper-button-prev {
    top: 40px;
    background-color: #ffffff;
    z-index: 20;
}

.socImg:nth-child(2n) .swiper-button-next {
    left: -45px !important;
    right: unset !important;
}

.socImg:nth-child(2n) .swiper-button-prev {
    left: -105px !important;
    right: unset !important;
}

.socImg:nth-child(2n+1) .swiper-button-next {
    left: unset !important;
    right: -105px !important;
}

.socImg:nth-child(2n+1) .swiper-button-prev {
    left: unset !important;
    right: -45px !important;
}


#myModal .swiper-pagination {
    color: #fff;
}

.socImg {
    position: relative;
    cursor: pointer;
}

.socText {
    position: relative;
    padding: 2rem;
    min-height: 450px;
    box-shadow: 5px 5px 10px #33333340;
    z-index: 10;
    background-color: #fafafa;
}

.socText:nth-child(2n) {
    margin: 3rem 0 0 -2rem;
}

.socText:nth-child(2n+1) {
    margin: 3rem -2rem 0 0rem;
}

.socText::before {
    content: "";
    width: 100%;
    min-height: 450px;
    background: url(../images/esg_socText_bg.png) no-repeat;
    position: absolute;
    background-position: right bottom;
    bottom: 0;
    right: 0;
    z-index: -1;
}

.socText a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width:1920px) {
    #myModal .swiper-button-next {
        right: 200px !important;
    }

    #myModal .swiper-button-prev {
        left: 200px !important;
    }
}

@media screen and (max-width:1400px) {
    #myModal .swiper-button-next {
        right: 50px !important;
    }

    #myModal .swiper-button-prev {
        left: 50px !important;
    }
}

@media screen and (max-width:1400px) {
    #myModal .swiper-button-next {
        right: 10px !important;
    }

    #myModal .swiper-button-prev {
        left: 10px !important;
    }
}

@media screen and (max-width:1387px) {
    .page_img_bg::before {
        width: 91%;
        height: 80%;
    }
}

@media screen and (max-width:1200px) {
    .page_img_bg::before {
        width: 85%;
        height: 45%;
    }
}

@media screen and (max-width:991px) {
    .page_img_bg::before {
        width: 89%;
        height: 100%;
    }

    .page_Txt{
        margin-top: 1rem;
    }

    #myModal .swiper-slide .img-content {
        margin: auto;
        max-width: 1280px;
        height: 500px;
        /* 調整放大後的圖片寬度 */
    }

    #myModal .swiper-button-next,
    #myModal .swiper-button-prev {
        display: none;
    }

    .order1 {
        order: 1;
    }

    .order2 {
        order: 2;
    }

    .order3 {
        order: 3;
    }

    .order4 {
        order: 4;
    }

    .socText:nth-child(2n) {
        margin: 0;
    }

    .socText:nth-child(2n+1) {
        margin: 0;
    }

    .socImg .swiper-button-next,
    .socImg .swiper-button-prev {
        top: auto;
        bottom: -30px;
        background-color: #ffffff;
        z-index: 20;
    }

    .socImg:nth-child(2n) .swiper-button-next {
        left: auto !important;
        right: 30px !important;
    }

    .socImg:nth-child(2n) .swiper-button-prev {
        left: auto !important;
        right: 100px !important;
    }

    .socImg:nth-child(2n+1) .swiper-button-next {
        left: auto !important;
        right: 30px !important;
    }

    .socImg:nth-child(2n+1) .swiper-button-prev {
        left: auto !important;
        right: 100px !important;
    }
}

@media screen and (max-width:768px) {
    .img-content {
        margin: auto;
        display: block;
        width: 100%;
        height: 250px;
        overflow-y: hidden;
    }

    #myModal .swiper-slide .img-content {
        height: 400px;
    }

    .socText::before {
        background: none;
    }
}