@charset "utf-8";
/* CSS Document */
/* =========================
GALLERY
========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
}

/* =========================
LIGHTBOX
========================= */
.lightbox {
    display: none;              /* hidden by default */
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);

    /* FLEX CENTERING */
    align-items: center;
    justify-content: center;
}

/* When active */
.lightbox.show {
    display: flex;
}

/* IMAGE */
.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* NAVIGATION */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }
