﻿.swiper {
    width: 90%;
    /*height: 100rem;*/
    height: auto;
    padding-right: 4rem;
    padding-bottom: 4rem;
}

.swiper-slide img {
    /*display: block;*/
    height: 379px; /* 設定你的高度 */
    width: auto; /* 根據高度自動調整寬度以保持比例 */
    max-width: 100%; /* 確保圖片不會超過其容器 */
    object-fit: cover; /* 讓圖片填滿滑動空間，但仍保持其比例 */
}

.swiper-navigation {
    color: red;
    bottom: 10px; /* 調整 pagination 距離底部的距離 */
}

.swiper-pagination {
    bottom: 0;
    height: 32px; /* 為 swiper-pagination 添加高度 */
    background-color: #808080; /* 設定背景為灰色 */
    opacity: 0.6; /* 使背景半透明 */
    line-height: 32px; /* 讓點點垂直居中 */
    text-align: center; /* 讓點點水平居中 */
}

.swiper-pagination-bullet {
    margin-bottom: 20rem;
    width: 8px; /* 調整 pagination 點點的寬度 */
    height: 8px; /* 調整 pagination 點點的高度 */
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #000;
    /*color: #fff;*/
    opacity: 1;
    /*background: rgba(0, 0, 0, 0.2);*/
    background: #D6D6D6;
}

/*Pagination Dot*/
.swiper-pagination-bullet-active {
    color: #fff;
    /*background: #007aff;*/
    background: #869791;
}

.swiper-button-next, .swiper-button-prev {
    color: #000; /* 按鈕顏色 */
    font-size: 2em; /* 按鈕大小 */
    width: auto;
    height: auto;
    left: auto; /* 把左邊的定位設為 auto */
}

/*後一張*/
.swiper-button-next {
    color: var(--gray) !important;
    margin: 0 1rem !important;
    background-color: #fff !important;
    height: auto;
    padding: 6px !important;
    border-radius: 10px !important;
    font-size: 1.3em !important;
    transition: var(--hoverTransition);
    right: 8px; /* 調整下一張按鈕距離右邊的距離 */
    z-index: 100;
}

/*前一張*/
.swiper-button-prev {
    color: var(--gray) !important;
    margin: 0 1rem !important;
    background-color: #fff !important;
    height: auto;
    padding: 6px !important;
    border-radius: 10px !important;
    font-size: 1.3em !important;
    transition: var(--hoverTransition);
    left: -14px; /* 調整上一張按鈕距離左邊的距離 */
    z-index: 100;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: "";
}


/*查看所有海報*/
.poster-wrap .poster-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    z-index: 2;
    color: var(--gray);
    background-color: #fff;
    text-align: center;
    height: auto;
    padding: 6px 26px;
    border-radius: 50px;
    font-size: 1.3em;
    transition: var(--hoverTransition), transform 0.2s ease;
}

.poster-wrap {
    height: 690px
}

.poster-wrap .exhibition_people1 {
    right: 40px;
    z-index: 2;
    width: 6%;
}

.poster-wrap .exhibition_people2 {
    z-index: 2;
    width: 8%;
}

.poster-wrap .poster-button:hover {
    background-color: var(--buttonHover);
    color: var(--brown);
    transform: translateX(-51%) translateY(-2%);
    box-shadow: 5px 5px 5px rgba(146, 134, 134, 0.4117647059);
}

.swiper-wrapper {
    position: relative;
}

.swiper-wrapper .swiper-slide {
    /*cursor: pointer;*/
    margin: 11rem 1rem 3rem 1rem;
    box-shadow: 5px 5px 5px rgba(8, 8, 8, 0.1921568627);

    width:268px
}

.flexRow {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0rem;
    width: 100%;
}

    .flexRow .flexRowItem {
        align-self: center;
    }

@media (max-width: 1200px) {
    .swiper-slide img {
        height: 320px; /* 較大屏幕的高度 */
    }
}

@media (max-width: 992px) {
    .swiper-slide img {
        height: 280px; /* 中等屏幕的高度 */
    }

    .poster-wrap {
        height: 630px
    }

    .poster-wrap .exhibition_people1 {
        z-index: 2;
        width: 13%;
    }

    .poster-wrap .exhibition_people2 {
        z-index: 2;
        width: 16%;
    }
}

@media (max-width: 768px) {
    .swiper-slide img {
        height: 240px; /* 小屏幕的高度 */
    }

    .poster-wrap {
        height: 630px
    }

    .poster-wrap .poster-button {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .swiper-slide img {
        width: 285px;
        height: 402px; /* 超小屏幕的高度 */
    }

    .swiper-wrapper .swiper-slide {
        margin: 8rem 1rem 3rem 1rem;
    }

    .swiper-horizontal > .swiper-pagination-bullets {
        bottom: 2rem;
    }
}