
/* Main content should take up all available space */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 170px);
    grid-auto-rows: 200px; /* Set a fixed height for the rows */
     gap: 0; /* Remove gap between grid items */
    justify-content: center;
    flex-grow: 1;
    flex-wrap: wrap; /* Ensure items wrap within the container */
    margin: 0 auto; /* Center the container horizontally */
    max-width: 80%; /* Optional: Limit the width of the container */
}

.grid-item {
    display: flex;
    flex-direction: column; /* Ensure text is below the image */
    align-items: center; /* Center the content */
    margin: 10px; /* Add some spacing between items */
    color: #000;
}

    .photo-text {
        margin: 0; /* Remove margin to reduce space */
        padding: 5px 0; /* Add padding if needed for spacing */
        font-size: x-small;
        text-align: center;
        flex-shrink: 0; /* Prevent text from shrinking */
    }

    .grid-item img {
        width: auto;
        height: auto;
        object-fit: none;
        cursor: pointer;
        flex-grow: 1; /* Allow image to grow and take up space */
    }

.grid-item img:hover {
    transform: scale(1.2);
}

.photo-text:hover {
    text-decoration: underline;
}

@media (max-width: 400px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}