/* Filename: assets/scripts/gallery.css  */

.gallery-container {
    width: 70%;
    max-width: 1000px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    margin: 1rem auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gallery-grid {
    column-count: 3;         /* number of columns */
    column-gap: 1rem;        /* space between columns */
}

/* Each gallery item */
.gallery-item {
    break-inside: avoid;     /* prevents items from breaking across columns */
    margin-bottom: 1rem;     /* space between items vertically */
    border: 1px solid grey;
        border-radius: 8px;
}

/* Images fill container width */
.gallery-item img {
    width: 100%;
    height: auto;            /* keeps aspect ratio */
    display: block;
    border-radius: 8px;      /* optional rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-intro {
    border: 1px solid grey;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}
