/* ==========================================
   MEMORY 3 — FINAL
   SOME MOMENTS JUST STAY
========================================== */

#memory3{

    position:fixed;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    height:100%;

    padding:24px 20px 70px;

    box-sizing:border-box;

    overflow:hidden;

    text-align:center;

    color:#fff;

    background:

    radial-gradient(
        circle at 50% 45%,
        rgba(255,215,106,.10),
        transparent 48%
    ),

    linear-gradient(
        180deg,
        #030711 0%,
        #071426 52%,
        #091d32 100%
    );
}


/* ==========================================
   VIGNETTE
========================================== */

#memory3::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

    radial-gradient(
        circle,
        transparent 40%,
        rgba(0,0,0,.20) 74%,
        rgba(0,0,0,.58) 100%
    );

    z-index:10;
}


/* ==========================================
   MAIN CONTENT
========================================== */

.memory3-content{

    position:relative;

    z-index:20;

    width:100%;

    max-width:350px;

    margin:0 auto;

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;
}


/* ==========================================
   INTRO
========================================== */

.memory3-intro{

    width:100%;

    display:flex;

    flex-direction:column;

    align-items:center;

    opacity:1;

    visibility:visible;

    transform:translateY(0);

    transition:

        opacity .7s ease,

        transform .8s
        cubic-bezier(.22,1,.36,1);
}


/* ==========================================
   INTRO — REVEALED STATE
========================================== */

#memory3.memory3-revealed .memory3-intro{

    opacity:0;

    visibility:hidden;

    transform:translateY(-18px);

    pointer-events:none;

    position:absolute;
}


/* ==========================================
   KICKER
========================================== */

.memory3-kicker{

    width:100%;

    margin:0;

    font-size:10px;

    font-weight:600;

    letter-spacing:4px;

    line-height:1.6;

    color:#D9B65C;
}


/* ==========================================
   DIVIDER
========================================== */

.memory3-line{

    display:flex;

    align-items:center;

    justify-content:center;

    width:170px;

    height:22px;

    margin:20px auto 25px;
}


.memory3-line span{

    width:55px;

    height:1px;

    display:block;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255,215,106,.65)
        );
}


.memory3-line span:last-child{

    background:

        linear-gradient(
            90deg,
            rgba(255,215,106,.65),
            transparent
        );
}


.memory3-line i{

    width:30px;

    font-size:15px;

    font-style:normal;

    color:#FFD76A;

    text-shadow:

        0 0 12px
        rgba(255,215,106,.8);
}


/* ==========================================
   TITLE
========================================== */

.memory3-title{

    width:100%;

    margin:0;

    padding:0;

    font-size:
        clamp(38px,10vw,48px);

    font-weight:700;

    line-height:1.15;

    letter-spacing:-.8px;

    color:#fff;
}


/* ==========================================
   TEXT
========================================== */

.memory3-text{

    width:100%;

    max-width:315px;

    margin:28px auto 0;

    padding:0;

    font-size:16px;

    font-weight:400;

    line-height:1.75;

    color:
        rgba(255,255,255,.72);
}


/* ==========================================
   SHOW ME
========================================== */

.memory3-reveal{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:14px;

    width:190px;

    height:55px;

    margin:32px auto 0;

    padding:0 22px;

    border:
        1px solid
        rgba(255,215,106,.38);

    border-radius:999px;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    color:#FFE7A0;

    font-family:inherit;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    box-sizing:border-box;

    box-shadow:

        0 0 24px
        rgba(255,215,106,.06);

    transition:

        transform .25s ease,

        opacity .35s ease,

        background .3s ease,

        border-color .3s ease,

        box-shadow .3s ease;
}


.memory3-reveal:hover{

    transform:translateY(-2px);

    background:
        rgba(255,215,106,.08);

    border-color:
        rgba(255,215,106,.65);

    box-shadow:

        0 8px 30px
        rgba(255,215,106,.13);
}


.memory3-reveal:active{

    transform:scale(.97);
}


.memory3-reveal b{

    font-size:19px;

    font-weight:400;

    transition:
        transform .25s ease;
}


.memory3-reveal:hover b{

    transform:translateX(4px);
}


/* ==========================================
   PHOTO
========================================== */

.memory3-photo-wrap{

    position:relative;

    z-index:25;

    width:100%;

    margin:0 auto;

    border-radius:22px;

    overflow:hidden;

    background:#081322;

    border:
        1px solid
        rgba(255,255,255,.10);

    box-shadow:

        0 20px 60px
        rgba(0,0,0,.38),

        0 0 35px
        rgba(255,215,106,.06);

    opacity:0;

    visibility:hidden;

    transform:

        translateY(25px)
        scale(.97);

    filter:blur(12px);

    transition:

        opacity 1s ease,

        transform 1s
        cubic-bezier(.22,.61,.36,1),

        filter 1.2s ease;

    pointer-events:none;

    isolation:isolate;
}


.memory3-photo-wrap.visible{

    opacity:1;

    visibility:visible;

    transform:

        translateY(0)
        scale(1);

    filter:blur(0);

    pointer-events:auto;
}


.memory3-photo-wrap::before,
.memory3-photo-wrap::after{

    content:none !important;

    display:none !important;
}


.memory3-photo-wrap img{

    display:block;

    width:100%;

    height:auto;

    max-height:560px;

    object-fit:cover;

    object-position:center;

    margin:0;

    padding:0;

    border:0;

    outline:none;

    vertical-align:middle;

    font-size:0;

    color:transparent;

    text-shadow:none;
}


