/*==========================
        GOOGLE FONT
===========================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/*==========================
        RESET
===========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:#fff;
    min-height:100vh;
    overflow-x:hidden;
}


/*==========================
          HEADER
===========================*/

header{
    width:100%;
    padding:18px 8%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:rgba(15,23,42,.82);
    backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(79,195,247,.15);

    position:sticky;
    top:0;
    z-index:999;
}

.logo h2{
    color:#4fc3f7;
    font-size:26px;
    font-weight:600;
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    text-decoration:none;
    color:#fff;

    margin-left:25px;

    font-weight:500;

    transition:.3s;
}

nav a:hover,
nav a.active{
    color:#ff66c4;

    text-shadow:
        0 0 10px rgba(255,102,196,.6);
}


/*==========================
       GALLERY TITLE
===========================*/

.gallery-title{
    width:90%;
    max-width:1000px;

    margin:60px auto 45px;

    text-align:center;
}

.nostalgia-badge{
    display:inline-block;

    padding:6px 18px;

    margin-bottom:15px;

    border:1px solid rgba(79,195,247,.4);

    border-radius:30px;

    color:#4fc3f7;

    font-size:12px;

    letter-spacing:2px;

    background:rgba(79,195,247,.05);

    box-shadow:
        0 0 15px rgba(79,195,247,.15);
}

.gallery-title h1{
    font-size:42px;

    color:#4fc3f7;

    margin-bottom:12px;

    text-shadow:
        0 0 15px rgba(79,195,247,.3);
}

.gallery-title p{
    color:#d6d6d6;

    font-size:16px;

    line-height:1.7;
}

.gallery-title .gallery-subtitle{
    margin-top:8px;

    color:#ff8dcc;

    font-size:13px;

    letter-spacing:.5px;
}


/*==========================
       MASONRY GALLERY
===========================*/

.gallery{

    width:90%;
    max-width:1300px;

    margin:0 auto 80px;

    column-count:3;

    column-gap:22px;
}


/*==========================
       GALLERY CARD
===========================*/

.gallery-item{

    position:relative;

    display:inline-block;

    width:100%;

    margin:0 0 22px;

    break-inside:avoid;

    overflow:hidden;

    border-radius:20px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 8px 30px rgba(0,0,0,.25);

    transition:
        transform .4s ease,
        box-shadow .4s ease;

}


/* Blue + Pink glow */

.gallery-item::before{

    content:"";

    position:absolute;

    inset:-2px;

    border-radius:22px;

    background:
        linear-gradient(
            135deg,
            rgba(79,195,247,.35),
            transparent 45%,
            rgba(255,102,196,.35)
        );

    opacity:.35;

    pointer-events:none;

    z-index:0;
}

.gallery-item:hover{

    transform:translateY(-5px);

    box-shadow:
        0 12px 35px rgba(33,150,243,.18),
        0 12px 35px rgba(255,105,180,.12);
}


/*==========================
        MEMORY LABEL
===========================*/

.memory-label{

    position:absolute;

    top:12px;
    left:12px;

    z-index:3;

    padding:6px 12px;

    border-radius:20px;

    background:rgba(8,17,31,.75);

    backdrop-filter:blur(8px);

    border:1px solid rgba(255,255,255,.15);

    color:#fff;

    font-size:11px;

    letter-spacing:.3px;
}


/*==========================
        GALLERY IMAGE
===========================*/

.gallery-image{

    width:100%;

    height:auto;

    display:block;

    position:relative;

    z-index:1;

    border-radius:18px 18px 0 0;

    cursor:pointer;

    transition:
        transform .5s ease,
        filter .5s ease;

    /* Don't crop old photos */

    object-fit:contain;

    background:#08111f;
}

.gallery-item:hover .gallery-image{

    transform:scale(1.025);

    filter:brightness(1.08);
}


/*==========================
        MEMORY INFO
===========================*/

.memory-info{

    position:relative;

    z-index:2;

    padding:18px 16px 20px;

    background:
        linear-gradient(
            180deg,
            rgba(15,23,42,.95),
            rgba(8,17,31,.98)
        );
}

.memory-info h3{

    color:#4fc3f7;

    font-size:17px;

    font-weight:600;

    margin-bottom:5px;
}

.memory-caption{

    color:#b9c1ce;

    font-size:12px;

    line-height:1.6;

    margin-bottom:14px;
}


/*==========================
       PEOPLE TAGS
===========================*/

.people-list{

    display:flex;

    flex-wrap:wrap;

    gap:7px;
}

.person-tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:34px;

    padding:6px 11px;

    border-radius:20px;

    text-decoration:none;

    font-size:11px;

    font-weight:500;

    color:#fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

    -webkit-tap-highlight-color:transparent;
}


/* Male */

.person-tag.male{

    border:1px solid rgba(79,195,247,.45);

    background:rgba(33,150,243,.10);

    color:#7dd7ff;
}

