.portfolio-detail-container {
    display: flex;
    flex-grow: 1; /* 남은 공간을 채우도록 */
    max-width: 1200px; /* 최대 너비 설정 */
    margin: 0 auto; /* 가운데 정렬 */
    padding: 20px;
    box-sizing: border-box; /* 패딩 포함 너비 계산 */
}

.left-panel {
    flex: 1; /* 왼쪽 패널이 공간을 차지하도록 */
    padding-right: 40px; /* 오른쪽 이미지와의 간격 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 세로 중앙 정렬 */
}

.right-panel {
    flex: 1.5; /* 오른쪽 이미지가 더 넓게 차지하도록 */
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
    overflow: hidden; /* 이미지가 넘치지 않도록 */
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    font-size: 0.9em;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
}

.detail-item span,
.detail-item p {
    font-size: 1.1em;
    color: #fff;
    line-height: 1.5;
    margin: 0;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 80vh; /* 뷰포트 높이의 80%를 넘지 않도록 */
    object-fit: contain; /* 이미지 비율 유지하며 컨테이너에 맞춤 */
    border-radius: 8px; /* 이미지 모서리 둥글게 */
}

.cta-button {
    display: inline-block;
    background-color: #007bff; /* 파란색 버튼 */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .portfolio-detail-container {
        flex-direction: column; /* 세로로 배치 */
        padding: 15px;
    }
    .left-panel {
        padding-right: 0;
        padding-bottom: 30px; /* 이미지와의 간격 */
        text-align: center; /* 모바일에서 텍스트 중앙 정렬 */
    }
    .detail-item label,
    .detail-item span,
    .detail-item p {
        text-align: center;
    }
    .right-panel {
        order: -1; /* 이미지를 텍스트 위로 이동 */
        margin-bottom: 20px;
    }
    .cta-button {
        width: 100%;
        box-sizing: border-box; /* 패딩 포함 너비 */
    }
    .header {
        font-size: 1.5em;
    }
}
