/* 기본 설정 및 폰트 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f8f8f8; /* 배경색 */
    color: #333;
    text-align: center;
}

/* 헤더 (이름, 타이틀) 스타일 */
.header-container {
    margin-bottom: 40px;
}

.header-container h1 {
    font-size: 2.5em;
    margin-bottom: 0.1em;
    color: #000;
}

.header-container p {
    font-size: 1.1em;
    color: #666;
    margin-top: 0;
}

/* 갤러리 그리드 스타일 */
.gallery-grid {
    display: grid;
    /* 2열로 배치 */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* 이미지 간격 */
    max-width: 600px; /* 전체 갤러리 최대 너비 */
    margin: 0 auto 50px auto;
}

.art-link {
    display: block;
    overflow: hidden;
    border-radius: 8px; /* 이미지 모서리 둥글게 */
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.art-link:hover {
    transform: scale(1.03); /* 마우스 오버 시 살짝 확대 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    /* 이미지 잘림 없이 채우기 */
    object-fit: cover; 
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 */
}

/* About Me 섹션 스타일 */
.about-me {
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-me h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.about-me p {
    font-size: 1em;
    line-height: 1.5;
}

/* 버튼 (푸터) 스타일 */
.contact-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.button .icon {
    margin-right: 8px;
}

.instagram {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}

.instagram:hover {
    background-color: #d0d0d0;
}

.email {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}

.email:hover {
    background-color: #d0d0d0;
}

/* 저작권 표시 */
.copyright {
    font-size: 0.8em;
    color: #999;
    margin-top: 20px;
}

/* 반응형 디자인 (모바일 화면) */
@media (max-width: 650px) {
    .gallery-grid {
        /* 모바일에서는 1열로 변경 */
        grid-template-columns: 1fr; 
        max-width: 300px;
    }

    .header-container h1 {
        font-size: 2em;
    }
}
