
/* Gallery CSS */
/* Ideas Gathered from W3 schools molded to this project */

.month {
    margin-bottom: 30px;
}

.month h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /*Stack image and caption vertically */
    justify-content: space-between; /* Ensure space is distributed evenly */
    align-items: center;
    height: auto; /*prevents stretching */
}

.gallery-item img {
    width: 100%;
    max-width: 800px; /* Cap the maximum width */
    height: auto;
    object-fit: contain; /*ensures entire image is visible */
    margin-bottom: 10px; /*adds space between image and caption */
    display: block;
}

.gallery-caption {
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    background-color: #f4f4f4;
}
