/* ==========================================================================
   MOMENTS PHOTOGRAPHY WALL (MOTIONIN.DESIGN ARCHITECTURE)
   Rich Forest Green (#346841) Edition
   ========================================================================== */

:root {
    --moments-bg: #346841;
    --moments-bg-dark: #22472b;
    --moments-forest-deep: #1e4528;
    --moments-forest-primary: #346841;
    --moments-card-bg: #fdfaf3;
    --moments-lime-accent: #baeb78;
    --moments-gold-accent: #ffd014;
}

.moments-wall-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--moments-bg);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    perspective: 1400px;
    -webkit-perspective: 1400px;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

/* Atmospheric Ambient Glow behind the wall */
.moments-ambient-glow {
    display: none !important;
}

/* Subtle Vignette Edge Mask harmonized with deep green */
.moments-vignette-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: 
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(26, 54, 33, 0.5) 100%),
        linear-gradient(to bottom, rgba(26, 54, 33, 0.45) 0%, transparent 14%, transparent 86%, rgba(26, 54, 33, 0.55) 100%);
}

/* Top Minimal Navigation Bar */
.moments-header-hud {
    position: fixed;
    top: 24px;
    left: 36px;
    right: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.moments-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.moments-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 36, 26, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(186, 235, 120, 0.3);
    color: #fdfaf3;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.moments-home-btn:hover {
    background: #1e4528;
    color: #baeb78;
    border-color: #baeb78;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.moments-title-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 600;
    color: #fdfaf3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.moments-hud-instructions {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fdfaf3;
    background: rgba(18, 36, 26, 0.65);
    backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(186, 235, 120, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Wall Stage (Absolute 3D World) */
.moments-stage {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

/* Individual Cell / Frame in the Lattice */
.moments-cell {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    padding: 0;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.3s ease;
    contain: layout paint;
}

@media (max-width: 768px) {
    .moments-cell {
        transform-style: flat;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

.moments-cell:hover {
    box-shadow: 0 20px 48px -4px rgba(0, 0, 0, 0.75);
    z-index: 999 !important;
}

.moments-cell-media {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.moments-cell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
    pointer-events: none;
}

.moments-cell:hover .moments-cell-img {
    transform: scale(1.07);
}

/* Hover meta overlay on the cell */
.moments-cell-meta { display: none !important; }

.moments-cell:hover .moments-cell-meta { display: none !important; }

.moments-cell-cat {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #baeb78; /* Lime accent */
}

.moments-cell-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile & Touch Floating Controls */
.moments-touch-controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 50;
    background: rgba(18, 36, 26, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(186, 235, 120, 0.3);
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.moments-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #244b2f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.moments-ctrl-btn:hover {
    background: #baeb78;
    color: #1e4528;
    transform: scale(1.08);
}

/* ==========================================================================
   CINEMATIC DETAIL FOCUS MODAL
   ========================================================================== */
.moments-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(18, 36, 26, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.moments-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.moments-modal-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    max-width: 1180px;
    width: 90vw;
    height: 84vh;
    background: #fdfaf3;
    border: 1px solid rgba(186, 235, 120, 0.25);
    border-radius: 28px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: scale(0.92) translateY(24px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.moments-modal-backdrop.active .moments-modal-card {
    transform: scale(1) translateY(0);
}

.moments-modal-media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #346841;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
}

.moments-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.moments-modal-sidebar {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fdfaf3;
    border-left: 1px solid rgba(18, 36, 26, 0.08);
    overflow-y: auto;
}

.moments-modal-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.moments-modal-badge {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #fdfaf3;
    background: #346841;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
}

.moments-modal-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #556b5e;
}

.moments-modal-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.7rem;
    font-weight: 600;
    color: var(--moments-forest-deep);
    line-height: 1.15;
    margin-bottom: 14px;
}

.moments-modal-loc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #346841;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.moments-modal-story {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #3c4f44;
    margin-bottom: 28px;
}

/* Full EXIF Shot Metadata Grid */
.moments-modal-exif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    background: #edf3ee;
    border: 1px solid rgba(52, 104, 65, 0.15);
    margin-bottom: 24px;
}

.moments-exif-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.moments-exif-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #556b5e;
    font-weight: 600;
}

.moments-exif-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--moments-forest-deep);
    font-family: 'Plus Jakarta Sans', monospace;
}

.moments-modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(18, 36, 26, 0.14);
    background: #fff;
    color: var(--moments-forest-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    z-index: 20;
}

.moments-modal-close-btn:hover {
    background: #346841;
    color: #fff;
    transform: rotate(90deg);
}

.moments-modal-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .moments-touch-controls {
        display: flex;
    }

    .moments-modal-card {
        grid-template-columns: 1fr;
        height: 90vh;
        max-height: 90vh;
    }

    .moments-modal-media-frame {
        height: 48%;
    }

    .moments-modal-sidebar {
        height: 52%;
        padding: 24px 20px;
    }

    .moments-modal-heading {
        font-size: 1.9rem;
    }
}

@media (max-width: 600px) {
    .moments-header-hud {
        left: 20px;
        right: 20px;
        top: 20px;
    }

    .moments-hud-instructions {
        display: none;
    }
}


/* ==========================================================================
   CINEMATIC INTRO LOADER OVERLAY WITH TYPING ANIMATION
   Preloads all photography assets smoothly into browser memory
   ========================================================================== */

.moments-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #183720;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
}

.moments-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content-wrap {
    max-width: 680px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-camera-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(186, 235, 120, 0.12);
    border: 1px solid rgba(186, 235, 120, 0.25);
    color: #baeb78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 26px;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 20px rgba(186, 235, 120, 0.3); }
}

.loader-quote-text {
    margin: 0 0 20px 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    color: #fdfaf3;
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loader-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #baeb78;
    vertical-align: middle;
    margin-left: 4px;
    animation: loaderBlink 0.75s step-start infinite;
}

@keyframes loaderBlink {
    50% { opacity: 0; }
}

.loader-author {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #baeb78;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader-author.show {
    opacity: 1;
    transform: translateY(0);
}

.loader-progress-indicator {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    margin-top: 32px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #baeb78 0%, #ffd014 100%);
    border-radius: 999px;
    transition: width 0.3s ease-out;
}

@media (max-width: 600px) {
    .loader-quote-text {
        font-size: 1.4rem;
        min-height: 120px;
    }
}

