/* 整個區域container 定義內容 */

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* 保證在寬度不足時，元素會自動換行 */
    gap: 5px; /* section 之間的間距 */
}
/* section，左右區域使用 內容 */
.section {
    flex: 1; /* 讓兩個 section 自動均分寬度 */
    min-width: 300px; /* 保證 section 不會縮小到過小的寬度 */
    padding: 5px;
    margin: 5px;
    position: relative;
    overflow: hidden;
}
.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}
.video-section {
    flex: 1;
    min-width: 300px;
    padding: 5px;
    margin: 5px;
}
/* 確保視頻佔據所有可用空間 */
.video-section video {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
.container {
    flex-direction: column; /* 將 section 改為上下排列 */
}
.video-container {
    flex-direction: column;
}

/* 改變 section 的順序 */
.video-section {
    width: 100%;
}
.video-section:nth-child(1) {
    order: 2;
}
.video-section:nth-child(2) {
    order: 1;
}

.section {
    width: 100%;
}
.section:nth-child(1) {
    order: 2;
}
.section:nth-child(2) {
    order: 1;
}
}

/* hero section 內容 */
/* 圖片撐開的長方形 div */
.image-box {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}



/* Experience 頁面用 */
.gallery-container {
    max-width: 1200px; /* 可調整最大寬度 */
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* 圖片間的間隔 */
}

.gallery-item {
    position: relative;
    padding-top: 56.25%; /* 16:9 的比例 (9/16 = 0.5625) */
    overflow: hidden;
}

.gallery-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* 自動裁切多餘部分 */
}
/* Experience 頁面使用結束 */