/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 폰트 및 색상 설정 */
:root {
    --primary-color: #28eb25;
    --secondary-color: #535353;
    --accent-color: #28eb25;
    --bg-color: #9c9c9c;
    --light-bg: #9c9c9c;
    --border-color: #28eb25;
    --text-primary: #1f2937;
    --text-secondary: #d5d5d5;
    --particle-color: #191c14;
    --force-color: #08CB00;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(120, 120, 120, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
        gap: 2rem;
    }

    .nav-container > *:first-child {
        flex: 0 0 auto;
    }

    .nav-container > *:nth-child(2) {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        margin-right: 0;
    }

    .nav-container > *:nth-child(3),
    .nav-container > *:nth-child(4) {
        flex: 0 0 auto;
    }

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 1rem;
    margin-top: 0.2rem;
}

.nav-instagram:hover {
    color: var(--accent-color);
}

.nav-instagram svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-instagram:hover svg {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* 애니메이션 캔버스들 - 단순한 배경 */
.hero-canvas {
    display: none; /* 기존 hero 캔버스 숨김 */
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}





/* 대형 메인 타이틀 */
.hero-main-title {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    /* 자연스러운 그라데이션 마스크 적용 */
    -webkit-mask: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.1) 5%, 
        rgba(0,0,0,0.8) 15%, 
        rgba(0,0,0,1) 25%, 
        rgba(0,0,0,1) 75%, 
        rgba(0,0,0,0.8) 85%, 
        rgba(0,0,0,0.1) 95%, 
        transparent 100%
    );
    mask: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.1) 5%, 
        rgba(0,0,0,0.8) 15%, 
        rgba(0,0,0,1) 25%, 
        rgba(0,0,0,1) 75%, 
        rgba(0,0,0,0.8) 85%, 
        rgba(0,0,0,0.1) 95%, 
        transparent 100%
    );
}

/* 아스키 아트 스타일 - 웹 최적화 */
.ascii-art {
    font-family: 'Courier New', 'Lucida Console', Monaco, monospace;
    font-size: clamp(1.4rem, 3.2vw, 3.2rem);
    font-weight: bold;
    color: var(--particle-color);
    text-align: center;
    margin: 0;
    white-space: pre;
    line-height: 1.25;
    letter-spacing: 0.12em;
    word-spacing: 0.05em;
    text-shadow: 
        0 0 10px rgba(25, 28, 20, 0.4),
        0 0 20px rgba(25, 28, 20, 0.3),
        0 0 30px rgba(25, 28, 20, 0.2),
        0 0 40px rgba(25, 28, 20, 0.1);
    filter: drop-shadow(1px 1px 2px rgba(25, 28, 20, 0.3));
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    animation: asciiFloat 6s ease-in-out infinite;
    max-width: 85vw;
    overflow: visible;
}

/* 유동적인 움직임 애니메이션 */
@keyframes asciiFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
        filter: drop-shadow(1px 1px 2px rgba(25, 28, 20, 0.3)) hue-rotate(0deg);
    }
    25% { 
        transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
        filter: drop-shadow(2px 2px 4px rgba(25, 28, 20, 0.4)) hue-rotate(15deg);
    }
    50% { 
        transform: translateY(-5px) rotateX(-1deg) rotateY(-2deg);
        filter: drop-shadow(3px 1px 3px rgba(25, 28, 20, 0.35)) hue-rotate(30deg);
    }
    75% { 
        transform: translateY(-12px) rotateX(1deg) rotateY(2deg);
        filter: drop-shadow(1px 3px 5px rgba(25, 28, 20, 0.4)) hue-rotate(15deg);
    }
}

/* 개별 문자에 대한 파동 효과 */
.ascii-art::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(25, 28, 20, 0.15);
    filter: blur(1px);
    z-index: -1;
    transform: scale(1.01);
    animation: asciiWave 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.ascii-art::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(25, 28, 20, 0.08);
    filter: blur(3px);
    z-index: -2;
    transform: scale(1.03);
    animation: asciiWave 5s ease-in-out infinite reverse;
    animation-delay: 1s;
}

