html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    touch-action: none;
    font-family: 'Noto Sans KR', sans-serif;
}

:root {
    --color-cyan: #04D9D9;
    --color-deep-purple: #5D68A6;
    --accent-gradient: linear-gradient(135deg, var(--color-deep-purple) 0%, #04ADBF 50%, var(--color-cyan) 100%);
}

#viewer {
    position: fixed;
    inset: 0;
}

.gallery-ui {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 0.02em;
    font-family: 'Noto Sans KR', sans-serif;
}

.back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn::before {
    content: '←';
    font-size: 16px;
}

.back-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.1);
}

#art-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

#art-modal.show {
    display: flex;
}

/*창 크기 조정*/
.modal-content {
    background: #111;
    color: white;
    max-width: 600px;
    width: 92%;
    padding: 28px;
    border-radius: 14px;
}

.modal-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal-content h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.modal-content .author {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}