/* 內容區塊樣式 */
.content {
    padding: 20px;
    background-color: #D1D1D1;
    border: 3px solid #ff9800;
    border-radius: 10px;
    margin: 20px;
    margin-bottom: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.news-title {
    background-color: #292929;
    color: #FFF;
    padding: 15px;
    border: 2px solid #821A25;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* 加入點擊手勢 */
}

.news-title i {
    font-size: calc(var(--global-font-size) * (24 / 16));
    ;
    color: #FFF;
    transition: transform 0.3s ease;
    /* 轉換動畫 */
}

.news-details-container {
    max-height: none;
    /* 預設展開的最大高度 */
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.news-details-container.collapsed {
    max-height: 0;
}

.news-details {
    border: 2px solid #ff9800;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: white;
    overflow: hidden;
}

.news-details img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}


/* 設定圖片容器的滾動屬性 */
.modal-body {
    overflow: auto;
    /* 允許滾動 */
    max-height: 80vh;
    /* 設定最大高度，避免超出視窗 */
    max-width: 100%;
}

/* 圖片的初始大小 */
#modalImage {
    width: 100%;
    /* 預設大小為 100% */
    height: auto;
    transition: width 0.3s ease, height 0.3s ease;
    /* 縮放動畫 */
}

/* 固定在 modal-content 右下角的控制按鈕 */
.zoom-controls {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 1055;
    opacity: 0.8;
}

.zoom-button {
    font-size: 1.25rem;
    padding: 0.4rem;
    margin: 0.2rem;
    cursor: pointer;
}
