/* ========================================
   Valentine's Invitation - Scene Styles
   ======================================== */

/* ========================================
   Scene 1: Welcome
   ======================================== */
#welcome-scene {
    background: var(--bg-gradient);
}

#welcome-scene .stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#welcome-scene .penguin-container {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

#welcome-scene .welcome-text {
    position: relative;
    z-index: 2;
}

#welcome-scene .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: var(--spacing-xs);
}

#welcome-scene .from-line {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: var(--spacing-md);
    color: var(--strawberry-light);
}

/* ========================================
   Scene 2: Cave Hub
   ======================================== */
#hub-scene {
    background: var(--cave-gradient);
}

.hub-header {
    margin-bottom: var(--spacing-lg);
}

.hub-title {
    margin-top: var(--spacing-sm);
    color: var(--ice-light);
}

.caves-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.cave {
    width: 140px;
    height: 160px;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.cave:hover {
    transform: scale(1.05);
}

.cave.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.cave.locked:hover {
    transform: none;
}

.cave.completed .cave-complete-badge {
    display: flex;
}

.cave-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, rgba(168, 213, 229, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: caveGlow 2s ease-in-out infinite;
    z-index: 0;
}

.cave.locked .cave-glow {
    opacity: 0;
}

.cave.completed .cave-glow {
    background: radial-gradient(ellipse at center, rgba(255, 107, 138, 0.4) 0%, transparent 70%);
}

.cave-entrance {
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.cave-interior {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at bottom, rgba(168, 213, 229, 0.3) 0%, transparent 70%);
}

.cave.completed .cave-interior {
    background: radial-gradient(ellipse at bottom, rgba(255, 107, 138, 0.3) 0%, transparent 70%);
}

.cave-label {
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream);
}

.cave-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.cave.locked .cave-lock {
    display: block;
}

.lock-icon {
    width: 30px;
    height: 35px;
    background: #888;
    border-radius: 5px;
    position: relative;
}

.lock-icon::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    border: 4px solid #888;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.cave-complete-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hub-penguin {
    margin-top: var(--spacing-md);
}

/* ========================================
   Scene 3: Cave Scenes (Common)
   ======================================== */
.cave-scene {
    background: var(--cave-gradient);
}

.cave-scene .scene-content {
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
}

.cave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
}

.cave-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.cave-instruction {
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    font-size: 1rem;
}

/* ========================================
   Scene 3a: Memory Match - Sort Photos into Folders
   ======================================== */
.memory-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: var(--spacing-md);
    overflow-y: auto;
    justify-content: space-between;
}

/* Folders row at top */
.sort-folders-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.sort-folder {
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
}

.sort-folder.drag-over {
    transform: scale(1.1);
}

.sort-folder.drag-over .sort-folder-body {
    box-shadow: 0 0 25px rgba(109, 179, 255, 0.7);
    border: 2px solid var(--aurora-blue);
}

.sort-folder.correct .sort-folder-body {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.sort-folder.incorrect .sort-folder-body {
    animation: shake 0.3s ease;
}

.sort-folder-icon {
    width: 80px;
    height: 70px;
    margin: 0 auto;
    position: relative;
}

.sort-folder-tab {
    position: absolute;
    top: 0;
    left: 8px;
    width: 28px;
    height: 12px;
    background: var(--strawberry-pink);
    border-radius: 5px 5px 0 0;
    z-index: 1;
}

.sort-folder-body {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, var(--strawberry-pink), var(--strawberry-red));
    border-radius: 5px 8px 8px 8px;
    box-shadow: 0 5px 15px rgba(255, 107, 138, 0.4);
    overflow: hidden;
    transition: all var(--transition-fast);
}

/* Preview images inside folder */
.folder-preview-imgs {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.folder-preview-imgs img {
    position: absolute;
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.folder-preview-imgs img:nth-child(1) { transform: rotate(-8deg) translateX(-12px); z-index: 1; }
.folder-preview-imgs img:nth-child(2) { transform: rotate(0deg); z-index: 2; }
.folder-preview-imgs img:nth-child(3) { transform: rotate(8deg) translateX(12px); z-index: 3; }

.sort-folder-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cream);
    margin-top: 6px;
    display: block;
}