@keyframes asciiWave {
    0%, 100% { 
        transform: scale(1.01) translateY(0px);
        opacity: 0.15;
    }
    50% { 
        transform: scale(1.02) translateY(-2px);
        opacity: 0.25;
    }
}

/* 호버 효과 제거됨 */

/* 워터마크 배경 컨테이너 */
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.watermark-char {
    position: absolute;
    font-family: 'Courier New', 'Lucida Console', Monaco, monospace;
    font-weight: bold;
    color: rgba(25, 28, 20, 0.18); /* 색깔을 더 진하게 */
    user-select: none;
    pointer-events: none;
    animation: watermarkFloat 8s ease-in-out infinite; /* 더 빠른 애니메이션 */
    text-shadow: 0 0 8px rgba(25, 28, 20, 0.12); /* 그림자도 더 진하게 */
}

/* 워터마크 떠다니는 애니메이션 - 더 활발한 움직임 */
@keyframes watermarkFloat {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    20% { 
        transform: translate(-35px, -45px) rotate(15deg) scale(1.2);
        opacity: 0.25;
    }
    40% { 
        transform: translate(25px, -35px) rotate(-10deg) scale(0.8);
        opacity: 0.12;
    }
    60% { 
        transform: translate(-20px, 40px) rotate(20deg) scale(1.15);
        opacity: 0.22;
    }
    80% { 
        transform: translate(30px, -15px) rotate(-15deg) scale(0.9);
        opacity: 0.18;
    }
    100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
}

/* 워터마크 크기별 스타일 - 더 빠른 애니메이션 */
.watermark-char.small {
    font-size: clamp(1rem, 2vw, 1.5rem);
    animation-duration: 12s;
}

.watermark-char.medium {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    animation-duration: 10s;
}

.watermark-char.large {
    font-size: clamp(2rem, 4vw, 3.5rem);
    animation-duration: 14s;
}

/* 메인 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-color); /* 깔끔한 DBDBDB 배경 */
    z-index: 4;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}

