.img-gallery {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    overflow: hidden;
}

.img-gallery-item {
    display: flex;
    flex-direction: column; /* Stack image and caption vertically */
    align-items: center; /* Center image and caption horizontally */
    flex: 1;
    margin: 0 10px;
}

.img-gallery-item img {
    height: 150px;
    object-fit: cover;
    width: 100%; /* Ensure images take up full width of their container */
    border-radius: 5px; /* Optional: Add rounded corners */
}

.caption {
    margin-top: 8px; /* Add spacing between image and caption */
    font-size: 14px; /* Adjust font size */
    text-align: center; /* Center the text */
    color: #333; /* Adjust text color */
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .img-gallery {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
    }

    .img-gallery-item {
        margin: 10px 0; /* Add vertical spacing between items */
        width: 100%; /* Ensure items take up full width */
    }

    .img-gallery-item img {
        height: auto; /* Allow images to scale naturally */
        max-width: 90%; /* Add some padding on the sides */
    }
}