.person-tag.male:hover{

    background:rgba(33,150,243,.22);

    box-shadow:
        0 0 12px rgba(33,150,243,.35);

    transform:translateY(-2px);
}


/* Female */

.person-tag.female{

    border:1px solid rgba(255,102,196,.45);

    background:rgba(255,102,196,.10);

    color:#ff9bd7;
}

.person-tag.female:hover{

    background:rgba(255,102,196,.20);

    box-shadow:
        0 0 12px rgba(255,102,196,.35);

    transform:translateY(-2px);
}


/*==========================
          LIGHTBOX
===========================*/

.lightbox{

    display:none;

    position:fixed;

    inset:0;

    padding:20px;

    background:rgba(0,0,0,.94);

    justify-content:center;

    align-items:center;

    z-index:9999;
}

.lightbox.show{
    display:flex;
}

.lightbox img{

    display:block;

    max-width:95vw;

    max-height:90vh;

    width:auto;

    height:auto;

    object-fit:contain;

    border-radius:15px;

    box-shadow:
        0 0 25px rgba(79,195,247,.25),
        0 0 25px rgba(255,102,196,.15);
}

.close{

    position:absolute;

    top:15px;
    right:25px;

    width:45px;
    height:45px;

    display:flex;

    align-items:center;
    justify-content:center;

    color:white;

    font-size:38px;

    line-height:1;

    cursor:pointer;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    transition:.3s;

    z-index:5;
}

.close:hover{

    color:#ff66c4;

    background:rgba(255,255,255,.15);

    transform:rotate(90deg);
}


/*==========================
          FOOTER
===========================*/

footer{

    text-align:center;

    padding:30px 20px;

    background:#08111f;

    border-top:1px solid rgba(79,195,247,.12);

    margin-top:50px;
}

footer p{

    margin:8px 0;

    color:#d6d6d6;

    font-size:13px;
}

footer strong{

    color:#4fc3f7;

    text-shadow:
        0 0 8px rgba(79,195,247,.35);
}

.concept span{

    color:whitesmoke;

    font-size:10px;

    line-height:1.7;
}


/*==========================
        TABLET VIEW
===========================*/

@media(max-width:992px){

    header{

        padding:16px 5%;

    }

    .gallery{

        width:92%;

        column-count:2;

        column-gap:18px;

    }

    .gallery-title{

        margin-top:45px;

    }

    .gallery-title h1{

        font-size:35px;

    }

}


/*==========================
        MOBILE VIEW
===========================*/

@media(max-width:600px){

    body{

        overflow-x:hidden;

    }


    /* Header */

    header{

        padding:14px 5%;

        flex-direction:column;

        gap:12px;

        position:relative;

    }

    .logo h2{

        font-size:19px;

        text-align:center;

    }

    nav{

        width:100%;

        justify-content:center;

        gap:5px;

    }

    nav a{

        margin:0 7px;

        font-size:13px;

    }


    /* Title */

    .gallery-title{

        width:90%;

        margin:38px auto 30px;

    }

    .nostalgia-badge{

        font-size:10px;

        padding:5px 13px;

        letter-spacing:1.5px;

    }

    .gallery-title h1{

        font-size:28px;

        line-height:1.3;

    }

    .gallery-title p{

        font-size:13px;

        line-height:1.7;

    }

    .gallery-title .gallery-subtitle{

        font-size:11px;

    }


    /* Gallery */

    .gallery{

        width:92%;

        column-count:1;

        column-gap:0;

        margin-bottom:50px;

    }

    .gallery-item{

        margin-bottom:20px;

        border-radius:17px;

    }


    /* Image */

    .gallery-image{

        width:100%;

        height:auto;

        object-fit:contain;

    }


    /* Label */

    .memory-label{

        top:9px;

        left:9px;

        padding:5px 9px;

        font-size:9px;

    }


    /* Info */

    .memory-info{

        padding:15px 13px 17px;

    }

    .memory-info h3{

        font-size:15px;

    }

    .memory-caption{

        font-size:11px;

        margin-bottom:12px;

    }


    /* People */

    .people-list{

        gap:7px;

    }

    .person-tag{

        min-height:38px;

        padding:7px 11px;

        font-size:11px;

        cursor:pointer;

    }


    /* Lightbox */

    .lightbox{

        padding:12px;

    }

    .lightbox img{

        max-width:94vw;

        max-height:82vh;

        border-radius:12px;

    }

    .close{

        top:10px;

        right:12px;

        width:40px;

        height:40px;

        font-size:32px;

    }


    /* Footer */

    footer{

        padding:25px 15px;

        margin-top:30px;

    }

    footer p{

        font-size:11px;

    }

    .concept span{

        font-size:9px;

    }

}


/*==========================
      VERY SMALL PHONES
===========================*/

@media(max-width:380px){

    .logo h2{

        font-size:17px;

    }

    nav a{

        font-size:12px;

        margin:0 5px;

    }

    .gallery-title h1{

        font-size:25px;

    }

    .person-tag{

        font-size:10px;

        padding:7px 9px;

    }

}