/* 全局樣式 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    padding: 20px;
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
}

.gold-text {
    font-size: 43px; /* 調整金色文字大小 */
    color: gold; /* 設置文字顏色為金色 */
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black; /* 黑邊效果 */
}

.membership {
    text-align: center;
    margin: 20px 0;
    border: 1px solid #ccc;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: normal; /* 允許文字換行 */
}

.membership img {
    max-width: 100%;
    height: auto;
    margin-top: 20px; /* 調整文字和圖片之間的間距 */
}

.intro, .gallery, .location {
    padding: 20px;
    text-align: center;
}

.gallery .swiper-slide {
    text-align: center; /* 保持輪播圖片居中顯示 */
}

.gallery .gallery-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* 限制圖片的最大高度，保持比例 */
    object-fit: cover; /* 確保圖片適應容器大小 */
    transition: transform 0.3s ease;
}

.gallery .gallery-image:hover {
    transform: scale(1.1);
}

.map {
    width: 100%;
    max-width: 400px; /* 調整地圖最大寬度 */
    height: auto;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.map:hover {
    transform: scale(1.05);
}

/* 响应式設計 */
@media (max-width: 768px) {
    .gallery .gallery-image {
        width: 100%;
        height: auto;
        max-height: 200px; /* 更小的屏幕上限制圖片高度 */
    }

    .membership {
        padding: 10px;
    }

    .membership p,
    .membership img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery .gallery-image {
        width: 100%;
        height: auto;
        max-height: 150px; /* 進一步縮小高度 */
    }

    .membership p {
        width: 90%; /* 調整更小屏幕下文字區塊寬度 */
    }
}

@media (max-width: 360px) {
    .gallery .gallery-image {
        width: 100%;
        height: auto;
        max-height: 120px; /* 最小屏幕下的圖片高度 */
    }
}

/* 新增放大顯示圖片的樣式 */
.modal {
    display: none; /* 初始狀態下隱藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 15% auto;
    display: block;
    max-width: 90%;
}

.modal-caption {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-top: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