/* ==========================================
   CAPTION
========================================== */

.memory3-caption{

    position:relative;

    z-index:25;

    width:100%;

    max-width:330px;

    margin:22px auto 0;

    padding:0;

    font-size:15px;

    line-height:1.7;

    color:
        rgba(255,255,255,.70);

    opacity:0;

    visibility:hidden;

    transform:translateY(12px);

    transition:

        opacity .8s ease .45s,

        transform .8s ease .45s;
}


.memory3-caption.visible{

    opacity:1;

    visibility:visible;

    transform:translateY(0);
}


/* ==========================================
   THERE'S MORE
========================================== */

.memory3-next{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:13px;

    width:190px;

    height:50px;

    margin:22px auto 0;

    padding:0 22px;

    box-sizing:border-box;

    border:
        1px solid
        rgba(255,215,106,.32);

    border-radius:999px;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);

    color:#FFE7A0;

    font-family:inherit;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(14px);

    pointer-events:none;

    transition:

        opacity .7s ease,

        transform .7s ease,

        border-color .3s ease,

        background .3s ease;
}


.memory3-next.visible{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

    pointer-events:auto;
}


.memory3-next b{

    font-size:18px;

    font-weight:400;

    transition:
        transform .25s ease;
}


.memory3-next:hover{

    background:
        rgba(255,215,106,.07);

    border-color:
        rgba(255,215,106,.58);
}


.memory3-next:hover b{

    transform:translateX(4px);
}


/* ==========================================
   BOTTOM NOTE
========================================== */

.memory3-note{

    position:absolute;

    left:50%;

    bottom:22px;

    z-index:20;

    width:100%;

    margin:0;

    transform:translateX(-50%);

    font-size:10px;

    letter-spacing:1.5px;

    line-height:1.5;

    color:
        rgba(255,255,255,.28);
}


/* ==========================================
   GOLDEN GLOW
========================================== */

.memory3-glow{

    position:absolute;

    left:50%;

    top:44%;

    width:370px;

    height:370px;

    transform:
        translate(-50%,-50%);

    border-radius:50%;

    background:

        radial-gradient(
            circle,
            rgba(255,215,106,.12),
            transparent 68%
        );

    filter:blur(38px);

    pointer-events:none;

    z-index:1;

    animation:
        memory3Glow 8s ease-in-out infinite;
}


@keyframes memory3Glow{

    0%,100%{

        transform:
            translate(-50%,-50%)
            scale(1);

        opacity:.42;
    }

    50%{

        transform:
            translate(-50%,-50%)
            scale(1.13);

        opacity:.72;
    }
}


/* ==========================================
   STARS
========================================== */

.memory3-stars{

    position:absolute;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:3;
}


.memory3-stars span{

    position:absolute;

    display:block;

    width:2px;

    height:2px;

    border-radius:50%;

    background:#fff;

    box-shadow:
        0 0 8px
        rgba(255,255,255,.75);

    opacity:.3;

    animation:
        memory3Twinkle 4.5s
        ease-in-out infinite;
}


.memory3-stars span:nth-child(1){
    top:14%;
    left:18%;
}

.memory3-stars span:nth-child(2){
    top:25%;
    left:83%;
    animation-delay:.8s;
}

.memory3-stars span:nth-child(3){
    top:46%;
    left:8%;
    animation-delay:1.6s;
}

.memory3-stars span:nth-child(4){
    top:61%;
    left:91%;
    animation-delay:2.3s;
}

.memory3-stars span:nth-child(5){
    top:78%;
    left:24%;
    animation-delay:1.1s;
}

.memory3-stars span:nth-child(6){
    top:86%;
    left:76%;
    animation-delay:2.9s;
}


@keyframes memory3Twinkle{

    0%,100%{

        opacity:.18;

        transform:scale(1);
    }

    50%{

        opacity:.8;

        transform:scale(1.8);
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width:420px){

    #memory3{

        align-items:flex-start;

        padding:
            95px 20px 70px;

        overflow-y:auto;

        overflow-x:hidden;
    }


    .memory3-content{

        max-width:340px;

        margin-top:0;

        padding-bottom:30px;
    }


    .memory3-kicker{

        font-size:9.5px;

        letter-spacing:3.5px;
    }


    .memory3-line{

        margin-top:18px;

        margin-bottom:22px;
    }


    .memory3-title{

        font-size:40px;

        line-height:1.15;
    }


    .memory3-text{

        max-width:300px;

        margin-top:24px;

        font-size:15.5px;

        line-height:1.7;
    }


    .memory3-reveal{

        width:190px;

        height:54px;

        margin-top:28px;
    }


    .memory3-photo-wrap{

        margin-top:0;

        border-radius:20px;
    }


    .memory3-photo-wrap img{

        width:100%;

        height:auto;

        max-height:none;

        object-fit:contain;
    }


    .memory3-caption{

        max-width:300px;

        margin-top:19px;

        font-size:14.5px;
    }


    .memory3-next{

        width:190px;

        height:48px;

        margin-top:20px;
    }

}


/* ==========================================
   SHORT SCREEN
========================================== */

@media (max-height:700px){

    #memory3{

        padding-top:75px;
    }


    .memory3-note{

        display:none;
    }

}

#memory3.memory3-revealed .memory3-note{

    opacity:0;

    visibility:hidden;

    transition:
        opacity .5s ease;
}