/* --- WIP Page Layout --- */

main {
    padding: 160px var(--screen-pad) 100px var(--screen-pad);
    width: 100%;
}

.wip-header {
    margin-bottom: 4rem;
    text-align: left;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Masonry Gallery Grid --- */
.wip-gallery {
    display: block; /* Overrides the grid display */
    column-count: 3; /* Creates a masonry effect */
    column-gap: 2rem;
    width: 100%;
}

.wip-item {
    break-inside: avoid; /* Prevents images from breaking across columns */
    margin-bottom: 2rem;
    border-radius: 16px; /* Restores the beautiful rounded corners */
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background-color: #121212;
}

.wip-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.9);
}

.wip-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* --- Fullscreen Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .wip-gallery { column-count: 2; column-gap: 1.5rem; }
    .wip-item { margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    main { padding-top: 140px; }
    .page-title { font-size: 2.5rem; }
    .wip-gallery { column-count: 1; }
    .lightbox-close { top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
}