/* 기본 설정 */
:root {
    --bg-color: #121212;       /* 짙은 어둠 */
    --card-bg: #1e1e1e;        /* 카드 배경 */
    --text-main: #c0c0c0;      /* 오래된 종이색 */
    --text-dim: #718096;       /* 흐린 글씨 */
    --accent: #8b0000;         /* 핏빛 포인트 */
    --accent-hover: #a52a2a;   /* 밝은 핏빛 */
    --border: #333333;         /* 경계선 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Noto Serif KR', serif;
    line-height: 1.6;
}

/* 헤더 디자인 */
.main-header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #000000, #121212);
    border-bottom: 1px solid var(--border);
}

.sub-title {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.description {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* 메인 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* 그리드 레이아웃 (카드 배치) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 카드 디자인 */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.card-image {
    height: 200px;
    background-color: #2d3748; /* 이미지 없을 때 기본색 */
    background-size: cover;
    background-position: center;
    filter: grayscale(80%); /* 기본적으로 흑백 느낌 */
    transition: filter 0.3s ease;
}

.card:hover .card-image {
    filter: grayscale(0%); /* 호버 시 컬러 */
}

.card-content {
    padding: 25px;
}

.year-badge {
    background-color: var(--accent);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.summary {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    min-height: 48px;
}

.tags {
    margin-bottom: 20px;
}

.tags span {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-right: 8px;
    background: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 버튼 스타일 */
.btn-link {
    display: block;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-main);
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* 푸터 */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}