/* ========================================
   Gallery 페이지 전용 스타일
   ======================================== */

/* 갤러리 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.gallery-item {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-white);
    padding: var(--spacing-lg);
    font-weight: 500;
    font-size: var(--font-base);
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 라이트박스 모달 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    cursor: pointer;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 70vw;
    max-height: 70vh;
    position: relative;
    margin: auto;
    display: block;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    font-size: var(--font-lg);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary, #333);
    font-size: var(--font-xl);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--text-white);
}

.lightbox-close::before {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-white);
    font-size: var(--font-2xl);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* 갤러리 카테고리 필터 */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: var(--font-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
}

/* 로딩 스피너 */
.gallery-loading {
    display: none;
    text-align: center;
    padding: var(--spacing-2xl);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

/* 360도 이미지 뷰어 스타일 - 서버 호환성 개선 */
.panorama-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    padding: 5rem 0;
    margin: 5rem 0;
    border-radius: 8px;
}

.panorama-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #222222);
    font-weight: 700;
}

.panorama-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary, #999999);
    margin-bottom: 3rem;
}

.panorama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.panorama-viewer {
    position: relative;
    background: var(--bg-white, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: grab;
    max-width: 100%;
}

.panorama-viewer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.panorama-viewer:active {
    cursor: grabbing;
}

.panorama-clickable {
    cursor: pointer;
    display: block;
    width: 100%;
    position: relative;
}

.panorama-clickable:hover {
    transform: scale(1.02);
}

.panorama-clickable:hover .panorama-help {
    opacity: 1;
    transform: scale(1.1);
}

.panorama-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.panorama-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
    max-width: 100%;
}

.panorama-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 136, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
}

.panorama-play-button i {
    margin-left: 3px; /* 플레이 아이콘 중앙 정렬 보정 */
}

.panorama-clickable:hover .panorama-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 136, 0, 0.4);
}

.panorama-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panorama-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.panorama-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.panorama-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.panorama-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.panorama-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.panorama-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.panorama-help {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 136, 0, 0.9);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    animation: fadeInOut 3s ease-in-out;
    z-index: 2;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* 새로운 360도 파노라마 모달 */
.panorama-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.panorama-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panorama-modal-content {
    position: relative;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    background: #000;
}

/* 새로운 360도 뷰어 컨테이너 */
.panorama-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    cursor: grab;
    max-width: 100%;
    max-height: 100%;
}

.panorama-viewer-container:active {
    cursor: grabbing;
}

/* 360도 뷰어 로딩 스피너 */
.panorama-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    z-index: 10;
}

.panorama-loader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.panorama-loader p {
    font-size: var(--font-base);
    opacity: 0.8;
    margin: 0;
}

/* 새로운 모달 컨트롤 */
.panorama-modal-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.panorama-modal-title {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* 새로운 컨트롤 버튼 스타일 */
.panorama-control-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.panorama-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
    font-family: inherit;
}

.panorama-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.4);
}

.panorama-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
}

.panorama-btn i {
    font-size: 1.1rem;
}

.panorama-btn span {
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
}

/* 예쁜 X 버튼 */
.panorama-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 100;
    font-family: Arial, sans-serif;
}

.panorama-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.4);
}

.panorama-modal-close:active {
    transform: scale(0.95);
}

/* X 모양 스타일링 */
.panorama-modal-close .close-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panorama-modal-close .close-icon::before,
.panorama-modal-close .close-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.panorama-modal-close .close-icon::before {
    transform: rotate(45deg);
}

.panorama-modal-close .close-icon::after {
    transform: rotate(-45deg);
}

/* 새로운 도움말 패널 */
.panorama-help-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    z-index: 200;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.panorama-help-panel h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-weight: 700;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.help-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.help-item span {
    font-size: 1rem;
    line-height: 1.5;
}

/* 서버 호환성을 위한 추가 스타일 */
.panorama-modal {
    /* 깔끔한 배경 - 블러 효과 제거 */
    background: rgba(0, 0, 0, 0.95) !important;
}