.sort-folder-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--aurora-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Photo to sort */
.photo-to-sort {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-photo-frame {
    width: 140px;
    height: 140px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--ice-light);
    cursor: grab;
    transition: all var(--transition-fast);
    background: var(--penguin-black);
}

.sort-photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.sort-photo-frame.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: scale(0.95);
}

.sort-photo-frame.touch-dragging {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: var(--aurora-blue);
}

.sort-photo-frame.shake {
    animation: shake 0.4s ease;
}

.sort-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sort-hint {
    font-size: 0.9rem;
    color: var(--ice-light);
    opacity: 0.8;
}

/* Progress bar */
.sort-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--strawberry-pink), var(--aurora-purple));
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 600;
}

@media (max-width: 500px) {
    .sort-folders-row {
        gap: var(--spacing-sm);
    }

    .sort-folder-icon {
        width: 65px;
        height: 55px;
    }

    .sort-folder-body {
        height: 45px;
    }

    .sort-folder-tab {
        width: 22px;
        height: 10px;
    }

    .folder-preview-imgs img {
        width: 25px;
        height: 25px;
    }

    .sort-folder-label {
        font-size: 0.7rem;
    }

    .sort-photo-frame {
        width: 110px;
        height: 110px;
    }
}

/* ========================================
   Scene 3b: Catch Game
   ======================================== */
.catch-game-area {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 60vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 20px;
    overflow: hidden;
    touch-action: none;
}

.catch-penguin {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.1s ease-out;
    z-index: 10;
}

.falling-item {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 5;
}

.falling-item.strawberry-item::before {
    content: '';
    width: 30px;
    height: 35px;
    background: var(--strawberry-red);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.falling-item.heart-item::before {
    content: '';
    width: 30px;
    height: 28px;
    background: var(--strawberry-pink);
    transform: rotate(-45deg);
    position: relative;
}

.falling-item.heart-item::before {
    border-radius: 50% 0 50% 50%;
}

.catch-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.catch-start-overlay.hidden {
    display: none;
}

/* ========================================
   Scene 3c: Quiz
   ======================================== */
.quiz-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-md);
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--cream);
    min-height: 60px;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.quiz-answer {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--cream);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 10px;
    font-size: 1rem;
    text-align: left;
    transition: all var(--transition-fast);
}

.quiz-answer:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--ice-light);
    transform: translateX(5px);
}

.quiz-answer.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    animation: popIn 0.3s ease;
}

.quiz-answer.incorrect {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    animation: shake 0.3s ease;
}

.quiz-feedback {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    min-height: 30px;
}

.quiz-feedback.hint {
    color: var(--coral);
}

.quiz-feedback.success {
    color: #4CAF50;
}

/* ========================================
   Scene 4: Reveal
   ======================================== */
#reveal-scene {
    background: var(--bg-gradient);
}

.reveal-container {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.envelope {
    width: 200px;
    height: 140px;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-medium);
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope.opened {
    display: none;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f5, #ffe4e6);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #fff0f0, #ffd6d9);
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    transform-origin: top center;
    transition: transform 0.8s ease;
    z-index: 2;
}

.envelope.opening .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 36px;
    background: var(--strawberry-red);
    clip-path: path('M20,35 C20,35 0,20 0,10 C0,0 10,0 20,10 C30,0 40,0 40,10 C40,20 20,35 20,35 Z');
}

.envelope-prompt {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    opacity: 0.8;
    animation: bounce 1.5s ease infinite;
}

.envelope-prompt.hidden {
    display: none;
}

.invitation-card {
    display: none;
    background: linear-gradient(135deg, #fff5f5, #ffe4e6);
    border-radius: 15px;
    padding: var(--spacing-lg);
    max-width: 450px;
    color: var(--penguin-black);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: cardRise 0.8s ease forwards;
}

.invitation-card.show {
    display: block;
}

.invitation-intro {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--strawberry-dark);
}

