body{
    margin:0;
    background:#000;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
}

/* ================= HEADER ================= */

.container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    padding:15px 25px;

    background:rgba(255,255,255,.05);
    backdrop-filter:blur(10px);

    position:sticky;
    top:0;
    z-index:100;
}

.title-block h1{
    margin:0;
    font-size:2rem;
}

.upload-container{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

#memoryLabel{
    font-size:1rem;
    font-weight:600;
}

#memoryInput{
    padding:10px 15px;
    border:none;
    border-radius:8px;
    background:#222;
    color:white;
    cursor:pointer;
}

#memoryInput:hover{
    background:#333;
}

#memoryInput:focus{
    outline:2px solid #4da6ff;
}

/* ================= GALLERY ================= */

.memory-vault{
    width:100%;
    min-height:calc(100vh - 80px);

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

    padding:20px;
    box-sizing:border-box;
}

.card{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    border-radius:12px;

    overflow:hidden;

    aspect-ratio:3/4;

    transition:.25s;

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

.card:hover{
    transform:translateY(-8px);
    background:rgba(255,255,255,.15);
}

.card-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Videos */

.card video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ================= RESPONSIVE ================= */

/* Large Desktop */

@media (min-width:1400px){

    .memory-vault{
        grid-template-columns:repeat(5,1fr);
    }

}

/* Desktop */

@media (max-width:1200px){

    .memory-vault{
        grid-template-columns:repeat(4,1fr);
    }

}

/* Laptop */

@media (max-width:992px){

    .memory-vault{
        grid-template-columns:repeat(3,1fr);
    }

    .title-block h1{
        font-size:1.8rem;
    }

}

/* Tablet */

@media (max-width:768px){

    .container{
        flex-direction:column;
        align-items:flex-start;
    }

    .upload-container{
        width:100%;
        justify-content:space-between;
    }

    .memory-vault{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Mobile */

@media (max-width:480px){

    .memory-vault{
        grid-template-columns:1fr;
        padding:15px;
    }

    .title-block h1{
        font-size:1.4rem;
    }

    #memoryInput{
        width:100%;
    }

    .upload-container{
        flex-direction:column;
        align-items:stretch;
    }

}