body {
    margin: 0;
    font-family: "Century Gothic", sans-serif;
    background-color: #f0f0f0;
    color: #4bc3ff;
}

/* ---------- NAVBAR ---------- */

.profile-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 5px;
    padding-top: 50px;
}

#profilepic img {
    width: 80px;      
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.2s ease;
    
}

#profilepic:hover img{
    transform: scale(1.05);
    transition: transform 0.2s ease;
    cursor: pointer;
}

#profiletext {
    margin: 0;
    text-align: center;
}

/* Navigation pill (hidden initially) */
.nav-pill {
    position: absolute;
    top: 5%;             /* vertically center relative to PFP */
    left: 70%;            /* start from PFP center */
    transform: translate(-50%, -50%) scaleX(0); /* hidden by default */
    transform-origin: center;
    display: flex;
    gap: 200px;
    background-color: #4bc3ff;
    color: white;
    padding: 10px 80px;
    border-radius: 999px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

/* Expanded state (toggle "open" class on container with JS) */
.profile-container.open .nav-pill {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
}

/* Links inside nav-pill */
.nav-pill a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-pill a:hover {
    text-decoration: underline;
    transition: transform ease;
}

/* ---------- MAIN ---------- */

#Main {
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 100px;
}

/* ---------- ART GALLERY ---------- */

.gallery {
    column-count: 3;
    column-gap: 16px;
}

.tile {
    break-inside: avoid;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .gallery { column-count: 3; }
}

@media (max-width: 800px) {
    .gallery { column-count: 2; }
}

@media (max-width: 500px) {
    .gallery { column-count: 1; }
}


/* Image setup */
.tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Optional: subtle image zoom */
.tile:hover img {
    transform: scale(0.95);
}

.tile.open {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
    width: 20vw;
    height: auto;
    background: #000;
}


/* LIGHTBOX STYLING */
#lightbox {
    position: fixed;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    background: rgba(0,0,0,0.8);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox.open {
    display: flex; /* show when .open */
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

#lightbox-info {
    color: white;
    margin-top: 16px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}


#lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

