/* 從 inline styles 提取的樣式 */
.main-title3 {
    color: #1F3751;
}

/* Period page background image */
#decade-main_banner.main-banner {
    background-image: url('/images/decade/video_sample3.jpg');
}

/* Gallery image wrapper */
.mySwiper1 .swiper-slide,
.mySwiper2 .swiper-slide,
.mySwiper3 .swiper-slide,
.mySwiper4 .swiper-slide,
.mySwiper5 .swiper-slide,
.mySwiper6 .swiper-slide,
.mySwiper7 .swiper-slide,
.mySwiper8 .swiper-slide,
.mySwiper9 .swiper-slide,
.mySwiper10 .swiper-slide {
    display: block !important;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

    .gallery-image-wrapper .gallery-img {
        display: block;
        width: 100%;
    }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    z-index: 10;
    box-sizing: border-box;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.right_menu {
    display: flex;
    flex-direction: column; /* 分成兩行 */
    align-items: flex-end; /* 靠右對齊 */
    list-style: none;
    padding: 0;
    margin: 0;
}

#vmhydhLink {
    /*font-size: 1.3rem;
    text-align: right;*/
}

/* 响应式 padding - 移动设备优先 */
.decade-container {
    padding: 1.5rem 1rem;
}

/* 平板设备 (768px 以上) */
@media (min-width: 768px) {
    .decade-container {
        padding: 3rem 2rem;
    }
}

/* 桌面设备 (1024px 以上) */
@media (min-width: 1024px) {
    .decade-container {
        padding: 4rem 3rem;
    }
}

/* 大屏幕 (1280px 以上) */
@media (min-width: 1280px) {
    .decade-container {
        padding: 6rem 4rem;
    }
}

/* 以下樣式原本為 inline style，已轉換為 Tailwind 類別或移至此處 */
/* style="margin:0 auto;" -> 使用 Tailwind 類別 mx-auto */
/* style="margin-bottom:0;" -> 使用 Tailwind 類別 mb-0 */


[class*="mySwiper-thumbs"] .swiper-wrapper {
    justify-content: center;
    width: 100%;
}

[class*="mySwiper-thumbs"] .swiper-slide {
    opacity: 0.2;
}

[class*="mySwiper-thumbs"] .swiper-slide-thumb-active {
    opacity: 1;
}

[class*="mySwiper-thumbs"] .swiper-slide img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-left: 5px;
}

[class*="mySwiper-thumbs"] .swiper-button-next,
[class*="mySwiper-thumbs"] .swiper-button-prev {
    color: #2E4C6E;
    width: 24px;
}

/* SweetAlert2 font override */
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-actions button,
.swal2-input,
.swal2-validation-message {
    font-family: "Noto Sans TC", sans-serif;
}

    [class*="mySwiper-thumbs"] .swiper-button-next::after,
    [class*="mySwiper-thumbs"] .swiper-button-prev::after {
        font-size: 32px;
    }

[class*="mySwiper-thumbs"] .swiper-button-next {
    right: 0;
}

[class*="mySwiper-thumbs"] .swiper-button-prev {
    left: 0;
}
.mySwiper_history {
    --swiper-pagination-color: #ffffff;
}
    .mySwiper_history .swiper-slide {
        height: 500px; 
    }

.mobile-break {
    display: inline;
}

@media (max-width: 768px) {
    .mySwiper_history .swiper-slide {
        height: auto; 
    }

    .mobile-break {
        display: block;
    }

    /* 1. 確保父層 Flex 不會過度擠壓文字 */
    .decade-title {
        display: flex !important;
        align-items: center; /* 讓線條與文字垂直置中 */
        width: 100% !important;
    }

        /* 2. 線條隱藏 */
        .decade-title .line {
            display:none; 
        }

        /* 3. 讓標題擁有足夠空間，並縮小手機版字體 */
        .decade-title .title {
            min-width: 0 !important; /* 防止 Flex 子元素溢出 */
            font-size: 2.8rem !important; /* 手機版字體縮小，避免單行爆開 */
            line-height: 1.3 !important;
            white-space: normal !important;
            word-break: normal !important; /* 確保單字不會被隨意拆碎 */
        }
}



