body{
	margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 400; 
    color: var(--sepia-text, #2c2c2c);
    background: linear-gradient(0deg, #ffffff -26.94%, #e7dbc6 100%) no-repeat;
    background-attachment: fixed; 
    background-size: cover;
	cursor: default;
	position: relative;
	overflow-x: hidden;
}
body::before,
body::after
{
	display: none;
}

.gallery-works-section {
    padding: 80px 20px 90px;
    background: linear-gradient(0deg, #ffffff -26.94%, #e7dbc6 100%) no-repeat;
}

.gallery-works-container {
    max-width: 1200px;
    margin: 0 auto;
	margin-top: 80px;
	height: auto;
	min-height: 100%;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    font-family: 'Noto Serif KR', serif;
}

.gallery-desc {
    font-size: 18px;
    color: #666;
}

/* 버튼 */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.gallery-tab-btn {
    padding: 10px 35px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.gallery-tab-btn.active {
    background-color: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

/* 리스트 */
.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: galleryFadeUp 0.4s ease forwards;
}

.gallery-grid.active {
    display: grid;
}

/* 카드 디자인 */
.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-6px);
}

.gallery-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 66%;
    background-color: #f5f5f5;
    overflow: hidden;
}

.gallery-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card-thumb.text-only {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.story-preview-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    color: #555;
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #111;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.gallery-card-info {
    padding: 24px;
}

.gallery-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-author {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.gallery-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    font-size: 16px;
    color: #888;
}

@keyframes galleryFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .gallery-works-section {
        padding: 60px 16px;
    }
    .gallery-title { font-size: 28px; }
    .gallery-tabs { gap: 8px; margin-bottom: 30px; }
    .gallery-tab-btn { padding: 10px 20px; font-size: 14px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

@media screen and (max-width: 480px) {
	.gallery-works-container {
			height: auto !important; 
			min-height: auto;
		}
    .gallery-works-section { padding: 40px 16px; }
    .gallery-title { font-size: 24px; }
    .gallery-desc { font-size: 14px; word-break: keep-all; padding: 0 10px; }
    .gallery-tabs { flex-wrap: wrap; gap: 8px; }
    .gallery-tabs li { flex: 1 1 calc(33.333% - 8px); }
    .gallery-tab-btn { width: 100%; padding: 8px 0; font-size: 13px; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; gap: 20px; height: auto;}
    .gallery-card-info { padding: 16px 20px; }
    .gallery-card-title { font-size: 16px; margin-bottom: 4px; }
    .gallery-card-author { font-size: 13px; margin-bottom: 12px; }
    .gallery-card-bottom { padding-top: 12px; font-size: 12px; }
}