/* Content Layout */
.content-project-page {
    display: grid;
    gap: 50px; /* 项目之间的间距 */
    padding: 50px; /* 父容器内边距 */
    width: 100%; /* 確保內容寬度佔滿 */
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    box-sizing: border-box;
    overflow-x: auto; /* 水平滚动条 */
}

/* 主标题样式 */
.project-title {
    grid-column: 1 / -1; /* 跨越所有列 */
    font-size: 28px;
    font-family: "Blinker", sans-serif;
    font-weight: 600; /* semibold */
    text-align: start; /* 文字靠左对齐 */
}

/* Project Origin Styling */
.project-origin {
    position: relative;
    width: 100%; /* 占满网格列 */
    height: auto; /* 占满网格列 */
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    gap: 18px; /* Gap between title and description */
    text-align: start;
}

.project-origin img {
    width: 100%; /* Image spans the full width */
    height: auto;
    object-fit: cover;
}

/* 特殊处理大图片 */
.project-large {
    grid-column: 1 / -1; /* 跨越所有列 */
    overflow: hidden;
    height: 400px;
    width: 100%;
    justify-self: center; /* 水平置中 */
}

.project-large img {
    width: 100%; /* 確保圖片填滿容器 */
    height: auto; /* 保持比例 */
    object-fit: cover;
}

.project-large iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Optional: Remove border */
}

.project-origin h2 {
    font-size: 18px;
    font-weight: bold;
    font-family: "Blinker", sans-serif;
}

.project-origin p {
    font-size: 18px;
    font-family: "Blinker", sans-serif;
    line-height: 1.5; /* Improves readability */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-project-page {
        grid-template-columns: 1fr; /* Single-column layout on smaller screens */
    }

    .project-large img {
        width: 100%; /* 在小螢幕上寬度占滿 */
    }
}