/* 섹션 공통 스타일 */
section {
    padding: 8rem 0;
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* 동아리 소개 섹션 */
.about {
    background: #f5f5f5;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 2.5rem 0;
        min-height: auto;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-bottom: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.about-image {
    display: none;
}

.about-history h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(40, 235, 37, 0.2);
}

.timeline-date {
    flex: 0 0 140px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    background: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    border: 2px solid var(--accent-color);
    position: relative;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: relative;
    z-index: 3;
}

.timeline-image {
    flex: 0 0 100px;
    position: relative;
}

.timeline-image .placeholder-image {
    width: 100px;
    height: 140px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .timeline-img {
        width: 80px;
        height: 112px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .timeline-img {
        width: 70px;
        height: 98px;
        border-radius: 8px;
    }
}

.timeline-img:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 링크가 없는 이미지의 경우 호버 효과 제거 */
.timeline-image:not(:has(.timeline-img-link)) .timeline-img:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-img-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-img-link:hover {
    transform: scale(1.05);
}

.timeline-img-link:hover .timeline-img {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-text {
    flex: 1;
    padding-left: 1rem;
    text-align: left;
}

.timeline-text h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.timeline-text p {
    color: #555;
    line-height: 1.7;
    font-weight: 400;
    font-size: 1rem;
}

/* 활동 소개 섹션 */
.activities {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
}

@media (max-width: 768px) {
    .activity-card {
        min-height: 280px;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .activity-card {
        min-height: 260px;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.activity-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-img,
.activity-card:hover .activity-video {
    transform: scale(1.05);
}

/* 비디오 레터박스 제거 */
.activity-video {
    object-fit: cover !important;
    background: transparent !important;
    display: block;
}

/* 영상 로드 실패시 fallback 처리 */
.activity-video.error {
    display: none;
}

.activity-video::-webkit-media-controls {
    display: none !important;
}

.activity-video::-webkit-media-controls-panel {
    display: none !important;
}

.activity-video::-webkit-media-controls-play-button {
    display: none !important;
}

.activity-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-type {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: flex-start;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.play-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.activity-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
}

.activity-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 전시 소개 섹션 */
.exhibitions {
    padding: 120px 0 100px 0;
    background: #f8f8f8;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.exhibitions-slider {
    margin-top: 3rem;
    position: relative;
    z-index: 1001;
}

.slider-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    background: white;
}

@media (max-width: 768px) {
    .slider-container {
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: 100%;
        overflow: hidden;
        background: white;
        min-height: 350px;
        position: relative;
        display: block;
    }
}

@media (max-width: 480px) {
    .slider-container {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: 100%;
        overflow: hidden;
        background: white;
        min-height: 300px;
        position: relative;
        display: block;
    }
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    flex-wrap: nowrap;
    will-change: transform;
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .slider-track {
        flex-shrink: 0;
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        display: flex;
        visibility: visible;
        opacity: 1;
        width: 100%;
        position: relative;
    }
}

@media (max-width: 480px) {
    .slider-track {
        flex-shrink: 0;
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        display: flex;
        visibility: visible;
        opacity: 1;
        width: 100%;
        position: relative;
    }
}

.exhibition-card {
    min-width: 100%;
    width: 100%;
    background: white;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: 400px;
    transition: none;
    transform-origin: center center;
}

.exhibition-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    .exhibition-card {
        flex-direction: column;
        gap: 1.2rem;
        min-height: 380px;
        margin: 0;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 1.5rem;
        align-items: center;
        justify-content: center;
        background: white;
        display: flex;
        position: relative;
        box-sizing: border-box;
        transition: transform 0.3s ease;
        transform-origin: center center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .exhibition-card {
        flex-direction: column;
        gap: 1rem;
        min-height: 320px;
        margin: 0;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 1.2rem;
        align-items: center;
        justify-content: center;
        background: white;
        display: flex;
        position: relative;
        box-sizing: border-box;
        transition: transform 0.3s ease;
        transform-origin: center center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
}

.exhibition-image {
    flex: 0 0 400px;
    aspect-ratio: 5/7;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: #f5f5f5;
}

.exhibition-image img,
.exhibition-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 비디오 자동 재생 스타일 */
.exhibition-image video {
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.exhibition-card:hover .exhibition-image video {
    transform: scale(1.05) !important;
    transform-origin: center center !important;
}

@media (max-width: 768px) {
    .exhibition-image {
        flex: none;
        width: 100%;
        max-width: 200px;
        height: 280px; /* 200px * 7/5 = 280px - 5:7 비율 유지 */
        margin: 1rem auto 1rem auto;
        order: 1;
        background: #f5f5f5;
        aspect-ratio: 5/7;
    }
    
    .exhibition-image video {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .exhibition-image {
        flex: none;
        width: 100%;
        max-width: 160px;
        height: 224px; /* 160px * 7/5 = 224px - 5:7 비율 유지 */
        margin: 0.8rem auto 0.8rem auto;
        order: 1;
        background: #f5f5f5;
        aspect-ratio: 5/7;
    }
    
    .exhibition-image video {
        object-fit: cover;
        object-position: center;
    }
}

.exhibition-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.exhibition-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* 기본적으로 숨김, JavaScript에서 필요시 표시 */
}

@media (max-width: 768px) {
    .exhibition-img {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .exhibition-img {
        object-fit: cover;
        object-position: center;
    }
}

.exhibition-card:hover .exhibition-img {
    transform: scale(1.05) !important;
    transform-origin: center center !important;
}

/* 호버 효과로 인한 레이아웃 변화 방지 */
.exhibition-image {
    overflow: hidden;
    transform: translateZ(0); /* GPU 가속 활성화 */
    transform-origin: center center !important;
}

.exhibition-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

@media (max-width: 768px) {
    .exhibition-info {
        width: 100%;
        justify-content: flex-start;
        min-height: 150px;
        order: 2;
        text-align: center;
        background: white;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .exhibition-info {
        width: 100%;
        justify-content: flex-start;
        min-height: 150px;
        order: 2;
        text-align: center;
        background: white;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
}

.exhibition-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .exhibition-info h4 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exhibition-info h4 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        text-align: center;
    }
}

.exhibition-period {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .exhibition-period {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        color: var(--primary-color);
        font-weight: 600;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exhibition-period {
        font-size: 0.65rem;
        margin-bottom: 0.1rem;
        color: var(--primary-color);
        font-weight: 600;
        text-align: center;
    }
}

.exhibition-location-tab {
    background: rgba(40, 235, 37, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid rgba(40, 235, 37, 0.3);
    text-align: center;
}

.exhibition-location {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .exhibition-location {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
        color: #999;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exhibition-location {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
        color: #999;
        text-align: center;
    }
}

.exhibition-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 400;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .exhibition-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .exhibition-description {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
        text-align: center;
    }
}







.exhibition-view-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    align-self: flex-start;
    border: none;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 1002;
    position: relative;
    margin-top: 0;
    pointer-events: auto;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .exhibition-view-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.2rem;
        align-self: center;
        min-height: 44px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .exhibition-view-btn {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        margin-top: 0.1rem;
        align-self: center;
        min-height: 44px;
        min-width: 90px;
    }
}

.exhibition-view-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* 슬라이더 네비게이션 */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
    pointer-events: auto;
    z-index: 1001;
    position: relative;
    background: transparent;
}

@media (max-width: 768px) {
    .slider-nav {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .slider-nav {
        margin-top: 1rem;
        gap: 1rem;
        z-index: 1002;
        position: relative;
    }
    
    /* 더 작은 모바일에서 전시소개 섹션 개선 */
    .exhibitions {
        padding: 50px 0 70px 0;
        overflow: visible;
    }
    
    .exhibitions-slider {
        margin-top: 1.5rem;
        position: relative;
        z-index: 1001;
    }
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: auto !important;
    z-index: 1001;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 48px;
        height: 48px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 46px;
        height: 46px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
        z-index: 1003;
        position: relative;
    }
}

.slider-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: none;
    outline: none;
    z-index: 1001;
    position: relative;
}

@media (max-width: 768px) {
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .dot {
        width: 8px;
        height: 8px;
        z-index: 1003;
        position: relative;
    }
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent-color);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .exhibitions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .exhibition-video-section,
    .exhibition-photo-section {
        padding: 1.5rem;
    }
    
    .exhibition-video-section h3,
    .exhibition-photo-section h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body p {
        font-size: 0.85rem;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .media-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .photo-item img {
        height: 150px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body p {
        font-size: 0.75rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .activity-image {
        height: 200px;
    }
    
    .exhibition-image {
        height: auto;
        aspect-ratio: 5/7;
    }
    
    .exhibition-info {
        padding: 1.5rem;
    }
    
    .slider-nav {
        gap: 1rem;
        margin-top: 1.5rem;
        z-index: 1002;
        position: relative;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        z-index: 1003;
        position: relative;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        z-index: 1003;
        position: relative;
    }
    
    /* 모바일에서 전시소개 섹션 개선 */
    .exhibitions {
        padding: 60px 0 80px 0;
        overflow: visible;
    }
    
    .exhibitions-slider {
        margin-top: 2rem;
        position: relative;
        z-index: 1001;
    }
}

.exhibitions-grid .exhibition-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    color: #5b5b5be0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #5b5b5bb0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 애니메이션 클래스 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 태블릿 및 소형 랩톱 (769px 이상 1024px 이하) */
@media (min-width: 769px) and (max-width: 1024px) {
    .ascii-art {
        font-size: clamp(1.6rem, 3vw, 2.8rem);
        line-height: 1.3;
        letter-spacing: 0.11em;
        word-spacing: 0.045em;
        max-width: 80vw;
        margin: 0 auto;
    }
}

/* 모바일 워터마크 최적화는 아래 쿼리들에서 개별적으로 적용 */

/* 갤럭시 S Ultra, iPhone Pro Max 등 대형 폰 (414px 이상 768px 이하) */
@media (min-width: 415px) and (max-width: 768px) {
    .hero-canvas, .particle-canvas {
        opacity: 0.8;
    }
    
    .ascii-art {
        font-size: clamp(1.2rem, 3.8vw, 2.6rem);
        line-height: 1.35;
        letter-spacing: 0.1em;
        word-spacing: 0.04em;
        animation-duration: 7s;
        transform: none;
        text-align: center;
        max-width: 88vw;
        margin: 0 auto;
        padding: 0 0.8rem;
    }
    
    .watermark-char {
        color: rgba(25, 28, 20, 0.22) !important;
        text-shadow: 0 0 8px rgba(25, 28, 20, 0.12) !important;
    }
}

/* iPhone 12 Pro, 갤럭시 S21/S22 등 표준 사이즈 (360px 이상 414px 이하) */
@media (min-width: 361px) and (max-width: 414px) {
    .hero-canvas, .particle-canvas {
        opacity: 0.75;
    }
    
    .ascii-art {
        font-size: clamp(1.0rem, 3.6vw, 2.3rem);
        line-height: 1.32;
        letter-spacing: 0.09em;
        word-spacing: 0.035em;
        animation-duration: 8s;
        transform: none;
        text-align: center;
        max-width: 86vw;
        margin: 0 auto;
        padding: 0 0.9rem;
    }
    
    .watermark-char {
        color: rgba(25, 28, 20, 0.25) !important;
        text-shadow: 0 0 10px rgba(25, 28, 20, 0.15) !important;
    }
}

/* 소형 모바일 (320px 이상 360px 이하) */
@media (min-width: 320px) and (max-width: 360px) {
    .hero-canvas, .particle-canvas {
        opacity: 0.7;
    }
    
    .ascii-art {
        font-size: clamp(0.9rem, 3.5vw, 2.1rem);
        line-height: 1.3;
        letter-spacing: 0.08em;
        word-spacing: 0.03em;
        animation-duration: 8s;
        transform: none;
        text-align: center;
        max-width: 85vw;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .watermark-char {
        color: rgba(25, 28, 20, 0.27) !important;
        text-shadow: 0 0 12px rgba(25, 28, 20, 0.16) !important;
    }
}

@media (max-width: 480px) {
    .hero-canvas, .particle-canvas {
        opacity: 0.5;
    }
    
    .ascii-art {
        font-size: clamp(0.7rem, 3vw, 1.8rem);
        line-height: 1.25; /* 위아래 간격 증가 */
        letter-spacing: 0.06em; /* 소형 모바일에서 적당한 간격 */
        word-spacing: 0.02em; /* 단어 간격 조정 */
        animation-duration: 10s; /* 매우 느린 애니메이션 */
        transform: none; /* 확대 제거로 잘림 방지 */
        max-width: 80vw; /* 화면 너비를 더 작게 제한 */
        text-align: center; /* 중앙 정렬 명시 */
        margin: 0 auto; /* 중앙 정렬을 위한 margin */
        padding: 0 1.5rem; /* 좌우 여백 더 크게 */
        overflow: visible; /* 넘치는 부분 표시 */
    }
    
    /* 모바일에서도 개별 문자 애니메이션 활성화 */
    .ascii-char {
        animation-duration: 4s !important; /* 모바일에서는 조금 더 느리게 */
    }
    
    .hero-main-title {
        top: 50vh;
        left: 50vw;
        
        /* 매우 작은 화면에서 극도로 부드러운 그라데이션 */
        -webkit-mask: linear-gradient(
            to bottom, 
            transparent 0%, 
            rgba(0,0,0,0.02) 2%, 
            rgba(0,0,0,0.4) 10%, 
            rgba(0,0,0,1) 18%, 
            rgba(0,0,0,1) 82%, 
            rgba(0,0,0,0.4) 90%, 
            rgba(0,0,0,0.02) 98%, 
            transparent 100%
        );
        mask: linear-gradient(
            to bottom, 
            transparent 0%, 
            rgba(0,0,0,0.02) 2%, 
            rgba(0,0,0,0.4) 10%, 
            rgba(0,0,0,1) 18%, 
            rgba(0,0,0,1) 82%, 
            rgba(0,0,0,0.4) 90%, 
            rgba(0,0,0,0.02) 98%, 
            transparent 100%
        );
    }
    
    /* 매우 작은 화면에서 워터마크 더욱 최적화 - 확실히 보이게 */
    .watermark-char {
        color: rgba(25, 28, 20, 0.3) !important; /* 더욱 진하게 */
        text-shadow: 0 0 12px rgba(25, 28, 20, 0.18) !important;
        opacity: 1 !important; /* 투명도 제거 */
    }
    
    .watermark-char.small {
        font-size: clamp(0.6rem, 1.2vw, 1rem);
        animation-duration: 6s; /* 빠른 애니메이션 */
    }
    
    .watermark-char.medium {
        font-size: clamp(1rem, 2vw, 1.5rem);
        animation-duration: 5s;
    }
    
    .watermark-char.large {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        animation-duration: 7s;
    }
    

    }
    
    .noise-layer {
        opacity: 0.05 !important;
        animation-duration: 10s;
    }

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 모바일에서 모든 텍스트 크기 축소 */
    body {
        font-size: 0.8rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 0.85em;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .about-text {
        padding: 1rem 0;
        max-width: 90%;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .about-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .timeline-text {
        text-align: center;
    }
    
    .about-history h3 {
        font-size: 1.2rem !important;
    }
    
    .timeline-text p {
        font-size: 0.75rem;
    }
    
    .activity-content h3 {
        font-size: 1rem;
    }
    
    .activity-content p {
        font-size: 0.75rem;
        color: #555;
        font-weight: 400;
    }
    
    .exhibition-info h4 {
        font-size: 1.1rem;
    }
    
    .exhibition-description {
        font-size: 0.75rem;
        color: #555;
        font-weight: 400;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        display: block;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: var(--bg-color) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
    }

    .nav-menu.active {
        left: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nav-logo {
        font-size: 1.3rem;
        flex: 0 0 auto;
    }

    .nav-instagram {
        display: flex;
        margin-left: 0;
        margin-right: 1rem;
        order: 2;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 30px;
        margin-bottom: 3rem;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-item::before {
        left: 15px;
        z-index: 1;
    }

    .timeline-date {
        position: absolute !important;
        left: -10px !important;
        flex: 0 0 60px !important;
        font-size: 0.9rem !important;
        padding: 0.25rem 0.4rem !important;
        margin: 0 !important;
        z-index: 4 !important;
    }

    .timeline-content {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
        z-index: 3 !important;
    }

    .timeline-image {
        align-self: center;
        flex: 0 0 80px;
    }

    .timeline-image .placeholder-image {
        width: 80px;
        height: 112px;
    }

    .timeline-img {
        width: 80px;
        height: 112px;
    }

    .timeline-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .exhibition-card.current {
        grid-template-columns: 1fr;
    }

    .exhibitions-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    /* 더 작은 모바일에서 텍스트 크기 추가 축소 */
    body {
        font-size: 0.7rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 0.8em;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .about-text h3 {
        font-size: 1rem;
    }
    
    .about-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .timeline-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-text p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .activity-content h3 {
        font-size: 0.9rem;
    }
    
    .activity-content p {
        font-size: 0.7rem;
        color: #555;
        font-weight: 400;
    }
    
    .exhibition-info h4 {
        font-size: 1rem;
    }
    
    .exhibition-description {
        font-size: 0.7rem;
        color: #555;
        font-weight: 400;
        line-height: 1.3;
        margin-bottom: 0.6rem;
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .nav-logo {
        font-size: 1.2rem;
        flex: 0 0 auto;
    }
    
    .nav-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: var(--bg-color) !important;
        flex-direction: column !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
    }
    
    .nav-link {
        font-size: 1rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 20px;
        margin-bottom: 2.5rem;
    }

    .timeline-item::before {
        left: 10px;
        width: 6px;
        height: 6px;
        z-index: 1;
    }

    .timeline-date {
        left: -20px;
        flex: 0 0 50px;
        font-size: 0.65rem;
        padding: 0.2rem 0.3rem;
        z-index: 4;
    }

    .timeline-content {
        padding: 0.8rem;
        gap: 1rem;
        z-index: 3;
    }

    .timeline-image {
        flex: 0 0 70px;
    }

    .timeline-image .placeholder-image {
        width: 70px;
        height: 98px;
    }

    .timeline-img {
        width: 70px;
        height: 98px;
    }

    .timeline-year {
        font-size: 0.9rem;
        flex: 0 0 70px;
        left: -45px;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-info p {
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        font-size: 0.65rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
    background-color: var(--primary-color);
}

/* 로딩 상태 */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded) .fade-in {
    opacity: 0;
    transform: translateY(50px);
}

/* 커스텀 커서 스타일 */
.custom-cursor {
    mix-blend-mode: difference;
}

/* 스크롤 진행률 바 (선택사항) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* 추가 애니메이션 효과 */
.hero-content > * {
    animation-fill-mode: both;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-description {
    animation-delay: 0.6s;
}

.hero-image {
    animation-delay: 0.8s;
}

/* 카드 호버 효과 개선 */
.activity-card,
.exhibition-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    

    

}

/* 포커스 스타일 */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 전시 모달 스타일 */
.exhibition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exhibition-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        width: 95vw;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98vw;
        max-height: 80vh;
        width: 98vw;
        margin: 0.5rem;
    }
}

.exhibition-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
        max-height: 55vh;
    }
}

.exhibition-details {
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.exhibition-info-modal p {
    margin-bottom: 0.5rem;
    color: #333;
}

.exhibition-period-modal {
    font-weight: 600;
    color: var(--accent-color) !important;
}

.exhibition-location-modal {
    font-weight: 500;
    color: #444 !important;
}

.exhibition-description-modal {
    line-height: 1.6;
    margin-top: 1rem;
    color: #555;
    font-weight: 400;
}

/* 미디어 탭 스타일 */
.media-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    justify-content: center;
    width: 100%;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .media-tabs {
        gap: 0.4rem;
        margin-bottom: 1.2rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .media-tabs {
        gap: 0.2rem;
        margin-bottom: 0.8rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

.tab-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tab-pane {
    display: none;
    width: 100%;
    max-width: 100%;
}

.tab-pane.active {
    display: block;
}

/* 비디오 컨테이너 */
.video-container {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 350px;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .video-container {
        max-height: 250px;
    }
    
    .video-container video {
        max-height: 250px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .video-container {
        max-height: 200px;
    }
    
    .video-container video {
        max-height: 200px;
        object-fit: contain;
    }
}

/* 사진 갤러리 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-items: center;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    height: 200px;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
        max-height: none;
    }
    
    .photo-item {
        max-width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.4rem;
        max-height: none;
    }
    
    .photo-item {
        max-width: 100px;
        height: 100px;
    }
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* 활동 카드 이미지 스타일 */
.activity-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.activity-img,
.activity-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-image:hover .activity-img,
.activity-image:hover .activity-video {
    transform: scale(1.05);
}



/* 모바일에서 영상 자동 재생 강화 - JavaScript로 처리 */
@media (max-width: 768px) {
    .activity-video[autoplay] {
        pointer-events: none;
    }
}

/* 이미지 확대 모달 스타일 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.image-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.image-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.image-modal-body {
    padding: 0;
    max-height: calc(95vh - 80px);
    overflow: hidden;
}

.image-modal-body img {
    width: 100%;
    height: auto;
    max-height: calc(95vh - 80px);
    object-fit: contain;
    display: block;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .image-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .image-modal-header h3 {
        font-size: 1rem;
    }
    
    .image-modal-close {
        font-size: 1.2rem;
        width: 25px;
        height: 25px;
    }
    
    .image-modal-body {
        max-height: calc(98vh - 60px);
    }
    
    .image-modal-body img {
        max-height: calc(98vh - 60px);
    }
}

/* 인스타그램 링크 스타일 */
.instagram-link {
    color: inherit !important;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: #22c55e !important;
    transform: scale(1.1);
}

.instagram-link:active {
    color: #16a34a !important;
}

/* 모바일 인스타그램 버튼 */
.instagram-link-mobile {
    display: none;
    color: inherit !important;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.instagram-link-mobile:hover {
    color: #22c55e !important;
    transform: scale(1.1);
}

.instagram-link-mobile:active {
    color: #16a34a !important;
}

/* 모바일에서는 데스크톱 인스타그램 버튼 숨기고 모바일 버튼 표시 */
@media (max-width: 768px) {
    .instagram-link {
        display: none;
    }
    
    .instagram-link-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
}


/* 전시 카드 클릭 가능 스타일 */
.exhibition-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.exhibition-card:hover {
    transform: translateY(-5px);
}

/* 타임라인 아이템 클릭 가능 스타일 */
.timeline-item[data-exhibition] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item[data-exhibition]:hover {
    transform: translateY(-5px);
}





