/* 기본 설정 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', -apple-system, sans-serif; }
body { background-color: #f0f2f5; color: #333; line-height: 1.6; }

/* 헤더 */
header { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; text-align: center; padding: 3rem 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }

/* 필터 메뉴 */
nav { display: flex; justify-content: center; gap: 10px; margin: 2rem 0; padding: 0 1rem; }
.filter-btn { padding: 0.7rem 1.2rem; border: none; border-radius: 30px; background: white; cursor: pointer; transition: 0.3s; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.filter-btn.active, .filter-btn:hover { background: #4facfe; color: white; }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; padding: 0 2rem; max-width: 1200px; margin: 0 auto 4rem; }

/* 카드 */
.card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card .info { padding: 1.5rem; }
.card h3 { color: #4facfe; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; }
.more-view { font-size: 0.85rem; color: #4facfe; font-weight: bold; border-top: 1px solid #eee; padding-top: 10px; display: block; }

/* 모달창 */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content { background: white; margin: 5% auto; padding: 2rem; border-radius: 25px; width: 90%; max-width: 600px; position: relative; animation: slideIn 0.3s ease-out; }
@keyframes slideIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-btn { position: absolute; right: 20px; top: 15px; font-size: 2rem; cursor: pointer; color: #aaa; }
#modal-img { width: 100%; height: 250px; object-fit: cover; border-radius: 15px; margin-bottom: 1.5rem; }
#modal-title { color: #4facfe; margin-bottom: 0.5rem; }
.short-desc { font-weight: bold; color: #333; margin-bottom: 1rem; }
.divider { height: 1px; background: #eee; margin: 1rem 0; }
.long-desc { color: #555; font-size: 1rem; white-space: pre-line; }

/* 푸터 */
footer { text-align: center; padding: 2rem; background: #fff; color: #999; font-size: 0.9rem; }