body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px;        /* more space around the edges */
    background: #54000B;  /* maroon background */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

/* Masonry-style layout using CSS columns */
.gallery {
    column-count: 4;      
    column-gap: 0;        /* no gaps between columns */
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;        /* padding around the whole gallery */
}

.gallery img {
    width: 100%;          /* images fill each column */
    max-width: none;      /* remove thumbnail cap */
    margin: 0;            /* no spacing between images */
    border-radius: 0;     /* optional: remove rounding so they touch cleanly */
    display: block;
    cursor: zoom-in;
    box-shadow: none;     /* optional: remove shadow so edges meet perfectly */
}

    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
    }
}

/* Lightbox overlay */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    margin-bottom: 10px;
}

#caption {
    color: #fff;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
}

/* Close button */
#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

.arrow:hover {
    color: #ddd;
}
