/* portfolio.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

#container_title_wrap {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-image: url('/theme/chestnut/img/bg_portfolio.jpg');
}

.title-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin: 0;
}

.portfolio-section {
    background-color: #071013;
}

.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background-color: #071013;
    border-top: 2px solid white;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-content {
    padding: 1rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: left;
    margin: 0;
    color: white;
}

.portfolio-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border: 4px solid #404040;
    border-radius: 8px;
}

.portfolio-long-title .portfolio-title {
    line-height: 1.2; /* 줄 간격 좁힘 */
    letter-spacing: -0.5px; /* 글자 간격 줄임 */
    word-break: break-word; /* 긴 단어 줄 바꿈 */
}

.portfolio-long-title .portfolio-content {
    padding: 0.5rem 1rem; /* 위쪽 여백 줄임 */
}

.portfolio-long-title .portfolio-image {
    margin-top: -0.1rem; /* 이미지와 글자 간격 줄임 */
}