.invitation-title {
    color: var(--strawberry-red);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.invitation-details {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: rgba(255, 107, 138, 0.1);
    border-radius: 10px;
}

.invitation-details .date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--strawberry-red);
}

.invitation-details .description {
    font-style: italic;
    margin-top: var(--spacing-xs);
}

.invitation-message {
    margin: var(--spacing-md) 0;
    font-family: var(--font-fancy);
    font-size: 1.1rem;
    line-height: 1.8;
}

.invitation-signature {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--strawberry);
    margin-top: var(--spacing-sm);
}

.invitation-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.reveal-penguin {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* ========================================
   Scene 5: Celebration
   ======================================== */
#celebration-scene {
    background: var(--bg-gradient);
    overflow-y: auto;
}

#celebration-scene .scene-content {
    max-width: 100%;
    padding: var(--spacing-md);
    min-height: 100%;
}

#confetti-container,
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.celebration-message {
    position: relative;
    z-index: 10;
    padding-bottom: var(--spacing-xl);
}

.love-text {
    font-size: 3rem;
    color: var(--strawberry-pink);
    text-shadow: 0 0 30px rgba(255, 107, 138, 0.5);
    animation: heartbeat 1s ease-in-out infinite;
    margin-bottom: var(--spacing-md);
}

.celebration-penguin {
    margin: var(--spacing-lg) auto;
}

.heart-held {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 27px;
    background: var(--strawberry-pink);
    clip-path: path('M15,25 C15,25 0,15 0,7 C0,0 7,0 15,7 C23,0 30,0 30,7 C30,15 15,25 15,25 Z');
    animation: heartbeat 1s ease-in-out infinite;
}

.final-message {
    font-size: 1.3rem;
    margin-top: var(--spacing-lg);
    font-style: italic;
}

@media (max-width: 480px) {
    .love-text {
        font-size: 2rem;
    }

    .invitation-card {
        padding: var(--spacing-md);
    }

    .invitation-title {
        font-size: 1.2rem;
    }

    .envelope {
        width: 160px;
        height: 112px;
    }
}

/* ========================================
   Photo Gallery - Event Folders
   ======================================== */
.photo-gallery {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.gallery-folders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
}

.gallery-folder {
    cursor: pointer;
    transition: transform var(--transition-fast);
    text-align: center;
}

.gallery-folder:hover {
    transform: scale(1.08);
}

.gallery-folder:active {
    transform: scale(0.98);
}

.folder-icon {
    width: 120px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 10px;
    width: 40px;
    height: 15px;
    background: linear-gradient(135deg, var(--strawberry-pink), var(--strawberry-red));
    border-radius: 5px 5px 0 0;
    z-index: 1;
}

.folder-body {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 85px;
    background: linear-gradient(180deg, var(--strawberry-pink) 0%, var(--strawberry-red) 100%);
    border-radius: 5px 10px 10px 10px;
    box-shadow: 0 8px 25px rgba(255, 107, 138, 0.4);
    overflow: hidden;
}

.folder-preview {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-preview::before {
    content: '📷';
    font-size: 2rem;
    opacity: 0.8;
}

.folder-label {
    margin-top: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Expanded Gallery View */
.gallery-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.gallery-expanded.open {
    opacity: 1;
    visibility: visible;
}

.expanded-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.5);
    gap: var(--spacing-md);
}

.gallery-back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.expanded-title {
    font-size: 1.8rem;
    color: var(--strawberry-pink);
    margin: 0;
}

.expanded-photos {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
    align-content: start;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.6);
}

.no-photos p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.no-photos-hint {
    font-size: 0.9rem !important;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm);
    border-radius: 5px;
}

/* Photo Lightbox */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.photo-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .gallery-folders {
        gap: var(--spacing-md);
    }

    .folder-icon {
        width: 100px;
        height: 85px;
    }

    .folder-body {
        height: 70px;
    }

    .folder-label {
        font-size: 1.1rem;
    }

    .expanded-photos {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
}
