/* css/gallery.css */

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    color: #eee;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px 16px;
}

.column {
    flex: 1;
    min-width: 240px;
    padding: 8px;
    box-sizing: border-box;
}

.thumb {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
}

#lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    transition: 0.3s;
}

.close { top: 25px; right: 35px; }
.prev { left: 25px; }
.next { right: 25px; }

.close:hover, .prev:hover, .next:hover {
    color: #bbb;
}

#caption {
    color: #ccc;
    font-size: 16px;
    margin-top: 12px;
    max-width: 90vw;
    text-align: center;
}