.panorama-viewer-container {
    /* GPU 가속 및 성능 최적화 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* 로딩 스피너 개선 */
.panorama-loader .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 폰트 대비책 */
.panorama-control-buttons {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .panorama-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }

    .panorama-section h2 {
        font-size: 2rem;
    }

    .panorama-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .panorama-container {
        height: 250px;
    }

    /* 모바일 360도 뷰어 컨테이너 최적화 - 경계 문제 해결 */
    .panorama-viewer-container {
        /* GPU 가속 활성화로 부드러운 렌더링 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        /* 터치 시 확대/축소 제어 */
        touch-action: pan-x pinch-zoom;
        -webkit-overflow-scrolling: touch;
        /* 경계 부분 매끄럽게 처리 */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* 모바일 줌 시 이미지 품질 개선 */
    .panorama-viewer-container img {
        /* 확대 시에도 선명한 이미지 유지 */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        /* 경계 부분 부드럽게 처리 */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .panorama-modal-close {
        width: 44px;
        height: 44px;
        top: 20px;
        right: 20px;
    }

    .panorama-modal-close .close-icon::before,
    .panorama-modal-close .close-icon::after {
        width: 16px;
    }

    .panorama-modal-controls {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .panorama-control-buttons {
        gap: 1rem;
        justify-content: center;
    }

    .panorama-btn {
        min-width: 70px;
        padding: 0.75rem 1rem;
    }
}

/* 태블릿 반응형 */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .lightbox-nav {
        font-size: var(--font-xl);
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
    
    .lightbox-caption {
        font-size: var(--font-base);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .gallery-img {
        height: 180px;
    }
    
    .lightbox-content {
        max-width: 90vw;
        max-height: 75vh;
    }
    
    .lightbox-nav {
        position: fixed;
        bottom: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        position: fixed;
    }
    
    .lightbox-caption {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        font-size: var(--font-sm);
    }
    
    .gallery-filters {
        gap: var(--spacing-sm);
    }
    
    .filter-btn {
        font-size: var(--font-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .panorama-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .panorama-container {
        height: 250px;
    }
    
    .panorama-controls {
        padding: var(--spacing-md);
    }
    
    .panorama-title {
        font-size: var(--font-sm);
    }
    
    .panorama-btn {
        font-size: var(--font-xs);
        padding: var(--spacing-xs);
    }
    
    .panorama-modal-content {
        width: 98vw;
        height: 85vh;
    }
    
    .panorama-modal-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .panorama-btn i {
        font-size: 1rem;
    }
    
    .panorama-btn span {
        font-size: 10px;
    }
    
    .panorama-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .panorama-modal-close .close-icon::before,
    .panorama-modal-close .close-icon::after {
        width: 14px;
        height: 2px;
    }
    
    .panorama-help-panel {
        width: 95%;
        padding: 1.5rem;
        max-width: none;
    }
    
    .panorama-help-panel h3 {
        font-size: 1.1rem;
    }
    
    .help-item {
        gap: 0.5rem;
        padding: 0.25rem;
    }
    
    .help-item span {
        font-size: 0.875rem;
    }
}

/* ========================================
   다크모드
   ======================================== */
[data-theme="dark"] .page-header {
    background: var(--dark-header-gradient);
}

[data-theme="dark"] .gallery-grid {
    background: transparent;
}

[data-theme="dark"] .gallery-item {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-item:hover {
    border-color: rgba(255, 136, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 136, 0, 0.1);
}

[data-theme="dark"] .gallery-caption {
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.95));
    color: var(--dark-text-primary);
}

[data-theme="dark"] .lightbox {
    background: rgba(10, 10, 15, 0.95);
}

[data-theme="dark"] .lightbox-close,
[data-theme="dark"] .lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .lightbox-close:hover,
[data-theme="dark"] .lightbox-nav:hover {
    background: rgba(255, 136, 0, 0.3);
}

[data-theme="dark"] .lightbox-counter {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .filter-btn {
    background: transparent;
    color: var(--dark-text-secondary);
    border-color: var(--glass-border);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="dark"] .panorama-section {
    background: var(--dark-surface);
}

[data-theme="dark"] .panorama-viewer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .panorama-viewer:hover {
    border-color: rgba(255, 136, 0, 0.3);
}

[data-theme="dark"] .panorama-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .panorama-modal {
    background: rgba(10, 10, 15, 0.95);
}

[data-theme="dark"] .panorama-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .panorama-clickable {
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .panorama-clickable:hover {
    border-color: rgba(255, 136, 0, 0.3);
}

/* 라이트박스 닫기/네비 버튼 */
[data-theme="dark"] .lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
    border-color: var(--glass-border);
}

[data-theme="dark"] .lightbox-close:hover {
    background: rgba(255, 136, 0, 0.4);
}

/* 로딩 스피너 */
[data-theme="dark"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
}

/* 파노라마 섹션 배경 */
[data-theme="dark"] .panorama-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

[data-theme="dark"] .panorama-section h2 {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .section-subtitle {
    color: var(--dark-text-tertiary);
}

/* 파노라마 뷰어 배경 */
[data-theme="dark"] .panorama-viewer {
    background: var(--dark-surface);
}

/* ========================================
   접근성: prefers-reduced-motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-img,
    .gallery-caption,
    .panorama-clickable,
    .panorama-help {
        animation: none !important;
        transition: none !important;
    }

    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover .gallery-img {
        transform: none;
    }
}

/* ========================================
   접근성: focus-visible 상태
   ======================================== */
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.panorama-clickable:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.panorama-btn:focus-visible,
.panorama-modal-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}